BillAP.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. Ext.define('erp.view.fa.gs.BillAP',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. layout: 'anchor',
  10. items: [{
  11. xtype: 'erpFormPanel',
  12. anchor: '100% 100%',
  13. saveUrl: 'fa/gs/saveBillAP.action',
  14. deleteUrl: 'fa/gs/deleteBillAP.action',
  15. updateUrl: 'fa/gs/updateBillAP.action',
  16. auditUrl: 'fa/gs/auditBillAP.action',
  17. resAuditUrl: 'fa/gs/resAuditBillAP.action',
  18. submitUrl: 'fa/gs/submitBillAP.action',
  19. resSubmitUrl: 'fa/gs/resSubmitBillAP.action',
  20. nullifyUrl: 'fa/gs/nullifyBillAP.action',
  21. getIdUrl: 'common/getId.action?seq=BILLAP_SEQ',
  22. keyField: 'bap_id',
  23. statusField: 'bap_status',
  24. statuscodeField: 'bap_statuscode',
  25. codeField: 'bap_code',
  26. assCaller:'BillAPAss',
  27. voucherConfig: {
  28. voucherField: 'bap_vouchercode',
  29. vs_code: 'BillAP',
  30. yearmonth: 'bap_date',
  31. datas: 'bap_code',
  32. status: 'bap_statuscode',
  33. statusValue: 'AUDITED',
  34. mode: 'single',
  35. kind: function(form){
  36. var f = form.down('#bap_billkind'), v = f ? f.getValue() : null;
  37. if(v && ['应付款','预付款'].indexOf(v) > -1)
  38. v = 'unneed';
  39. return v;
  40. },
  41. vomode: 'CB'
  42. }
  43. }]
  44. }]
  45. });
  46. me.callParent(arguments);
  47. }
  48. });