SaleTabPanel.js 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. Ext.define('erp.view.sys.sale.SaleTabPanel',{
  2. extend: 'Ext.tab.Panel',
  3. alias: 'widget.saletabpanel',
  4. id:'saletabpanel',
  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:'CustomerKind',
  23. saveUrl: 'common/saveCommon.action?caller=CustomerKind',
  24. deleteUrl: 'common/deleteCommon.action?caller=CustomerKind',
  25. updateUrl: 'common/updateCommon.action?caller=CustomerKind',
  26. getIdUrl: 'common/getCommonId.action?caller=CustomerKind',
  27. keyField:'ck_id',
  28. params:{
  29. caller:'CustomerKind!Grid',
  30. condition:'1=1'
  31. }
  32. },{
  33. title: '销售类型',
  34. xtype:'simpleactiongrid',
  35. caller:'SaleKind',
  36. keyField:'sk_id',
  37. saveUrl: 'scm/sale/saveSaleKind.action?caller=SaleKind',
  38. deleteUrl: 'scm/sale/deleteSaleKind.action?caller=SaleKind',
  39. updateUrl: 'scm/sale/updateSaleKind.action?caller=SaleKind',
  40. getIdUrl: 'common/getId.action?seq=SALEKIND_SEQ',
  41. keyField: 'sk_id',
  42. params:{
  43. caller:'SaleKind!Grid',
  44. condition:'1=1'
  45. }
  46. },{
  47. title:'收款方式',
  48. xtype:'simpleactiongrid',
  49. caller:'Payments!Sale',
  50. saveUrl : 'scm/sale/savePayments.action',
  51. deleteUrl : 'scm/sale/deletePayments.action',
  52. updateUrl : 'scm/sale/updatePayments.action',
  53. getIdUrl: 'common/getId.action?seq=Payments_SEQ',
  54. keyField : 'pa_id',
  55. codeField : 'pa_code',
  56. params:{
  57. caller:'Payments!Sale!Grid',
  58. condition:"pa_class='收款方式'"
  59. }
  60. },{
  61. title:'销售预测类型',
  62. xtype:'simpleactiongrid',
  63. caller:'SaleForecastKind',
  64. saveUrl: 'scm/sale/saveSaleForecastKind.action',
  65. deleteUrl: 'scm/sale/deleteSaleForecastKind.action',
  66. updateUrl: 'scm/sale/updateSaleForecastKind.action',
  67. getIdUrl: 'common/getId.action?seq=SALEFORECASTKIND_SEQ',
  68. keyField:'sf_id',
  69. codeField:'sf_code',
  70. params:{
  71. caller:'SaleForecastKind!Grid',
  72. condition:'1=1'
  73. }
  74. },{
  75. title:'借货类型',
  76. xtype:'simpleactiongrid',
  77. caller:'BorrowCargoType',
  78. saveUrl: 'common/saveCommon.action?caller=BorrowCargoType',
  79. deleteUrl: 'common/deleteCommon.action?caller=BorrowCargoType',
  80. updateUrl: 'common/updateCommon.action?caller=BorrowCargoType',
  81. getIdUrl: 'common/getCommonId.action?caller=BorrowCargoType',
  82. keyField:'bt_id',
  83. codeField:'bt_code',
  84. defaultValues:[{
  85. bt_piclass:'借货出货单'
  86. }],
  87. params:{
  88. caller:'BorrowCargoType!Grid',
  89. condition:"bt_piclass='借货出货单'"
  90. }
  91. }],
  92. initComponent : function(){
  93. this.callParent(arguments);
  94. }
  95. });