CheckAccount.js 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. Ext.define('erp.view.co.inventory.CheckAccount',{
  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. 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/inventory/chk_a.action',
  69. type: 'co_chk_a',
  70. value: '库存是否已经冻结'
  71. },{
  72. action: 'co/inventory/chk_b.action',
  73. type: 'co_chk_b',
  74. value: '当期是否有未过账的出入库单据'
  75. },{
  76. action: 'co/inventory/chk_c.action',
  77. type: 'co_chk_c',
  78. value: '当月出入库单据料号是否存在'
  79. },{
  80. action: 'co/inventory/chk_d.action',
  81. type: 'co_chk_d',
  82. value: '生产领料单、生产补料单、生产退料单、完工入库单、拆件入库单存货金额是否与总账科目一致'
  83. },{
  84. action: 'co/inventory/chk_e.action',
  85. type: 'co_chk_e',
  86. value: '委外领料单、委外补料单、委外退料单、委外验收单、委外验退单存货金额是否与总账科目一致'
  87. },{
  88. action: 'co/inventory/chk_f.action',
  89. type: 'co_chk_f',
  90. value: '其他出/入库单存货金额是否与总账科目一致'
  91. },{
  92. action: 'co/inventory/chk_g.action',
  93. type: 'co_chk_g',
  94. value: '盘盈、盘亏、报废单与相应凭证存货科目是否与总账科目一致'
  95. },{
  96. action: 'co/inventory/chk_h.action',
  97. type: 'co_chk_h',
  98. value: '拨入拨出单,销售拨入拨出单存货金额是否与总账科目一致'
  99. },{
  100. action: 'co/inventory/chk_i.action',
  101. type: 'co_chk_i',
  102. value: '采购验收单、采购验退单存货金额是否与总账科目一致'
  103. },{
  104. action: 'co/inventory/chk_j.action',
  105. type: 'co_chk_j',
  106. value: '发货单、退货单存货金额是否与总账科目一致'
  107. },{
  108. action: 'co/inventory/chk_k.action',
  109. type: 'co_chk_k',
  110. value: '期末汇总表【期末结存金额】与总账对应存货科目余额是否一致'
  111. },{
  112. action: 'co/inventory/chk_l.action',
  113. type: 'co_chk_l',
  114. value: '存货月结表:期初数量是否与上月期末数量一致'
  115. },{
  116. action: 'co/inventory/chk_m.action',
  117. type: 'co_chk_m',
  118. value: '存货月结表:期初金额是否与上月期末金额一致'
  119. },{
  120. action: 'co/inventory/chk_n.action',
  121. type: 'co_chk_n',
  122. value: '存货月结表:物料期末数量是否有数量无金额的情况'
  123. },{
  124. action: 'co/inventory/chk_o.action',
  125. type: 'co_chk_o',
  126. value: '存货月结表:物料期末金额是否有金额无数量的情况'
  127. },{
  128. action: 'co/inventory/chk_p.action',
  129. type: 'co_chk_p',
  130. value: '存货月结表:物料是否负数金额、负数数量的情况'
  131. },{
  132. action: 'co/inventory/chk_q.action',
  133. type: 'co_chk_q',
  134. value: '存货核算:所有的出入库单批次单价是否核算进去'
  135. },{
  136. action: 'co/inventory/chk_r.action',
  137. type: 'co_chk_r',
  138. value: '所有的出入库单据是否做了凭证'
  139. },{
  140. action: 'co/inventory/chk_s.action',
  141. type: 'co_chk_s',
  142. value: '是否存在总账直接制作存货科目凭证或非出入库单、应付发票、主营业务成本结转制作的存货科目凭证'
  143. },{
  144. action: 'co/inventory/chk_t.action',
  145. type: 'co_chk_t',
  146. value: '是否存在非无值仓0单价、单价为负数物料'
  147. },{
  148. action: 'co/inventory/chk_u.action',
  149. type: 'co_chk_u',
  150. value: '无值仓是否存在单价'
  151. },{
  152. action: 'co/inventory/chk_v.action',
  153. type: 'co_chk_v',
  154. value: '是否存在上月出库当月入库的情况'
  155. },{
  156. action: 'co/inventory/chk_w.action',
  157. type: 'co_chk_w',
  158. value: '所有出入库单据会计期间是否和凭证一致'
  159. }]
  160. })
  161. }]
  162. });
  163. me.callParent(arguments);
  164. }
  165. });