BlankCheckForm.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Ext.define('erp.view.scm.reserve.BlankCheckForm',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.BlankCheck',
  4. id: 'form',
  5. title: '<font color=#a1a1a1; size=3>空白盘点周期生成作业</font>',
  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:'combobox',
  22. fieldLabel:'类别',
  23. allowBlank: true,
  24. id: 'kind',
  25. name: 'kind',
  26. store: Ext.create('Ext.data.Store', {
  27. fields: ['display', 'value'],
  28. data : [
  29. {"display": 'A', "value": 'A'},
  30. {"display": 'B', "value": 'B'},
  31. {"display": 'C', "value": 'C'}
  32. ]
  33. }),
  34. displayField: 'display',
  35. valueField: 'value',
  36. editable: false,
  37. value: 'A'
  38. },{
  39. xtype: 'numberfield',
  40. fieldLabel:'用量',
  41. allowBlank: true,
  42. id: 'money',
  43. name: 'money'
  44. },{
  45. xtype: 'numberfield',
  46. fieldLabel:'单价',
  47. allowBlank: true,
  48. id: 'price',
  49. name: 'price'
  50. },{
  51. xtype: 'numberfield',
  52. fieldLabel:'总额',
  53. allowBlank: true,
  54. id: 'total',
  55. name: 'total'
  56. }],
  57. buttons: [{
  58. xtype: 'erpConfirmButton'
  59. },{
  60. xtype:'erpCloseButton'
  61. }]
  62. });