CheckAccount.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. Ext.define('erp.view.fa.ars.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/ars/chk_a.action',
  76. detno: 1,
  77. type: 'ar_chk_a',
  78. value: '应收账款期间 与 总账期间一致'
  79. },{
  80. action: 'fa/ars/chk_b.action',
  81. detno: 2,
  82. type: 'ar_chk_b',
  83. value: '当月的 出货单、退货单、发票、其它应收单、发出商品、收退款单、预收单、结算冲账单已过账'
  84. },{
  85. action: 'fa/ars/chk_c.action',
  86. detno: 3,
  87. type: 'ar_chk_c',
  88. value: '当月的 发票、其它应收单、发出商品、收退款单、预收单、结算单已制作凭证'
  89. },{
  90. action: 'fa/ars/chk_d.action',
  91. detno: 4,
  92. type: 'ar_chk_d',
  93. value: '当月的 出货单、退货单已全部转开票或发出商品'
  94. },{
  95. action: 'fa/ars/chk_e.action',
  96. detno: 5,
  97. type: 'ar_chk_e',
  98. value: '当月的发票的销售单价、成本单价与来源发出商品/出货单、销售退货单一致'
  99. },{
  100. action: 'fa/ars/chk_f.action',
  101. detno: 6,
  102. type: 'ar_chk_f',
  103. value: '当月凭证中,应收款科目有手工录入的(来源为空的)'
  104. },{
  105. action: 'fa/ars/chk_g.action',
  106. detno: 7,
  107. type: 'ar_chk_g',
  108. value: '当月的 总的开票数量与 出货单、退货单 的开票数量一致'
  109. },{
  110. action: 'fa/ars/chk_h.action',
  111. detno: 8,
  112. type: 'ar_chk_h',
  113. value: '当月的 总的发出商品数量是否与 出货单、退货单 的发出商品数量一致'
  114. },/*{
  115. action: 'fa/ars/chk_i.action',
  116. type: 'ar_chk_i',
  117. value: '当月开票数据中 涉及发出商品的 总的开票数量与 发出商品的开票数量一致'
  118. },*/{
  119. action: 'fa/ars/chk_j.action',
  120. detno: 9,
  121. type: 'ar_chk_j',
  122. value: '当月预收款、预收退款与应收总账里本期预收的一致'
  123. },{
  124. action: 'fa/ars/chk_k.action',
  125. detno: 10,
  126. type: 'ar_chk_k',
  127. value: '当月预收冲账与应收总账里本期预收冲账的一致'
  128. },{
  129. action: 'fa/ars/chk_l.action',
  130. detno: 11,
  131. type: 'ar_chk_l',
  132. value: '当月发出商品(成本价)与应收总账里本期发出商品的一致'
  133. },{
  134. action: 'fa/ars/chk_m.action',
  135. detno: 12,
  136. type: 'ar_chk_m',
  137. value: '当月发出商品(销售价)与应收总账里本期发出商品的一致'
  138. },{
  139. action: 'fa/ars/chk_n.action',
  140. detno: 13,
  141. type: 'ar_chk_n',
  142. value: '当月开票数据中 涉及发出商品的(成本价)与应收总账里本期发出商品转开票的一致'
  143. },{
  144. action: 'fa/ars/chk_o.action',
  145. detno: 14,
  146. type: 'ar_chk_o',
  147. value: '当月开票数据中 涉及发出商品的(销售价)与应收总账里本期发出商品转开票的一致'
  148. },{
  149. action: 'fa/ars/chk_p.action',
  150. detno: 15,
  151. type: 'ar_chk_p',
  152. value: '当月的 发票、其它应收单 的总额与 应收总账本期应收一致'
  153. },{
  154. action: 'fa/ars/chk_q.action',
  155. detno: 16,
  156. type: 'ar_chk_q',
  157. value: '当月的 收款单、退款单、结算单 的总额与 应收总账的本期收款一致'
  158. },{
  159. action: 'fa/ars/chk_r.action',
  160. detno: 17,
  161. type: 'ar_chk_r',
  162. value: '当月的 发票收入总额 与主营业务收入 的贷方一致'
  163. },{
  164. action: 'fa/ars/chk_s.action',
  165. detno: 18,
  166. type: 'ar_chk_s',
  167. value: '当月的 发票成本总额 与主营业务成本 的借方一致'
  168. },{
  169. action: 'fa/ars/chk_y.action',
  170. detno: 19,
  171. type: 'ar_chk_y',
  172. value: '当月的 预收和应收同时有余额'
  173. }]
  174. })
  175. }]
  176. });
  177. me.callParent(arguments);
  178. }
  179. });