CheckFIXAccount.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. Ext.define('erp.view.fa.fix.CheckFIXAccount',{
  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. columns: [{
  23. text: '',
  24. dataIndex: 'check',
  25. flex: 1,
  26. renderer: function(val, meta, record) {
  27. meta.tdCls = val;
  28. return '';
  29. }
  30. },{
  31. text: '检测项',
  32. dataIndex: 'value',
  33. flex: 10,
  34. renderer: function(val, meta, record) {
  35. if(record.get('check') == 'error') {
  36. meta.style = 'color: gray';
  37. }
  38. return val;
  39. }
  40. },{
  41. text: '',
  42. dataIndex: 'link',
  43. flex: 1,
  44. renderer: function(val, meta, record) {
  45. if(record.get('check') == 'error') {
  46. meta.tdCls = 'detail';
  47. return '详细情况';
  48. }
  49. return '';
  50. }
  51. }],
  52. columnLines: true,
  53. store: Ext.create('Ext.data.Store',{
  54. fields: [{name: 'action', type: 'string'}, {name: 'type', type: 'string'}, {name: 'value', type: 'string'}],
  55. data: [{
  56. action: 'fa/fix/chk_a.action',
  57. type: 'fix_chk_a',
  58. value: '固定资产期间与总账期间是否一致'
  59. },{
  60. action: 'fa/fix/chk_b.action',
  61. type: 'fix_chk_b',
  62. value: '当月是否计提折旧'
  63. },{
  64. action: 'fa/fix/chk_c.action',
  65. type: 'fix_chk_c',
  66. value: '所有卡片是否已审核'
  67. },{
  68. action: 'fa/fix/chk_d.action',
  69. type: 'fix_chk_d',
  70. value: '当月的卡片变更单是否已审核'
  71. },{
  72. action: 'fa/fix/chk_e.action',
  73. type: 'fix_chk_e',
  74. value: '当月的资产增加单、资产减少单是否过账'
  75. },{
  76. action: 'fa/fix/chk_f.action',
  77. type: 'fix_chk_f',
  78. value: '当月新增的已审核卡片是否已经生成凭证'
  79. },{
  80. action: 'fa/fix/chk_g.action',
  81. type: 'fix_chk_g',
  82. value: '当月的折旧单、资产增加单、资产减少单是否已经生成凭证'
  83. },{
  84. action: 'fa/fix/chk_h.action',
  85. type: 'fix_chk_h',
  86. value: '固定资产所有卡片的原值金额合计与总账固定资产科目的本期余额是否一致'
  87. },{
  88. action: 'fa/fix/chk_i.action',
  89. type: 'fix_chk_i',
  90. value: '固定资产所有卡片的累计折旧金额合计与总账累计折旧科目的本期余额是否一致'
  91. }]
  92. }),
  93. bbar: [{
  94. xtype: 'checkbox',
  95. boxLabel: '知道错误了,我要继续结账',
  96. id : 'allow',
  97. hidden : true,
  98. margin: '0 5 0 20'
  99. },'->',{
  100. cls: 'x-btn-blue',
  101. id: 'check',
  102. text: '结账检查',
  103. width: 80,
  104. margin: '0 0 0 50'
  105. },{
  106. cls: 'x-btn-blue',
  107. id: 'accoutover',
  108. text: '结 账',
  109. width: 80,
  110. disabled : true,
  111. margin: '0 0 0 5'
  112. },{
  113. cls: 'x-btn-blue',
  114. id: 'resaccoutover',
  115. text: '反结账',
  116. width: 80,
  117. margin: '0 0 0 5'
  118. },{
  119. cls: 'x-btn-blue',
  120. id: 'close',
  121. text: $I18N.common.button.erpCloseButton,
  122. width: 80,
  123. margin: '0 175 0 5'
  124. }]
  125. }]
  126. });
  127. me.callParent(arguments);
  128. }
  129. });