MoTabPanel.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Ext.define('erp.view.sys.mo.MoTabPanel',{
  2. extend: 'Ext.tab.Panel',
  3. alias: 'widget.motabpanel',
  4. id:'motabpanel',
  5. animCollapse: false,
  6. bodyBorder: false,
  7. border: false,
  8. autoShow: true,
  9. tabPosition:'bottom',
  10. frame:true,
  11. dockedItems: [Ext.create('erp.view.sys.base.Toolbar')],
  12. defaults:{
  13. plugins: [{
  14. ptype: 'cellediting',
  15. clicksToEdit: 2,
  16. pluginId: 'cellplugin'
  17. }]
  18. },
  19. items: [{
  20. title:'工单类型',
  21. xtype:'simpleactiongrid',
  22. caller:'MakeKind',
  23. saveUrl: 'pm/make/saveMakeKind.action',
  24. deleteUrl: 'pm/make/deleteMakeKind.action',
  25. updateUrl: 'pm/make/updateMakeKind.action',
  26. getIdUrl: 'common/getId.action?seq=makekind_SEQ',
  27. keyField: 'mk_id',
  28. autoRender:true,
  29. params:{
  30. caller:'MakeKind!Grid',
  31. condition:'1=1'
  32. }
  33. },{
  34. title: '工作中心',
  35. xtype:'simpleactiongrid',
  36. caller:'WorkCenter',
  37. saveUrl: 'scm/sale/saveWorkCenter.action',
  38. deleteUrl: 'scm/sale/deleteWorkCenter.action',
  39. updateUrl: 'scm/sale/updateWorkCenter.action',
  40. getIdUrl: 'common/getId.action?seq=WORKCENTER_SEQ',
  41. keyField:'wc_id',
  42. codeField:'wc_code',
  43. autoRender:true,
  44. params:{
  45. caller:'WorkCenter!Grid',
  46. condition:'1=1'
  47. }
  48. },{
  49. title: '线别',
  50. xtype:'simpleactiongrid',
  51. caller:'TeamCode',
  52. autoRender:true,
  53. saveUrl: 'common/saveCommon.action?caller=TeamCode',
  54. deleteUrl: 'common/deleteCommon.action?caller=TeamCode',
  55. updateUrl: 'common/updateCommon.action?caller=TeamCode',
  56. getIdUrl: 'common/getId.action?seq=TeamCode_SEQ',
  57. keyField: 'CT_ID',
  58. params:{
  59. caller:'TeamCode!Grid',
  60. condition:"1=1"
  61. }
  62. }],
  63. initComponent : function(){
  64. this.callParent(arguments);
  65. }
  66. });