StandardCostForm.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Ext.define('erp.view.co.cost.StandardCostForm',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.StandardCost',
  4. id: 'form',
  5. title: '标准成本计算作业',
  6. frame : true,
  7. autoScroll : true,
  8. buttonAlign : 'center',
  9. FormUtil: Ext.create('erp.util.FormUtil'),
  10. fieldDefaults : {
  11. margin : '4 2 4 2',
  12. fieldStyle : "background:#FFFAFA;color:#515151;",
  13. labelAlign : "right",
  14. msgTarget: 'side',
  15. blankText : $I18N.common.form.blankText
  16. },
  17. initComponent : function(){
  18. this.callParent(arguments);
  19. },
  20. items: [{
  21. xtype: 'condatefield',
  22. fieldLabel: '日期期间',
  23. allowBlank: false,
  24. id: 'date',
  25. name: 'date'
  26. },
  27. {
  28. xtype: 'dbfindtrigger',
  29. fieldLabel: '物料编号',
  30. allowBlank: false,
  31. id: 'pr_code',
  32. name: 'pr_code'
  33. },
  34. {
  35. xtype: 'textfield',
  36. fieldLabel: '物料名称',
  37. allowBlank: false,
  38. id: 'pr_name',
  39. name: 'pr_name'
  40. },
  41. {
  42. xtype: 'textfield',
  43. fieldLabel: '规格',
  44. allowBlank: false,
  45. id: 'pr_spec',
  46. name: 'pr_spec'
  47. },
  48. {
  49. xtype: 'textfield',
  50. fieldLabel: '物料类型',
  51. allowBlank: false,
  52. id: 'pr_type',
  53. name: 'pr_type'
  54. }],
  55. buttons: [{
  56. xtype: 'erpConfirmButton'
  57. },{
  58. xtype:'erpCloseButton'
  59. }]
  60. });