ScTabPanel.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Ext.define('erp.view.sys.sc.ScTabPanel',{
  2. extend: 'Ext.tab.Panel',
  3. alias: 'widget.sctabpanel',
  4. id:'sctabpanel',
  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:'ProductLocation',
  23. saveUrl: 'common/saveCommon.action?caller=ProductLocation',
  24. deleteUrl: 'common/deleteCommon.action?caller=ProductLocation',
  25. updateUrl: 'common/updateCommon.action?caller=ProductLocation',
  26. getIdUrl: 'common/getId.action?caller=ProductLocation',
  27. keyField: 'pl_id',
  28. autoRender:true,
  29. statusField:'pl_status',
  30. statusCodeField:'pl_statuscode',
  31. params:{
  32. caller:'ProductLocation!Grid',
  33. condition:'1=1'
  34. }
  35. },{
  36. title: '仓库资料',
  37. xtype:'simpleactiongrid',
  38. caller:'Warehouse!Base',
  39. saveUrl: 'common/saveCommon.action?caller=Warehouse!Base',
  40. deleteUrl: 'common/deleteCommon.action?caller=Warehouse!Base',
  41. updateUrl: 'common/updateCommon.action?caller=Warehouse!Base',
  42. getIdUrl: 'common/getCommonId.action?caller=Warehouse!Base',
  43. keyField:'wh_id',
  44. autoRender:true,
  45. params:{
  46. caller:'Warehouse!Base!Grid',
  47. condition:'1=1'
  48. }
  49. },{
  50. title:'其它入库类型',
  51. xtype:'combosetgrid',
  52. plugins:[Ext.create('Ext.grid.plugin.CellEditing', {
  53. clicksToMoveEditor: 1,
  54. autoCancel: false
  55. })],
  56. animCollapse: true,
  57. collapsible: true,
  58. width:235,
  59. fieldWidth:150,
  60. margins: '0 5 0 0',
  61. caller:'ProdInOut!OtherIn',
  62. field:'pi_type'
  63. },{
  64. title:'其它出库类型',
  65. xtype:'combosetgrid',
  66. plugins:[Ext.create('Ext.grid.plugin.CellEditing', {
  67. clicksToMoveEditor: 1,
  68. autoCancel: false
  69. })],
  70. animCollapse: true,
  71. collapsible: true,
  72. width:235,
  73. fieldWidth:150,
  74. margins: '0 5 0 0',
  75. caller:'ProdInOut!OtherOut',
  76. field:'pi_type'
  77. }],
  78. initComponent : function(){
  79. this.callParent(arguments);
  80. }
  81. });