RecBalancePRDetail.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. Ext.define('erp.view.fa.ars.RecBalancePRDetail',{
  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% 44%',
  11. saveUrl: 'fa/RecBalanceController/saveRecBalancePRDetail.action',
  12. deleteUrl: 'fa/ars/deleteRecBalance.action',
  13. updateUrl: 'fa/RecBalanceController/updateRecBalancePRDetailById.action',
  14. auditUrl: 'fa/ars/auditRecBalance.action',
  15. postUrl: 'fa/ars/postRecBalance.action',
  16. resPostUrl: 'fa/ars/resPostRecBalance.action',
  17. resAuditUrl: 'fa/ars/resAuditRecBalance.action',
  18. submitUrl: 'fa/ars/submitRecBalance.action',
  19. resSubmitUrl: 'fa/ars/resSubmitRecBalance.action',
  20. catchPRUrl:'fa/RecBalanceController/catchPR.action',
  21. cleanPRUrl:'fa/RecBalanceController/cleanPR.action',
  22. catchABUrl:'fa/RecBalanceController/catchAB.action',
  23. cleanABUrl:'fa/RecBalanceController/cleanAB.action',
  24. getIdUrl: 'common/getId.action?seq=RecBalance_SEQ',
  25. keyField: 'rb_id',
  26. codeField: 'rb_code',
  27. auditStatusCode:'rb_auditstatuscode',
  28. statusCode:'rb_statuscode',
  29. printStatusCode:'rb_printstatuscode',
  30. mStatusCode:'rb_strikestatuscode',
  31. voucherConfig: {
  32. voucherField: 'rb_vouchercode',
  33. vs_code: 'RecBalance',
  34. yearmonth: 'rb_date',
  35. datas: 'rb_code',
  36. status: 'rb_statuscode',
  37. mode: 'single',
  38. kind: function(form){
  39. var f = form.down('#rb_kind');
  40. return f ? f.getValue() : null;
  41. },
  42. vomode: 'AR'
  43. }
  44. },{
  45. xtype: 'recbalanceprdetail',
  46. anchor: '100% 28%',
  47. caller:'RBPDGird',
  48. keyField: 'rbpd_id',
  49. mainField: 'rbpd_rbid',
  50. tbar:['<span class="x-panel-header-text-default-framed">预收账款详情</span>','->',{
  51. xtype:'datefield',
  52. fieldLabel:'日期区间',
  53. labelAlign:'right'
  54. },{
  55. xtype:'displayfield',
  56. value:'~'
  57. },{
  58. xtype:'datefield'
  59. },{
  60. xtype:'button',
  61. text:'获取预收账款',
  62. name:'catchpr',
  63. iconCls: 'x-button-icon-check',
  64. cls: 'x-btn-gray'
  65. },'-',{
  66. xtype:'button',
  67. text:'清除预收账款',
  68. iconCls: 'x-button-icon-delete',
  69. cls: 'x-btn-gray',
  70. name:'cleanpr'
  71. }]
  72. },{
  73. xtype: 'erpGridPanel2',
  74. anchor: '100% 28%',
  75. keyField: 'rbd_id',
  76. mainField: 'rbd_rbid',
  77. detailAssCaller:'RecBalanceDetailAss',
  78. tbar:['<span class="x-panel-header-text-default-framed">应收账款详情</span>','->',{
  79. xtype:'datefield',
  80. fieldLabel:'日期区间',
  81. labelAlign:'right'
  82. },{
  83. xtype:'displayfield',
  84. value:'~'
  85. },{
  86. xtype:'datefield'
  87. },{
  88. xtype:'button',
  89. text:'获取发票',
  90. iconCls: 'x-button-icon-check',
  91. cls: 'x-btn-gray',
  92. name:'catchab'
  93. },'-',{
  94. xtype:'button',
  95. text:'清除发票',
  96. iconCls: 'x-button-icon-delete',
  97. cls: 'x-btn-gray',
  98. name:'cleanab'
  99. }]
  100. }]
  101. });
  102. me.callParent(arguments);
  103. }
  104. });