CheckAPAccount.js 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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: 'value',
  33. flex: 10,
  34. renderer: function(val, meta, record) {
  35. if(record.get('check') == 'error') {
  36. meta.style = 'color: gray';
  37. }
  38. return val;
  39. }
  40. },{
  41. text: '',
  42. dataIndex: 'link',
  43. flex: 1,
  44. renderer: function(val, meta, record) {
  45. if(record.get('check') == 'error') {
  46. meta.tdCls = 'detail';
  47. return '详细情况';
  48. }
  49. return '';
  50. }
  51. }],
  52. columnLines: true,
  53. store: Ext.create('Ext.data.Store',{
  54. fields: [{name: 'action', type: 'string'}, {name: 'type', type: 'string'}, {name: 'value', type: 'string'}],
  55. data: [{
  56. action: 'fa/arp/chk_a.action',
  57. type: 'ap_chk_a',
  58. value: '应付帐款期间 与 总账期间一致'
  59. },{
  60. action: 'fa/arp/chk_b.action',
  61. type: 'ap_chk_b',
  62. value: '当月的 验收单、验退单、发票、其它应付单、暂估、付退款单、预付单、结算冲帐单已过账'
  63. },{
  64. action: 'fa/arp/chk_c.action',
  65. type: 'ap_chk_c',
  66. value: '当月的 发票、其它应付单、暂估、付退款单、预付单、结算单已制作凭证'
  67. },{
  68. action: 'fa/arp/chk_d.action',
  69. type: 'ap_chk_d',
  70. value: '当月的 验收单、验退单已全部转开票或暂估'
  71. },{
  72. action: 'fa/arp/chk_e.action',
  73. type: 'ap_chk_e',
  74. value: '当月的 发票、暂估(全部未开票的) 的采购单价、成本单价与 验收单、验退单 的一致'
  75. },{
  76. action: 'fa/arp/chk_f.action',
  77. type: 'ap_chk_f',
  78. value: '当月凭证中,应付款科目有手工录入的(来源为空的)'
  79. },{
  80. action: 'fa/arp/chk_g.action',
  81. type: 'ap_chk_g',
  82. value: '当月的 总的开票数量与 验收单、验退单 的开票数量一致'
  83. },{
  84. action: 'fa/arp/chk_h.action',
  85. type: 'ap_chk_h',
  86. value: '当月的 总的暂估数量是否与 验收单、验退单 的暂估数量一致'
  87. },{
  88. action: 'fa/arp/chk_i.action',
  89. type: 'ap_chk_i',
  90. value: '当月开票数据中 涉及暂估的 总的开票数量与 暂估的开票数量一致'
  91. },{
  92. action: 'fa/arp/chk_j.action',
  93. type: 'ap_chk_j',
  94. value: '当月预付款、预付退款与应付总账里本期预付的一致'
  95. },{
  96. action: 'fa/arp/chk_k.action',
  97. type: 'ap_chk_k',
  98. value: '当月预付冲账与应付总账里本期预付冲账的一致'
  99. },
  100. /*{
  101. action: 'fa/arp/chk_l.action',
  102. type: 'ap_chk_l',
  103. value: '当月暂估(成本价)与应付总账里本期暂估的一致'
  104. },*/
  105. {
  106. action: 'fa/arp/chk_m.action',
  107. type: 'ap_chk_m',
  108. value: '当月暂估(采购价)与应付总账里本期暂估的一致'
  109. },{
  110. action: 'fa/arp/chk_n.action',
  111. type: 'ap_chk_n',
  112. value: '当月开票数据中 涉及暂估的(成本价)与应付总账里本期暂估转开票的一致'
  113. },{
  114. action: 'fa/arp/chk_o.action',
  115. type: 'ap_chk_o',
  116. value: '当月开票数据中 涉及暂估的(采购价)与应付总账里本期暂估转开票的一致'
  117. },{
  118. action: 'fa/arp/chk_p.action',
  119. type: 'ap_chk_p',
  120. value: '当月的 发票、其它应付单 的总额与 应付总账本期应付一致'
  121. },{
  122. action: 'fa/arp/chk_q.action',
  123. type: 'ap_chk_q',
  124. value: '当月的 付款单、退款单、结算单 的总额与 应付总账的本期付款一致'
  125. }/*,{
  126. action: 'fa/arp/chk_r.action',
  127. type: 'ap_chk_r',
  128. value: '当月的 发票采购总额 与 主营业务付入 的借方一致'
  129. },{
  130. action: 'fa/arp/chk_s.action',
  131. type: 'ap_chk_s',
  132. value: '当月的 发票成本总额 与 主营业务成本 的贷方发生一致'
  133. }*/]
  134. }),
  135. bbar: [{
  136. xtype: 'checkbox',
  137. boxLabel: '知道错误了,我要继续结账',
  138. id : 'allow',
  139. hidden : true,
  140. margin: '0 5 0 20'
  141. },'->',{
  142. cls: 'x-btn-blue',
  143. id: 'check',
  144. text: '结账检查',
  145. width: 80,
  146. margin: '0 0 0 50'
  147. },{
  148. cls: 'x-btn-blue',
  149. id: 'accoutover',
  150. text: '结 账',
  151. width: 80,
  152. disabled : true,
  153. margin: '0 0 0 5'
  154. },{
  155. cls: 'x-btn-blue',
  156. id: 'resaccoutover',
  157. text: '反结账',
  158. width: 80,
  159. margin: '0 0 0 5'
  160. },{
  161. cls: 'x-btn-blue',
  162. id: 'close',
  163. text: $I18N.common.button.erpCloseButton,
  164. width: 80,
  165. margin: '0 175 0 5'
  166. }]
  167. }]
  168. });
  169. me.callParent(arguments);
  170. }
  171. });