CheckAPAccount.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. Ext.define('erp.view.fa.arp.CheckAPAccount',{
  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/arp/chk_a.action',
  64. detno: 1,
  65. type: 'ap_chk_a',
  66. value: '应付账款期间 与 总账期间一致'
  67. },{
  68. action: 'fa/arp/chk_b.action',
  69. detno: 2,
  70. type: 'ap_chk_b',
  71. value: '当月的 验收单、验退单、发票、其它应付单、暂估、付退款单、预付单、结算冲账单已过账'
  72. },{
  73. action: 'fa/arp/chk_c.action',
  74. detno: 3,
  75. type: 'ap_chk_c',
  76. value: '当月的 发票、其它应付单、暂估、付退款单、预付单、结算单已制作凭证'
  77. },{
  78. action: 'fa/arp/chk_d.action',
  79. detno: 4,
  80. type: 'ap_chk_d',
  81. value: '当月的 验收单、验退单已全部转开票或暂估'
  82. },{
  83. action: 'fa/arp/chk_e.action',
  84. detno: 5,
  85. type: 'ap_chk_e',
  86. value: '当月的 发票、暂估(全部未开票的) 的采购单价、成本单价与 验收单、验退单 的一致'
  87. },{
  88. action: 'fa/arp/chk_f.action',
  89. detno: 6,
  90. type: 'ap_chk_f',
  91. value: '当月凭证中,应付款科目有手工录入的(来源为空的)'
  92. },{
  93. action: 'fa/arp/chk_g.action',
  94. detno: 7,
  95. type: 'ap_chk_g',
  96. value: '当月的 总的开票数量与 验收单、验退单 的开票数量一致'
  97. },{
  98. action: 'fa/arp/chk_h.action',
  99. detno: 8,
  100. type: 'ap_chk_h',
  101. value: '当月的 总的暂估数量是否与 验收单、验退单 的暂估数量一致'
  102. }/*,{
  103. action: 'fa/arp/chk_i.action',
  104. type: 'ap_chk_i',
  105. value: '当月开票数据中 涉及暂估的 总的开票数量与 暂估的开票数量一致'
  106. }*/,{
  107. action: 'fa/arp/chk_j.action',
  108. detno: 9,
  109. type: 'ap_chk_j',
  110. value: '当月预付款、预付退款与应付总账里本期预付的一致'
  111. },{
  112. action: 'fa/arp/chk_k.action',
  113. detno: 10,
  114. type: 'ap_chk_k',
  115. value: '当月预付冲账与应付总账里本期预付冲账的一致'
  116. },{
  117. action: 'fa/arp/chk_l.action',
  118. detno: 11,
  119. type: 'ap_chk_l',
  120. value: '当月暂估与应付总账里本期应付暂估增加一致'
  121. },
  122. /*{
  123. action: 'fa/arp/chk_m.action',
  124. type: 'ap_chk_m',
  125. value: '当月暂估(采购价)与应付总账里本期暂估的一致'
  126. },*/
  127. {
  128. action: 'fa/arp/chk_n.action',
  129. detno: 12,
  130. type: 'ap_chk_n',
  131. value: '当月开票数据中涉及暂估的与应付总账里本期应付暂估减少一致'
  132. },
  133. /*{
  134. action: 'fa/arp/chk_o.action',
  135. type: 'ap_chk_o',
  136. value: '当月开票数据中 涉及暂估的(采购价)与应付总账里本期暂估转开票的一致'
  137. },*/
  138. {
  139. action: 'fa/arp/chk_p.action',
  140. detno: 13,
  141. type: 'ap_chk_p',
  142. value: '当月的 发票、其它应付单 的总额与 应付总账本期应付一致'
  143. },{
  144. action: 'fa/arp/chk_q.action',
  145. detno: 14,
  146. type: 'ap_chk_q',
  147. value: '当月的 付款单、退款单、结算单 的总额与 应付总账的本期付款一致'
  148. },{
  149. action: 'fa/arp/chk_r.action',
  150. detno: 15,
  151. type: 'ap_chk_r',
  152. value: '当月应付账款科目余额与应付总账应付期末余额是否一致'
  153. },{
  154. action: 'fa/arp/chk_s.action',
  155. detno: 16,
  156. type: 'ap_chk_s',
  157. value: '当月预付账款科目余额与预付总账预付期末余额是否一致'
  158. },{
  159. action: 'fa/arp/chk_t.action',
  160. detno: 17,
  161. type: 'ap_chk_t',
  162. value: '当月应付暂估科目余额与应付总账应付暂估余额(采购价除税)是否一致'
  163. }]
  164. }),
  165. bbar: [{
  166. xtype: 'checkbox',
  167. boxLabel: '知道错误了,我要继续结账',
  168. id : 'allow',
  169. hidden : true,
  170. margin: '0 5 0 20'
  171. },'->',{
  172. cls: 'x-btn-blue',
  173. id: 'check',
  174. text: '结账检查',
  175. width: 80,
  176. margin: '0 0 0 50'
  177. },{
  178. cls: 'x-btn-blue',
  179. id: 'accoutover',
  180. text: '结 账',
  181. width: 80,
  182. disabled : true,
  183. margin: '0 0 0 5'
  184. },{
  185. cls: 'x-btn-blue',
  186. id: 'resaccoutover',
  187. text: '反结账',
  188. width: 80,
  189. margin: '0 0 0 5'
  190. },{
  191. cls: 'x-btn-blue',
  192. id: 'close',
  193. text: $I18N.common.button.erpCloseButton,
  194. width: 80,
  195. margin: '0 175 0 5'
  196. }]
  197. }]
  198. });
  199. me.callParent(arguments);
  200. }
  201. });