CheckAccount.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. Ext.define('erp.view.fa.gs.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: 'detno',
  45. flex: 0.7,
  46. renderer: function(val, meta, record) {
  47. return val;
  48. }
  49. },{
  50. text: '检测项',
  51. dataIndex: 'value',
  52. flex: 10,
  53. renderer: function(val, meta, record) {
  54. if(record.get('check') == 'error') {
  55. meta.style = 'color: gray';
  56. }
  57. return val;
  58. }
  59. },{
  60. text: '',
  61. dataIndex: 'link',
  62. flex: 1,
  63. renderer: function(val, meta, record) {
  64. if(record.get('check') == 'error') {
  65. meta.tdCls = 'detail';
  66. return '详细情况';
  67. }
  68. return '';
  69. }
  70. }],
  71. columnLines: true,
  72. store: Ext.create('Ext.data.Store',{
  73. fields: [{name: 'action', type: 'string'},{name: 'detno', type : 'number'}, {name: 'type', type: 'string'}, {name: 'value', type: 'string'}],
  74. data: [{
  75. action: 'fa/gs/chk_a.action',
  76. detno: 1,
  77. type: 'gs_chk_a',
  78. value: '当月银行现金单据是否全部记账'
  79. },{
  80. action: 'fa/gs/chk_b.action',
  81. detno: 2,
  82. type: 'gs_chk_b',
  83. value: '当月银行现金单据是否全部做了凭证'
  84. },{
  85. action: 'fa/gs/chk_c.action',
  86. detno: 3,
  87. type: 'gs_chk_c',
  88. value: '银行现金余额是否出现负数'
  89. },{
  90. action: 'fa/gs/chk_d.action',
  91. detno: 4,
  92. type: 'gs_chk_d',
  93. value: '银行现金单据会计期间是否和凭证期间一致'
  94. },{
  95. action: 'fa/gs/chk_e.action',
  96. detno: 5,
  97. type: 'gs_chk_e',
  98. value: '预收款、预收退款类型的银行登记关联的预收款、预收退款单是否存在、是否已记账'
  99. },{
  100. action: 'fa/gs/chk_f.action',
  101. detno: 6,
  102. type: 'gs_chk_f',
  103. value: '应收款、应收退款类型的银行登记关联的收款单、收款退款单是否存在、是否已记账'
  104. },{
  105. action: 'fa/gs/chk_g.action',
  106. detno: 7,
  107. type: 'gs_chk_g',
  108. value: '预付款、预付退款类型的银行登记关联的预付款、预付退款单是否存在、是否已记账'
  109. },{
  110. action: 'fa/gs/chk_h.action',
  111. detno: 8,
  112. type: 'gs_chk_h',
  113. value: '应付款、应付退款类型的银行登记关联的付款单、付款退款单是否存在、是否已记账'
  114. },{
  115. action: 'fa/gs/chk_i.action',
  116. detno: 9,
  117. type: 'gs_chk_i',
  118. value: '转存类型的银行登记是否平衡'
  119. },{
  120. action: 'fa/gs/chk_j.action',
  121. detno: 10,
  122. type: 'gs_chk_j',
  123. value: '银行各账户余额(期末平衡表)与总账对应科目原币余额是否一致'
  124. },{
  125. action: 'fa/gs/chk_k.action',
  126. detno: 11,
  127. type: 'gs_chk_k',
  128. value: '所有应付票据是否已审核'
  129. },{
  130. action: 'fa/gs/chk_l.action',
  131. detno: 12,
  132. type: 'gs_chk_l',
  133. value: '所有应付票据异动单是否已过账'
  134. },{
  135. action: 'fa/gs/chk_m.action',
  136. detno: 13,
  137. type: 'gs_chk_m',
  138. value: '所有应收票据是否已审核'
  139. },{
  140. action: 'fa/gs/chk_n.action',
  141. detno: 14,
  142. type: 'gs_chk_n',
  143. value: '所有应收票据异动单是否已过账'
  144. },{
  145. action: 'fa/gs/chk_o.action',
  146. detno: 15,
  147. type: 'gs_chk_o',
  148. value: '应收票据是否有关联的收款单或预收单,是否已过账'
  149. },{
  150. action: 'fa/gs/chk_p.action',
  151. detno: 16,
  152. type: 'gs_chk_p',
  153. value: '应付票据是否有关联的付款单或预付单,是否已过账'
  154. },{
  155. action: 'fa/gs/chk_q.action',
  156. detno: 17,
  157. type: 'gs_chk_q',
  158. value: '应收票据异动类型为收款、贴现的,是否有关联的银行登记,是否已记账'
  159. },{
  160. action: 'fa/gs/chk_r.action',
  161. detno: 18,
  162. type: 'gs_chk_r',
  163. value: '应收票据异动类型为背书转让的,是否有关联的付款单或预付单,是否已过账'
  164. },{
  165. action: 'fa/gs/chk_s.action',
  166. detno: 19,
  167. type: 'gs_chk_s',
  168. value: '应付票据异动类型为兑现的,是否有关联的银行登记,是否已记账'
  169. },{
  170. action: 'fa/gs/chk_t.action',
  171. detno: 20,
  172. type: 'gs_chk_t',
  173. value: '每家供应商票面余额合计与总账应付票据科目对应供应商期末余额是否一致'
  174. },{
  175. action: 'fa/gs/chk_u.action',
  176. detno: 21,
  177. type: 'gs_chk_u',
  178. value: '每家客户票面余额合计与总账应收票据科目对应客户期末余额是否一致'
  179. }]
  180. })
  181. }]
  182. });
  183. me.callParent(arguments);
  184. }
  185. });