ProductPortal.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Ext.define('erp.view.sys.pr.ProductPortal',{
  2. extend: 'Ext.panel.Panel',
  3. alias: 'widget.productportal',
  4. animCollapse: false,
  5. constrainHeader: true,
  6. bodyBorder: false,
  7. border: false,
  8. autoShow: true,
  9. layout:'border',
  10. items:[{
  11. region:'west',
  12. xtype:'productkindtree',
  13. title:'物料种类',
  14. width:400,
  15. minWidth:400
  16. },{
  17. xtype:'tabpanel',
  18. dockedItems: [Ext.create('erp.view.sys.base.Toolbar')],
  19. items:[{
  20. title:'基础设置',
  21. condition:"step='PR'",
  22. itemColumnWidth:1,
  23. xtype:'modulesetportal',
  24. },{
  25. title: '物料等级',
  26. minWidth: 80,
  27. xtype:'simpleactiongrid',
  28. caller:'Productlevel',
  29. saveUrl: 'scm/product/saveProductlevel.action',
  30. deleteUrl: 'scm/product/deleteProductlevel.action',
  31. updateUrl: 'scm/product/updateProductlevel.action',
  32. getIdUrl: 'common/getId.action?seq=Productlevel_SEQ',
  33. keyField:'pl_id',
  34. codeField:'pl_code',
  35. emptyGrid:true,
  36. autoRender:true,
  37. plugins: [{
  38. ptype: 'cellediting',
  39. clicksToEdit: 2,
  40. pluginId: 'cellplugin'
  41. }],
  42. params:{
  43. caller:'Productlevel!Grid',
  44. condition:'1=1'
  45. }
  46. },{
  47. title: 'BOM等级',
  48. region: 'east',
  49. flex: 1,
  50. minWidth: 80,
  51. xtype:'simpleactiongrid',
  52. caller:'Bomlevel',
  53. saveUrl: 'pm/bom/saveBomlevel.action',
  54. deleteUrl: 'pm/bom/deleteBomlevel.action',
  55. updateUrl: 'pm/bom/updateBomlevel.action',
  56. getIdUrl: 'common/getId.action?seq=Bomlevel_SEQ',
  57. keyField:'bl_id',
  58. autoRender:true,
  59. plugins: [{
  60. ptype: 'cellediting',
  61. clicksToEdit: 2,
  62. pluginId: 'cellplugin'
  63. }],
  64. params:{
  65. caller:'Bomlevel!Grid',
  66. condition:'1=1'
  67. }
  68. }],
  69. region: 'center',
  70. minHeight: 120,
  71. minWidth:200,
  72. split: true
  73. },{
  74. region:'east',
  75. title:'物料单位',
  76. xtype:'combosetgrid',
  77. plugins:[Ext.create('Ext.grid.plugin.CellEditing', {
  78. clicksToMoveEditor: 1,
  79. autoCancel: false
  80. })],
  81. animCollapse: true,
  82. collapsible: true,
  83. width:235,
  84. fieldWidth:150,
  85. margins: '0 5 0 0',
  86. caller:'Product',
  87. field:'pr_unit',
  88. params:{
  89. caller:'SaleForecastKind!Grid',
  90. condition:'1=1'
  91. }
  92. }/*,{
  93. region: 'south',
  94. // collapsible: true,
  95. split: true,
  96. height: 200,
  97. minHeight: 120,
  98. layout: {
  99. type: 'border',
  100. padding: 5
  101. },
  102. defaults:{
  103. plugins: [{
  104. ptype: 'cellediting',
  105. clicksToEdit: 2,
  106. pluginId: 'cellplugin'
  107. }]
  108. },
  109. items: []
  110. }*/],
  111. initComponent : function(){
  112. this.callParent(arguments);
  113. }
  114. });