RecBalanceNotice.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Ext.define('erp.view.fa.ars.RecBalanceNotice',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. id:'RecBalanceNoticeViewport',
  10. layout: 'anchor',
  11. items: [{
  12. xtype: 'erpFormPanel',
  13. anchor: '100% 40%',
  14. saveUrl: 'fa/ars/saveRecBalanceNotice.action',
  15. deleteUrl: 'fa/ars/deleteRecBalanceNotice.action',
  16. updateUrl: 'fa/ars/updateRecBalanceNotice.action',
  17. auditUrl: 'fa/ars/auditRecBalanceNotice.action',
  18. resAuditUrl: 'fa/ars/resAuditRecBalanceNotice.action',
  19. printUrl: 'fa/ars/printRecBalanceNotice.action',
  20. submitUrl: 'fa/ars/submitRecBalanceNotice.action',
  21. resSubmitUrl: 'fa/ars/resSubmitRecBalanceNotice.action',
  22. catchABUrl:'fa/ars/catchRecBalanceNoticeAB.action',
  23. cleanABUrl:'fa/ars/cleanRecBalanceNoticeAB.action',
  24. getIdUrl: 'common/getId.action?seq=RECBALANCENOTICE_SEQ',
  25. codeField: 'rb_code',
  26. keyField: 'rb_id',
  27. statusField: 'rb_statuscode'
  28. },{
  29. xtype: 'erpGridPanel2',
  30. anchor: '100% 60%',
  31. detno: 'rbd_detno',
  32. keyField: 'rbd_id',
  33. mainField: 'rbd_rbid',
  34. allowExtraButtons: true
  35. }]
  36. }]
  37. });
  38. me.callParent(arguments);
  39. if(caller == 'RecBalanceNotice!YS') {
  40. me.down('grid').addDocked({
  41. xtype: 'toolbar',
  42. dock: 'top',
  43. items: ['<span class="x-panel-header-text-default-framed">发票详情</span>','->',{
  44. xtype:'datefield',
  45. fieldLabel:'日期区间',
  46. labelAlign:'right'
  47. },{
  48. xtype:'displayfield',
  49. value:'~'
  50. },{
  51. xtype:'datefield'
  52. },{
  53. text:'获取发票',
  54. iconCls: 'x-button-icon-check',
  55. cls: 'x-btn-gray',
  56. name:'catchab'
  57. },'-',{
  58. text:'清除发票',
  59. iconCls: 'x-button-icon-delete',
  60. cls: 'x-btn-gray',
  61. name:'cleanab'
  62. }]
  63. });
  64. }
  65. }
  66. });