CarryPurc.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Ext.define('erp.view.fa.gla.CarryPurc',{
  2. extend: 'Ext.Viewport',
  3. layout: {
  4. type: 'hbox',
  5. align: 'middle',
  6. pack: 'center'
  7. },
  8. hideBorders: true,
  9. initComponent : function(){
  10. var me = this;
  11. Ext.apply(me, {
  12. items: [{
  13. xtype: 'form',
  14. height: 260,
  15. width: 440,
  16. bodyStyle: 'background: #f1f1f1;',
  17. title: '结转采购费用',
  18. layout: {
  19. type : 'vbox',
  20. pack : 'center'
  21. },
  22. fieldDefaults: {
  23. margin: '5 3 5 20',
  24. labelWidth: 150,
  25. width: 440
  26. },
  27. items: [{
  28. xtype: 'displayfield',
  29. fieldLabel: '总账期间',
  30. name: 'yearmonth',
  31. id: 'yearmonth'
  32. },{
  33. xtype: 'checkbox',
  34. boxLabel: '将结转产生的凭证立即登账',
  35. name: 'account',
  36. id: 'account'
  37. },{
  38. xtype: 'displayfield',
  39. fieldLabel: '采购费用凭证',
  40. name: 'vocode',
  41. id: 'vocode'
  42. }],
  43. buttonAlign: 'center',
  44. buttons: [{
  45. text: '执行',
  46. id: 'deal',
  47. cls: 'x-btn-gray',
  48. iconCls: 'x-button-icon-submit'
  49. }, {
  50. xtype: 'erpCloseButton'
  51. }]
  52. }]
  53. });
  54. this.callParent(arguments);
  55. }
  56. });