CheckAccount.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Ext.define('erp.view.fa.fix.CheckAccount',{
  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: 'grid',
  10. id: 'account-check',
  11. anchor: '100% 100%',
  12. tbar: [{
  13. xtype: 'tbtext',
  14. text: '会计期间:',
  15. margin: '0 0 0 20'
  16. },{
  17. xtype: 'tbtext',
  18. id: 'yearmonth',
  19. text: '201305',
  20. margin: '0 0 0 2'
  21. },{
  22. cls: 'x-btn-blue',
  23. id: 'check',
  24. text: '检查',
  25. width: 80,
  26. margin: '0 0 0 50'
  27. },{
  28. cls: 'x-btn-blue',
  29. id: 'close',
  30. text: $I18N.common.button.erpCloseButton,
  31. width: 80,
  32. margin: '0 0 0 5'
  33. },'->'],
  34. columns: [{
  35. text: '',
  36. dataIndex: 'check',
  37. flex: 1,
  38. renderer: function(val, meta, record) {
  39. meta.tdCls = val;
  40. return '';
  41. }
  42. },{
  43. text: '检测项',
  44. dataIndex: 'value',
  45. flex: 10,
  46. renderer: function(val, meta, record) {
  47. if(record.get('check') == 'error') {
  48. meta.style = 'color: gray';
  49. }
  50. return val;
  51. }
  52. },{
  53. text: '',
  54. dataIndex: 'link',
  55. flex: 1,
  56. renderer: function(val, meta, record) {
  57. if(record.get('check') == 'error') {
  58. meta.tdCls = 'detail';
  59. return '详细情况';
  60. }
  61. return '';
  62. }
  63. }],
  64. columnLines: true,
  65. store: Ext.create('Ext.data.Store',{
  66. fields: [{name: 'action', type: 'string'}, {name: 'type', type: 'string'}, {name: 'value', type: 'string'}],
  67. data: [{
  68. action: 'fa/fix/chk_a.action',
  69. type: 'fix_chk_a',
  70. value: '固定资产期间与总账期间是否一致'
  71. },{
  72. action: 'fa/fix/chk_b.action',
  73. type: 'fix_chk_b',
  74. value: '当月是否计提折旧'
  75. },{
  76. action: 'fa/fix/chk_c.action',
  77. type: 'fix_chk_c',
  78. value: '所有卡片是否已审核'
  79. },{
  80. action: 'fa/fix/chk_d.action',
  81. type: 'fix_chk_d',
  82. value: '当月的卡片变更单是否已审核'
  83. },{
  84. action: 'fa/fix/chk_e.action',
  85. type: 'fix_chk_e',
  86. value: '当月的资产增加单、资产减少单是否过账'
  87. },{
  88. action: 'fa/fix/chk_f.action',
  89. type: 'fix_chk_f',
  90. value: '当月新增的已审核卡片是否已经生成凭证'
  91. },{
  92. action: 'fa/fix/chk_g.action',
  93. type: 'fix_chk_g',
  94. value: '当月的折旧单、资产增加单、资产减少单是否已经生成凭证'
  95. },{
  96. action: 'fa/fix/chk_h.action',
  97. type: 'fix_chk_h',
  98. value: '固定资产所有卡片的原值金额合计与总账固定资产科目的本期余额是否一致'
  99. },{
  100. action: 'fa/fix/chk_i.action',
  101. type: 'fix_chk_i',
  102. value: '固定资产所有卡片的累计折旧金额合计与总账累计折旧科目的本期余额是否一致'
  103. }]
  104. })
  105. }]
  106. });
  107. me.callParent(arguments);
  108. }
  109. });