BillAPChange.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Ext.define('erp.view.fa.gs.BillAPChange',{
  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% 35%',
  11. saveUrl: 'fa/gs/saveBillAPChange.action',
  12. deleteUrl: 'fa/gs/deleteBillAPChange.action',
  13. updateUrl: 'fa/gs/updateBillAPChange.action',
  14. auditUrl: 'fa/gs/auditBillAPChange.action',
  15. resAuditUrl: 'fa/gs/resAuditBillAPChange.action',
  16. submitUrl: 'fa/gs/submitBillAPChange.action',
  17. resSubmitUrl: 'fa/gs/resSubmitBillAPChange.action',
  18. accountedUrl: 'fa/gs/accountBillAPChange.action',
  19. resAccountedUrl: 'fa/gs/resAccountBillAPChange.action',
  20. getIdUrl: 'common/getId.action?seq=BILLAPCHANGE_SEQ',
  21. codeField: 'bpc_code',
  22. keyField: 'bpc_id',
  23. statusField: 'bpc_statuscode',
  24. assCaller:'BillAPChangeAss',
  25. voucherConfig: {
  26. voucherField: 'bpc_vouchercode',
  27. vs_code: 'BillAPChange',
  28. yearmonth: 'bpc_date',
  29. datas: 'bpc_code',
  30. status: 'bpc_statuscode',
  31. mode: 'single',
  32. kind: function(form){
  33. var f = form.down('#bpc_kind'), v = f ? f.getValue() : null;
  34. if(v && ['退票','兑现'].indexOf(v) > -1)
  35. v = 'unneed';
  36. return v;
  37. },
  38. vomode: 'CB'
  39. }
  40. },{
  41. xtype: 'erpGridPanel2',
  42. anchor: '100% 65%',
  43. detno: 'bpd_detno',
  44. necessaryField: 'bpd_bapcode',
  45. keyField: 'bpd_id',
  46. mainField: 'bpd_bpcid'
  47. }]
  48. });
  49. me.callParent(arguments);
  50. }
  51. });