PuTabPanel.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. Ext.define('erp.view.sys.pu.PuTabPanel',{
  2. extend: 'Ext.tab.Panel',
  3. alias: 'widget.putabpanel',
  4. animCollapse: false,
  5. bodyBorder: false,
  6. border: false,
  7. autoShow: true,
  8. //requires:['erp.view.sys.base.SimpleActionGrid'],
  9. tabPosition:'bottom',
  10. frame:true,
  11. defaults:{
  12. plugins: [{
  13. ptype: 'cellediting',
  14. clicksToEdit: 2,
  15. pluginId: 'cellplugin'
  16. }]
  17. },
  18. dockedItems: [Ext.create('erp.view.sys.base.Toolbar')],
  19. items: [{
  20. title: '采购类型',
  21. xtype:'simpleactiongrid',
  22. caller:'PurchaseKind',
  23. saveUrl: 'common/saveCommon.action?caller=PurchaseKind',
  24. deleteUrl: 'common/deleteCommon.action?caller=PurchaseKind',
  25. updateUrl: 'common/updateCommon.action?caller=PurchaseKind',
  26. getIdUrl: 'common/getCommonId.action?caller=PurchaseKind',
  27. keyField:'pk_id',
  28. params:{
  29. caller:'PurchaseKind!Grid',
  30. condition:'1=1'
  31. }
  32. },{
  33. title: '付款方式',
  34. xtype:'simpleactiongrid',
  35. caller:'Payments!Purchase',
  36. saveUrl: 'scm/purchase/savePayments.action',
  37. deleteUrl: 'scm/purchase/deletePayments.action',
  38. updateUrl: 'scm/purchase/updatePayments.action',
  39. getIdUrl: 'common/getId.action?seq=PAYMENTS_SEQ',
  40. keyField: 'pa_id',
  41. codeField: 'pa_code',
  42. statusField: 'pa_auditstatuscode',
  43. params:{
  44. caller:'Payments!Purchase!Grid',
  45. condition:"pa_class='付款方式'"
  46. }
  47. },{
  48. title:'其它采购入库类型',
  49. xtype:'simpleactiongrid',
  50. caller:'BorrowCargoType',
  51. saveUrl: 'common/saveCommon.action?caller=BorrowCargoType',
  52. deleteUrl: 'common/deleteCommon.action?caller=BorrowCargoType',
  53. updateUrl: 'common/updateCommon.action?caller=BorrowCargoType',
  54. getIdUrl: 'common/getCommonId.action?caller=BorrowCargoType',
  55. keyField:'bt_id',
  56. codeField:'bt_code',
  57. defaultValues:[{
  58. bt_piclass:'其它采购入库单'
  59. }],
  60. params:{
  61. caller:'BorrowCargoType!Grid',
  62. condition:"bt_piclass='其它采购入库单'"
  63. }
  64. }],
  65. initComponent : function(){
  66. this.callParent(arguments);
  67. }
  68. });