CheckAccount.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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: '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/ars/chk_a.action',
  69. type: 'ar_chk_a',
  70. value: '应收帐款期间 与 总账期间一致'
  71. },{
  72. action: 'fa/ars/chk_b.action',
  73. type: 'ar_chk_b',
  74. value: '当月的 出货单、退货单、发票、其它应收单、发出商品、收退款单、预收单、结算冲帐单已过账'
  75. },{
  76. action: 'fa/ars/chk_c.action',
  77. type: 'ar_chk_c',
  78. value: '当月的 发票、其它应收单、发出商品、收退款单、预收单、结算单已制作凭证'
  79. },{
  80. action: 'fa/ars/chk_d.action',
  81. type: 'ar_chk_d',
  82. value: '当月的 出货单、退货单已全部转开票或发出商品'
  83. },{
  84. action: 'fa/ars/chk_e.action',
  85. type: 'ar_chk_e',
  86. value: '当月的 发票、发出商品(全部未开票的) 的销售单价、成本单价与 出货单、退货单 的一致'
  87. },{
  88. action: 'fa/ars/chk_f.action',
  89. type: 'ar_chk_f',
  90. value: '当月凭证中,应收款科目有手工录入的(来源为空的)'
  91. },{
  92. action: 'fa/ars/chk_g.action',
  93. type: 'ar_chk_g',
  94. value: '当月的 总的开票数量与 出货单、退货单 的开票数量一致'
  95. },{
  96. action: 'fa/ars/chk_h.action',
  97. type: 'ar_chk_h',
  98. value: '当月的 总的发出商品数量是否与 出货单、退货单 的发出商品数量一致'
  99. },{
  100. action: 'fa/ars/chk_i.action',
  101. type: 'ar_chk_i',
  102. value: '当月开票数据中 涉及发出商品的 总的开票数量与 发出商品的开票数量一致'
  103. },{
  104. action: 'fa/ars/chk_j.action',
  105. type: 'ar_chk_j',
  106. value: '当月预收款、预收退款与应收总账里本期预收的一致'
  107. },{
  108. action: 'fa/ars/chk_k.action',
  109. type: 'ar_chk_k',
  110. value: '当月预收冲账与应收总账里本期预收冲账的一致'
  111. },{
  112. action: 'fa/ars/chk_l.action',
  113. type: 'ar_chk_l',
  114. value: '当月发出商品(成本价)与应收总账里本期发出商品的一致'
  115. },{
  116. action: 'fa/ars/chk_m.action',
  117. type: 'ar_chk_m',
  118. value: '当月发出商品(销售价)与应收总账里本期发出商品的一致'
  119. },{
  120. action: 'fa/ars/chk_n.action',
  121. type: 'ar_chk_n',
  122. value: '当月开票数据中 涉及发出商品的(成本价)与应收总账里本期发出商品转开票的一致'
  123. },{
  124. action: 'fa/ars/chk_o.action',
  125. type: 'ar_chk_o',
  126. value: '当月开票数据中 涉及发出商品的(销售价)与应收总账里本期发出商品转开票的一致'
  127. },{
  128. action: 'fa/ars/chk_p.action',
  129. type: 'ar_chk_p',
  130. value: '当月的 发票、其它应收单 的总额与 应收总账本期应收一致'
  131. },{
  132. action: 'fa/ars/chk_q.action',
  133. type: 'ar_chk_q',
  134. value: '当月的 收款单、退款单、结算单 的总额与 应收总账的本期收款一致'
  135. },{
  136. action: 'fa/ars/chk_r.action',
  137. type: 'ar_chk_r',
  138. value: '当月的 发票销售总额 与 主营业务收入 的借方一致'
  139. },{
  140. action: 'fa/ars/chk_s.action',
  141. type: 'ar_chk_s',
  142. value: '当月的 发票成本总额 与 主营业务成本 的贷方发生一致'
  143. }]
  144. })
  145. }]
  146. });
  147. me.callParent(arguments);
  148. }
  149. });