BOMDetailPanelForm.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Ext.define('erp.view.scm.product.BOMDetailPanel.BOMDetailPanelForm',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.erpBOMDetailPanelForm',
  4. id: 'from',
  5. region: 'north',
  6. columnWidth:1,
  7. frame : true,
  8. layout : 'column',
  9. autoScroll : true,
  10. defaultType : 'textfield',
  11. labelSeparator : ':',
  12. buttonAlign : 'center',
  13. fieldDefaults : {
  14. margin : '2 2 2 2',
  15. fieldStyle : "background:#FFFAFA;color:#515151;",
  16. focusCls: 'x-form-field-cir-focus',
  17. labelAlign : "right",
  18. msgTarget: 'side',
  19. blankText : $I18N.common.form.blankText
  20. },
  21. FormUtil: Ext.create('erp.util.FormUtil'),
  22. BaseUtil: Ext.create('erp.util.BaseUtil'),
  23. tbar: [{
  24. name: 'BOMDetailPanelImp',
  25. text: 'BOM版面位号匹配',
  26. iconCls: 'x-button-icon-query',
  27. cls: 'x-btn-gray',
  28. handler: function(){
  29. console.log("BOM版面位号匹配");
  30. }
  31. },{
  32. name: 'BOMDetailPanelExcel',
  33. text: '模板下载',
  34. iconCls: 'x-button-icon-excel',
  35. cls: 'x-btn-gray',
  36. handler: function(){
  37. console.log("BOM版面位号匹配模板下载");
  38. }
  39. }],
  40. initComponent : function(){
  41. this.callParent(arguments);
  42. }
  43. });