InventoryForm.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Ext.define('erp.view.scm.reserve.InventoryForm',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.Inventory',
  4. id: 'form',
  5. title: '盘点作业',
  6. frame : true,
  7. autoScroll : true,
  8. buttonAlign : 'center',
  9. FormUtil: Ext.create('erp.util.FormUtil'),
  10. confirmUrl:'',
  11. layout: {
  12. type: 'vbox',
  13. pack: 'center'
  14. },
  15. fieldDefaults : {
  16. fieldStyle : "background:#FFFAFA;color:#515151;",
  17. labelAlign : "right",
  18. msgTarget: 'side',
  19. blankText : $I18N.common.form.blankText
  20. },
  21. initComponent : function(){
  22. this.callParent(arguments);
  23. /*this.title = this.FormUtil.getActiveTab().title;*/
  24. },
  25. items: [{
  26. xtype: 'combo',
  27. fieldLabel: '盘点方式',
  28. allowBlank: false,
  29. id: 'method',
  30. name: 'method',
  31. queryMode: 'local',
  32. displayField: 'display',
  33. valueField: 'value',
  34. value:'全部物料盘点',
  35. store: new Ext.data.Store({
  36. fields: ['display', 'value'],
  37. data: [
  38. {"display": '全部物料盘点', "value": '全部物料盘点'},
  39. {"display": '循环盘点', "value": '循环盘点'},
  40. {"display": 'ABC分类盘点', "value": 'ABC分类盘点'}
  41. ]
  42. })
  43. },{
  44. xtype: 'dbfindtrigger',
  45. fieldLabel: '仓库',
  46. height: 23,
  47. id: 'pr_whcode',
  48. name:'pr_whcode'
  49. }],
  50. buttons: [{
  51. xtype: 'erpConfirmButton'
  52. },{
  53. xtype:'erpCloseButton'
  54. }]
  55. });