CheckIVAccount.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. Ext.define('erp.view.co.inventory.CheckIVAccount',{
  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: 'co/inventory/chk_x.action',
  64. detno: 1,
  65. type: 'co_chk_x',
  66. value: '成本期间 与 库存期间一致'
  67. },{
  68. action: 'co/inventory/chk_a.action',
  69. detno: 2,
  70. type: 'co_chk_a',
  71. value: '库存是否已经冻结'
  72. },{
  73. action: 'co/inventory/chk_b.action',
  74. detno: 3,
  75. type: 'co_chk_b',
  76. value: '当期是否有未过账的出入库单据'
  77. },{
  78. action: 'co/inventory/chk_c.action',
  79. detno: 4,
  80. type: 'co_chk_c',
  81. value: '当月出入库单据料号是否存在'
  82. },{
  83. action: 'co/inventory/chk_d.action',
  84. detno: 5,
  85. type: 'co_chk_d',
  86. value: '生产领料单、生产补料单、生产退料单、完工入库单、拆件入库单存货金额是否与总账科目一致'
  87. },{
  88. action: 'co/inventory/chk_e.action',
  89. detno: 6,
  90. type: 'co_chk_e',
  91. value: '委外领料单、委外补料单、委外退料单存货金额是否与总账科目一致'
  92. },{
  93. action: 'co/inventory/chk_f.action',
  94. detno: 7,
  95. type: 'co_chk_f',
  96. value: '其它出库单、其它入库单存货金额是否与总账科目一致'
  97. },{
  98. action: 'co/inventory/chk_g.action',
  99. detno: 8,
  100. type: 'co_chk_g',
  101. value: '盘盈调整单、盘亏调整单、报废单与相应凭证存货科目是否与总账科目一致'
  102. },{
  103. action: 'co/inventory/chk_h.action',
  104. detno: 9,
  105. type: 'co_chk_h',
  106. value: '拨入拨出单、销售拨入拨出单存货金额是否与总账科目一致'
  107. },
  108. /*{
  109. action: 'co/inventory/chk_i.action',
  110. type: 'co_chk_i',
  111. value: '采购验收单、采购验退单存货金额是否与总账科目一致'
  112. },*/
  113. {
  114. action: 'co/inventory/chk_j.action',
  115. detno: 10,
  116. type: 'co_chk_j',
  117. value: '出货单、销售退货单存货金额是否与总账科目一致'
  118. },{
  119. action: 'co/inventory/chk_k.action',
  120. detno: 11,
  121. type: 'co_chk_k',
  122. value: '仓库物料别库存总账【期末结存金额】与总账对应存货科目余额是否一致'
  123. },{
  124. action: 'co/inventory/chk_l.action',
  125. detno: 12,
  126. type: 'co_chk_l',
  127. value: '仓库物料别库存总账:期初数量是否与上月期末数量一致'
  128. },{
  129. action: 'co/inventory/chk_m.action',
  130. detno: 13,
  131. type: 'co_chk_m',
  132. value: '存货月结表:期初金额是否与上月期末金额一致'
  133. },{
  134. action: 'co/inventory/chk_n.action',
  135. detno: 14,
  136. type: 'co_chk_n',
  137. value: '存货月结表:物料期末数量是否有数量无金额的情况'
  138. },{
  139. action: 'co/inventory/chk_o.action',
  140. detno: 15,
  141. type: 'co_chk_o',
  142. value: '存货月结表:物料期末金额是否有金额无数量的情况'
  143. },{
  144. action: 'co/inventory/chk_p.action',
  145. detno: 16,
  146. type: 'co_chk_p',
  147. value: '存货月结表:物料是否负数金额、负数数量的情况'
  148. },{
  149. action: 'co/inventory/chk_q.action',
  150. detno: 17,
  151. type: 'co_chk_q',
  152. value: '存货核算:所有的出入库单批次单价是否核算进去'
  153. },{
  154. action: 'co/inventory/chk_r.action',
  155. detno: 18,
  156. type: 'co_chk_r',
  157. value: '所有的出入库单据是否做了凭证'
  158. },{
  159. action: 'co/inventory/chk_s.action',
  160. detno: 19,
  161. type: 'co_chk_s',
  162. value: '是否存在无来源单据总账制作存货科目凭证及来源单据非出入库单、期初调整单、应付发票、应付暂估、发出商品、主营业务成本存货科目凭证'
  163. },{
  164. action: 'co/inventory/chk_t.action',
  165. detno: 20,
  166. type: 'co_chk_t',
  167. value: '是否存在非无值仓0单价、单价为负数物料'
  168. },{
  169. action: 'co/inventory/chk_u.action',
  170. detno: 21,
  171. type: 'co_chk_u',
  172. value: '无值仓是否存在单价'
  173. },{
  174. action: 'co/inventory/chk_v.action',
  175. detno: 22,
  176. type: 'co_chk_v',
  177. value: '是否存在上月出库当月入库的情况'
  178. },{
  179. action: 'co/inventory/chk_w.action',
  180. detno: 23,
  181. type: 'co_chk_w',
  182. value: '所有出入库单据会计期间是否和凭证一致'
  183. }]
  184. }),
  185. bbar: [{
  186. xtype: 'checkbox',
  187. boxLabel: '知道错误了,我要继续结账',
  188. id : 'allow',
  189. hidden : true,
  190. margin: '0 5 0 20'
  191. },'->',{
  192. cls: 'x-btn-blue',
  193. id: 'check',
  194. text: '结账检查',
  195. width: 80,
  196. margin: '0 0 0 50'
  197. },{
  198. cls: 'x-btn-blue',
  199. id: 'accoutover',
  200. text: '结 账',
  201. width: 80,
  202. disabled : true,
  203. margin: '0 0 0 5'
  204. },{
  205. cls: 'x-btn-blue',
  206. id: 'resaccoutover',
  207. text: '反结账',
  208. width: 80,
  209. margin: '0 0 0 5'
  210. },{
  211. cls: 'x-btn-blue',
  212. id: 'close',
  213. text: $I18N.common.button.erpCloseButton,
  214. width: 80,
  215. margin: '0 175 0 5'
  216. }]
  217. }]
  218. });
  219. me.callParent(arguments);
  220. }
  221. });