CheckFIXAccount.js 4.0 KB

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