CheckGSAccount.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. Ext.define('erp.view.fa.gs.CheckGSAccount',{
  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/gs/chk_a.action',
  57. type: 'gs_chk_a',
  58. value: '当月银行现金单据是否全部记账'
  59. },{
  60. action: 'fa/gs/chk_b.action',
  61. type: 'gs_chk_b',
  62. value: '当月银行现金单据是否全部做了凭证'
  63. },{
  64. action: 'fa/gs/chk_c.action',
  65. type: 'gs_chk_c',
  66. value: '银行现金余额是否出现负数'
  67. },{
  68. action: 'fa/gs/chk_d.action',
  69. type: 'gs_chk_d',
  70. value: '银行现金单据会计期间是否和凭证期间一致'
  71. },{
  72. action: 'fa/gs/chk_e.action',
  73. type: 'gs_chk_e',
  74. value: '预收款、预收退款类型的银行登记关联的预收款、预收退款单是否存在、是否已记账'
  75. },{
  76. action: 'fa/gs/chk_f.action',
  77. type: 'gs_chk_f',
  78. value: '应收款、应收退款类型的银行登记关联的收款单、收款退款单是否存在、是否已记账'
  79. },{
  80. action: 'fa/gs/chk_g.action',
  81. type: 'gs_chk_g',
  82. value: '预付款、预付退款类型的银行登记关联的预付款、预付退款单是否存在、是否已记账'
  83. },{
  84. action: 'fa/gs/chk_h.action',
  85. type: 'gs_chk_h',
  86. value: '应付款、应付退款类型的银行登记关联的付款单、付款退款单是否存在、是否已记账'
  87. },{
  88. action: 'fa/gs/chk_i.action',
  89. type: 'gs_chk_i',
  90. value: '转存类型的银行登记是否平衡'
  91. },{
  92. action: 'fa/gs/chk_j.action',
  93. type: 'gs_chk_j',
  94. value: '银行各账户余额(期末平衡表)与总账对应科目原币余额是否一致'
  95. },{
  96. action: 'fa/gs/chk_k.action',
  97. type: 'gs_chk_k',
  98. value: '所有应付票据是否已审核'
  99. },{
  100. action: 'fa/gs/chk_l.action',
  101. type: 'gs_chk_l',
  102. value: '所有应付票据异动单是否已过账'
  103. },{
  104. action: 'fa/gs/chk_m.action',
  105. type: 'gs_chk_m',
  106. value: '所有应收票据是否已审核'
  107. },{
  108. action: 'fa/gs/chk_n.action',
  109. type: 'gs_chk_n',
  110. value: '所有应收票据异动单是否已过账'
  111. },{
  112. action: 'fa/gs/chk_o.action',
  113. type: 'gs_chk_o',
  114. value: '应收票据是否有关联的收款单或预收单,是否已过账'
  115. },{
  116. action: 'fa/gs/chk_p.action',
  117. type: 'gs_chk_p',
  118. value: '应付票据是否有关联的付款单或预付单,是否已过账'
  119. },{
  120. action: 'fa/gs/chk_q.action',
  121. type: 'gs_chk_q',
  122. value: '应收票据异动类型为收款、贴现的,是否有关联的银行登记,是否已记账'
  123. },{
  124. action: 'fa/gs/chk_r.action',
  125. type: 'gs_chk_r',
  126. value: '应收票据异动类型为背书转让的,是否有关联的付款单或预付单,是否已过帐'
  127. },{
  128. action: 'fa/gs/chk_s.action',
  129. type: 'gs_chk_s',
  130. value: '应付票据异动类型为兑现的,是否有关联的银行登记,是否已记账'
  131. },{
  132. action: 'fa/gs/chk_t.action',
  133. type: 'gs_chk_t',
  134. value: '每家供应商票面余额合计与总账应付票据科目对应供应商期末余额是否一致'
  135. },{
  136. action: 'fa/gs/chk_u.action',
  137. type: 'gs_chk_u',
  138. value: '每家客户票面余额合计与总账应收票据科目对应客户期末余额是否一致'
  139. }]
  140. }),
  141. bbar: [{
  142. xtype: 'checkbox',
  143. boxLabel: '知道错误了,我要继续结账',
  144. id : 'allow',
  145. hidden : true,
  146. margin: '0 5 0 20'
  147. },'->',{
  148. cls: 'x-btn-blue',
  149. id: 'check',
  150. text: '结账检查',
  151. width: 80,
  152. margin: '0 0 0 50'
  153. },{
  154. cls: 'x-btn-blue',
  155. id: 'accoutover',
  156. text: '结 账',
  157. width: 80,
  158. disabled : true,
  159. margin: '0 0 0 5'
  160. },{
  161. cls: 'x-btn-blue',
  162. id: 'resaccoutover',
  163. text: '反结账',
  164. width: 80,
  165. margin: '0 0 0 5'
  166. },{
  167. cls: 'x-btn-blue',
  168. id: 'close',
  169. text: $I18N.common.button.erpCloseButton,
  170. width: 80,
  171. margin: '0 175 0 5'
  172. }]
  173. }]
  174. });
  175. me.callParent(arguments);
  176. }
  177. });