CheckIVAccount.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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: '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: 'co/inventory/chk_a.action',
  57. type: 'co_chk_a',
  58. value: '库存是否已经冻结'
  59. },{
  60. action: 'co/inventory/chk_b.action',
  61. type: 'co_chk_b',
  62. value: '当期是否有未过账的出入库单据'
  63. },{
  64. action: 'co/inventory/chk_c.action',
  65. type: 'co_chk_c',
  66. value: '当月出入库单据料号是否存在'
  67. },{
  68. action: 'co/inventory/chk_d.action',
  69. type: 'co_chk_d',
  70. value: '生产领料单、生产补料单、生产退料单、完工入库单、拆件入库单存货金额是否与总账科目一致'
  71. },{
  72. action: 'co/inventory/chk_e.action',
  73. type: 'co_chk_e',
  74. value: '委外领料单、委外补料单、委外退料单、委外验收单、委外验退单存货金额是否与总账科目一致'
  75. },{
  76. action: 'co/inventory/chk_f.action',
  77. type: 'co_chk_f',
  78. value: '其他出/入库单存货金额是否与总账科目一致'
  79. },{
  80. action: 'co/inventory/chk_g.action',
  81. type: 'co_chk_g',
  82. value: '盘盈、盘亏、报废单与相应凭证存货科目是否与总账科目一致'
  83. },{
  84. action: 'co/inventory/chk_h.action',
  85. type: 'co_chk_h',
  86. value: '拨入拨出单,销售拨入拨出单存货金额是否与总账科目一致'
  87. },{
  88. action: 'co/inventory/chk_i.action',
  89. type: 'co_chk_i',
  90. value: '采购验收单、采购验退单存货金额是否与总账科目一致'
  91. },{
  92. action: 'co/inventory/chk_j.action',
  93. type: 'co_chk_j',
  94. value: '发货单、退货单存货金额是否与总账科目一致'
  95. },{
  96. action: 'co/inventory/chk_k.action',
  97. type: 'co_chk_k',
  98. value: '期末汇总表【期末结存金额】与总账对应存货科目余额是否一致'
  99. },{
  100. action: 'co/inventory/chk_l.action',
  101. type: 'co_chk_l',
  102. value: '存货月结表:期初数量是否与上月期末数量一致'
  103. },{
  104. action: 'co/inventory/chk_m.action',
  105. type: 'co_chk_m',
  106. value: '存货月结表:期初金额是否与上月期末金额一致'
  107. },{
  108. action: 'co/inventory/chk_n.action',
  109. type: 'co_chk_n',
  110. value: '存货月结表:物料期末数量是否有数量无金额的情况'
  111. },{
  112. action: 'co/inventory/chk_o.action',
  113. type: 'co_chk_o',
  114. value: '存货月结表:物料期末金额是否有金额无数量的情况'
  115. },{
  116. action: 'co/inventory/chk_p.action',
  117. type: 'co_chk_p',
  118. value: '存货月结表:物料是否负数金额、负数数量的情况'
  119. },{
  120. action: 'co/inventory/chk_q.action',
  121. type: 'co_chk_q',
  122. value: '存货核算:所有的出入库单批次单价是否核算进去'
  123. },{
  124. action: 'co/inventory/chk_r.action',
  125. type: 'co_chk_r',
  126. value: '所有的出入库单据是否做了凭证'
  127. },{
  128. action: 'co/inventory/chk_s.action',
  129. type: 'co_chk_s',
  130. value: '是否存在总账直接制作存货科目凭证或非出入库单、应付发票、主营业务成本结转制作的存货科目凭证'
  131. },{
  132. action: 'co/inventory/chk_t.action',
  133. type: 'co_chk_t',
  134. value: '是否存在非无值仓0单价、单价为负数物料'
  135. },{
  136. action: 'co/inventory/chk_u.action',
  137. type: 'co_chk_u',
  138. value: '无值仓是否存在单价'
  139. },{
  140. action: 'co/inventory/chk_v.action',
  141. type: 'co_chk_v',
  142. value: '是否存在上月出库当月入库的情况'
  143. },{
  144. action: 'co/inventory/chk_w.action',
  145. type: 'co_chk_w',
  146. value: '所有出入库单据会计期间是否和凭证一致'
  147. }]
  148. }),
  149. bbar: [{
  150. xtype: 'checkbox',
  151. boxLabel: '知道错误了,我要继续结账',
  152. id : 'allow',
  153. hidden : true,
  154. margin: '0 5 0 20'
  155. },'->',{
  156. cls: 'x-btn-blue',
  157. id: 'check',
  158. text: '结账检查',
  159. width: 80,
  160. margin: '0 0 0 50'
  161. },{
  162. cls: 'x-btn-blue',
  163. id: 'accoutover',
  164. text: '结 账',
  165. width: 80,
  166. disabled : true,
  167. margin: '0 0 0 5'
  168. },{
  169. cls: 'x-btn-blue',
  170. id: 'resaccoutover',
  171. text: '反结账',
  172. width: 80,
  173. margin: '0 0 0 5'
  174. },{
  175. cls: 'x-btn-blue',
  176. id: 'close',
  177. text: $I18N.common.button.erpCloseButton,
  178. width: 80,
  179. margin: '0 175 0 5'
  180. }]
  181. }]
  182. });
  183. me.callParent(arguments);
  184. }
  185. });