CheckAccount.js 4.8 KB

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