AfterAccount.js 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. Ext.define('erp.view.co.cost.AfterAccount',{
  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 10'
  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: 'co/cost/chk_after_a.action',
  69. type: 'co_chk_after_a',
  70. value: '成本表:工单工作中心是否与工单一致'
  71. },{
  72. action: 'co/cost/chk_after_b.action',
  73. type: 'co_chk_after_b',
  74. value: '成本表:工单类型是否与工单一致'
  75. },{
  76. action: 'co/cost/chk_after_c.action',
  77. type: 'co_chk_after_c',
  78. value: '成本表:工单工作中心是否与工单一致'
  79. },{
  80. action: 'co/cost/chk_after_d.action',
  81. type: 'co_chk_after_d',
  82. value: '成本表:工单工单数量是否与工单一致'
  83. },{
  84. action: 'co/cost/chk_after_e.action',
  85. type: 'co_chk_after_e',
  86. value: '成本表:本期完工数是否与实际关联的本期完工一致'
  87. },{
  88. action: 'co/cost/chk_after_f.action',
  89. type: 'co_chk_after_f',
  90. value: '成本表:本期报废数量、金额是否与用料月结表里一致(下面用料月结表也会跟实际单据比较)'
  91. },{
  92. action: 'co/cost/chk_after_g.action',
  93. type: 'co_chk_after_g',
  94. value: '成本表:本期领料金额是否等于∑(工单关联的用料月结表中本期领料金额+本期补料金额-本期退料金额),是否与工单关联的领退补单据一致'
  95. },{
  96. action: 'co/cost/chk_after_h.action',
  97. type: 'co_chk_after_h',
  98. value: '成本表:分摊费用按工作中心总和是否与费用表一致(按不同工作中心分组依次比较每一项)'
  99. },{
  100. action: 'co/cost/chk_after_i.action',
  101. type: 'co_chk_after_i',
  102. value: '成本表:最终成本是否=总转出成本/本期完工数+加工价+上面几个分摊的单个费用'
  103. },{
  104. action: 'co/cost/chk_after_j.action',
  105. type: 'co_chk_after_j',
  106. value: '成本表:工单的状态是否准确'
  107. },{
  108. action: 'co/cost/chk_after_k.action',
  109. type: 'co_chk_after_k',
  110. value: '成本表:是否当月有发生领退补完工验收验退报废的工单都体现在成本表里'
  111. },{
  112. action: 'co/cost/chk_after_l.action',
  113. type: 'co_chk_after_l',
  114. value: '成本表:检查最终成本是否成功核算到完工入库、委外验收单里'
  115. },{
  116. action: 'co/cost/chk_after_m.action',
  117. type: 'co_chk_after_m',
  118. value: '成本表:委外加工单价跟委外单是否一致'
  119. },{
  120. action: 'co/cost/chk_after_n.action',
  121. type: 'co_chk_after_n',
  122. value: '月结表:检查月结表数据是否有异常'
  123. },{
  124. action: 'co/cost/chk_after_o.action',
  125. type: 'co_chk_after_o',
  126. value: '月结表:检查单位用量是否与工单用料表里一致'
  127. },{
  128. action: 'co/cost/chk_after_p.action',
  129. type: 'co_chk_after_p',
  130. value: '月结表:检查总用量是否与工单用料表里一致'
  131. },{
  132. action: 'co/cost/chk_after_q.action',
  133. type: 'co_chk_after_q',
  134. value: '月结表:检查本期领料数量、金额'
  135. },{
  136. action: 'co/cost/chk_after_r.action',
  137. type: 'co_chk_after_r',
  138. value: '月结表:检查本期补料数量、金额'
  139. },{
  140. action: 'co/cost/chk_after_s.action',
  141. type: 'co_chk_after_s',
  142. value: '月结表:检查本期退料数量、金额'
  143. },{
  144. action: 'co/cost/chk_after_t.action',
  145. type: 'co_chk_after_t',
  146. value: '月结表:检查单价cdm_price的逻辑(影响到退料核算)'
  147. },{
  148. action: 'co/cost/chk_after_u.action',
  149. type: 'co_chk_after_u',
  150. value: '月结表:检查本期报废数量'
  151. },{
  152. action: 'co/cost/chk_after_v.action',
  153. type: 'co_chk_after_v',
  154. value: '月结表:检查累计报废数量'
  155. },{
  156. action: 'co/cost/chk_after_w.action',
  157. type: 'co_chk_after_w',
  158. value: '月结表:检查本期成品入库数是否等于成本表本期完工数'
  159. },{
  160. action: 'co/cost/chk_after_x.action',
  161. type: 'co_chk_after_x',
  162. value: '月结表:检查实际单位用量,(总用量-前期转出数量)/期初未完工数'
  163. },{
  164. action: 'co/cost/chk_after_y.action',
  165. type: 'co_chk_after_y',
  166. value: '月结表:检查期末数量:期初数量+本期领料数量-本期退料数量+本期补料数量-本期转出数量-本期报废数量'
  167. },{
  168. action: 'co/cost/chk_after_z.action',
  169. type: 'co_chk_after_z',
  170. value: '月结表:期末金额:期初金额+本期领料金额-本期退料金额+本期补料金额-本期转出金额-本期报废金额'
  171. },{
  172. action: 'co/cost/chk_after_aa.action',
  173. type: 'co_chk_after_aa',
  174. value: '月结表:期末报废结余金额:本期报废金额+报废期初余额-本期报废转出金额'
  175. },{
  176. action: 'co/cost/chk_after_ab.action',
  177. type: 'co_chk_after_ab',
  178. value: '检查月结表用料重复'
  179. },{
  180. action: 'co/cost/chk_after_ac.action',
  181. type: 'co_chk_after_ac',
  182. value: '检查月结表料号不存在'
  183. },{
  184. action: 'co/cost/chk_after_ad.action',
  185. type: 'co_chk_after_ad',
  186. value: '检查成本表领退补跟出入库差异'
  187. },{
  188. action: 'co/cost/chk_after_af.action',
  189. type: 'co_chk_after_af',
  190. value: '检查是否有期末完工数不等于期初完工数+本期完工数'
  191. },{
  192. action: 'co/cost/chk_after_ag.action',
  193. type: 'co_chk_after_ag',
  194. value: '检查是否有期末完工数大于工单数的'
  195. },{
  196. action: 'co/cost/chk_after_ah.action',
  197. type: 'co_chk_after_ah',
  198. value: '检查加工价'
  199. },{
  200. action: 'co/cost/chk_after_ai.action',
  201. type: 'co_chk_after_ai',
  202. value: '检查是否有最终成本负数的情况'
  203. },{
  204. action: 'co/cost/chk_after_aj.action',
  205. type: 'co_chk_after_aj',
  206. value: '检查材料成本负数的情况'
  207. },{
  208. action: 'co/cost/chk_after_ak.action',
  209. type: 'co_chk_after_ak',
  210. value: '检查标准工时是否与物料里一致'
  211. },{
  212. action: 'co/cost/chk_after_al.action',
  213. type: 'co_chk_after_al',
  214. value: '检查总工时'
  215. }]
  216. })
  217. }]
  218. });
  219. me.callParent(arguments);
  220. }
  221. });