PrePaid.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Ext.define('erp.view.fa.gla.PrePaid',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. xtype: 'erpFormPanel',
  10. anchor: '100% 30%',
  11. deleteUrl: 'fa/gla/deletePrePaid.action',
  12. updateUrl: 'fa/gla/updatePrePaid.action',
  13. auditUrl: 'fa/gla/auditPrePaid.action',
  14. saveUrl: 'fa/gla/savePrePaid.action',
  15. resAuditUrl: 'fa/gla/resAuditPrePaid.action',
  16. postUrl: 'fa/gla/postPrePaid.action',
  17. resPostUrl: 'fa/gla/resPostPrePaid.action',
  18. getIdUrl: 'common/getId.action?seq=PrePaid_SEQ',
  19. keyField: 'pp_id',
  20. codeField: 'pp_code',
  21. statusField: 'pp_status',
  22. statuscodeField: 'pp_statuscode',
  23. voucherConfig: {
  24. voucherField: 'pp_vouchercode',
  25. vs_code: 'PrePaid',
  26. yearmonth: 'pp_date',
  27. datas: 'pp_code',
  28. status: 'pp_statuscode',
  29. mode: 'single',
  30. kind: '摊销单',
  31. vomode: 'GL'
  32. }
  33. },{
  34. xtype: 'erpGridPanel2',
  35. anchor: '100% 70%',
  36. detno: 'pd_detno',
  37. necessaryField: 'pd_amortcode',
  38. keyField: 'pd_id',
  39. mainField: 'pd_ppid'
  40. }]
  41. });
  42. me.callParent(arguments);
  43. }
  44. });