CheckGSAccount.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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: 'detno',
  33. flex: 0.7,
  34. renderer: function(val, meta, record) {
  35. return val;
  36. }
  37. },{
  38. text: '检测项',
  39. dataIndex: 'value',
  40. flex: 10,
  41. renderer: function(val, meta, record) {
  42. if(record.get('check') == 'error') {
  43. meta.style = 'color: gray';
  44. }
  45. return val;
  46. }
  47. },{
  48. text: '',
  49. dataIndex: 'link',
  50. flex: 1,
  51. renderer: function(val, meta, record) {
  52. if(record.get('check') == 'error') {
  53. meta.tdCls = 'detail';
  54. return '详细情况';
  55. }
  56. return '';
  57. }
  58. }],
  59. columnLines: true,
  60. store: Ext.create('Ext.data.Store',{
  61. fields: [{name: 'action', type: 'string'}, {name: 'detno', type : 'number'}, {name: 'type', type: 'string'}, {name: 'value', type: 'string'}],
  62. data: [{
  63. action: 'fa/gs/chk_a.action',
  64. detno: 1,
  65. type: 'gs_chk_a',
  66. value: '当月银行现金单据是否全部记账'
  67. },{
  68. action: 'fa/gs/chk_b.action',
  69. detno: 2,
  70. type: 'gs_chk_b',
  71. value: '当月银行现金单据是否全部做了凭证'
  72. },{
  73. action: 'fa/gs/chk_c.action',
  74. detno: 3,
  75. type: 'gs_chk_c',
  76. value: '银行现金余额是否出现负数'
  77. },{
  78. action: 'fa/gs/chk_d.action',
  79. detno: 4,
  80. type: 'gs_chk_d',
  81. value: '票据资金系统期间与总账期间是否一致'
  82. },{
  83. action: 'fa/gs/chk_e.action',
  84. detno: 5,
  85. type: 'gs_chk_e',
  86. value: '预收款、预收退款类型的银行登记关联的预收款、预收退款单是否存在、是否已过账'
  87. },{
  88. action: 'fa/gs/chk_f.action',
  89. detno: 6,
  90. type: 'gs_chk_f',
  91. value: '应收款、应收退款类型的银行登记关联的收款单、收款退款单是否存在、是否已过账'
  92. },{
  93. action: 'fa/gs/chk_g.action',
  94. detno: 7,
  95. type: 'gs_chk_g',
  96. value: '预付款、预付退款类型的银行登记关联的预付款、预付退款单是否存在、是否已过账'
  97. },{
  98. action: 'fa/gs/chk_h.action',
  99. detno: 8,
  100. type: 'gs_chk_h',
  101. value: '应付款、应付退款类型的银行登记关联的付款单、付款退款单是否存在、是否已过账'
  102. },{
  103. action: 'fa/gs/chk_i.action',
  104. detno: 9,
  105. type: 'gs_chk_i',
  106. value: '转存类型的银行登记是否平衡'
  107. },{
  108. action: 'fa/gs/chk_k.action',
  109. detno: 10,
  110. type: 'gs_chk_k',
  111. value: '所有应付票据是否已审核'
  112. },{
  113. action: 'fa/gs/chk_l.action',
  114. detno: 11,
  115. type: 'gs_chk_l',
  116. value: '所有应付票据异动单是否已过账'
  117. },{
  118. action: 'fa/gs/chk_m.action',
  119. detno: 12,
  120. type: 'gs_chk_m',
  121. value: '所有应收票据是否已审核'
  122. },{
  123. action: 'fa/gs/chk_n.action',
  124. detno: 13,
  125. type: 'gs_chk_n',
  126. value: '所有应收票据异动单是否已过账'
  127. },{
  128. action: 'fa/gs/chk_o.action',
  129. detno: 14,
  130. type: 'gs_chk_o',
  131. value: '应收票据是否有关联的收款单或预收单,是否已过账'
  132. },{
  133. action: 'fa/gs/chk_p.action',
  134. detno: 15,
  135. type: 'gs_chk_p',
  136. value: '应付票据是否有关联的付款单或预付单,是否已过账'
  137. },{
  138. action: 'fa/gs/chk_q.action',
  139. detno: 16,
  140. type: 'gs_chk_q',
  141. value: '应收票据异动类型为收款、贴现的,是否有关联的银行登记,是否已记账'
  142. },{
  143. action: 'fa/gs/chk_r.action',
  144. detno: 17,
  145. type: 'gs_chk_r',
  146. value: '应收票据异动类型为背书转让的,是否有关联的付款单或预付单,是否已记账'
  147. },{
  148. action: 'fa/gs/chk_s.action',
  149. detno: 18,
  150. type: 'gs_chk_s',
  151. value: '应付票据异动类型为兑现的,是否有关联的银行登记,是否已记账'
  152. },{
  153. action: 'fa/gs/chk_v.action',
  154. detno: 19,
  155. type: 'gs_chk_v',
  156. value: '应付票据异动类型为退票、作废的,是否有关联的应付退款单、预付退款单,是否已记账'
  157. },{
  158. action: 'fa/gs/chk_w.action',
  159. detno: 20,
  160. type: 'gs_chk_w',
  161. value: '应收票据异动类型为退票、作废的,是否有关联的应收退款单、预收退款单,是否已记账'
  162. },{
  163. action: 'fa/gs/chk_t.action',
  164. detno: 21,
  165. type: 'gs_chk_t',
  166. value: '当月应付票据科目余额与应付票据票面余额是否一致'
  167. },{
  168. action: 'fa/gs/chk_u.action',
  169. detno: 22,
  170. type: 'gs_chk_u',
  171. value: '当月应收票据科目余额与应收票据票面余额是否一致'
  172. },{
  173. action: 'fa/gs/chk_j.action',
  174. detno: 23,
  175. type: 'gs_chk_j',
  176. value: '当月银行现金类科目余额与银行存款总账查询界面期末余额是否一致'
  177. }]
  178. }),
  179. bbar: [{
  180. xtype: 'checkbox',
  181. boxLabel: '知道错误了,我要继续结账',
  182. id : 'allow',
  183. hidden : true,
  184. margin: '0 5 0 20'
  185. },'->',{
  186. cls: 'x-btn-blue',
  187. id: 'check',
  188. text: '结账检查',
  189. width: 80,
  190. margin: '0 0 0 50'
  191. },{
  192. cls: 'x-btn-blue',
  193. id: 'accoutover',
  194. text: '结 账',
  195. width: 80,
  196. disabled : true,
  197. margin: '0 0 0 5'
  198. },{
  199. cls: 'x-btn-blue',
  200. id: 'resaccoutover',
  201. text: '反结账',
  202. width: 80,
  203. margin: '0 0 0 5'
  204. },{
  205. cls: 'x-btn-blue',
  206. id: 'close',
  207. text: $I18N.common.button.erpCloseButton,
  208. width: 80,
  209. margin: '0 175 0 5'
  210. }]
  211. }]
  212. });
  213. me.callParent(arguments);
  214. }
  215. });