CheckAccount.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. Ext.define('erp.view.scm.reserve.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: 'detno',
  45. flex: 0.7,
  46. renderer: function(val, meta, record) {
  47. return val;
  48. }
  49. },{
  50. text: '检测项',
  51. dataIndex: 'value',
  52. flex: 10,
  53. renderer: function(val, meta, record) {
  54. if(record.get('check') == 'error') {
  55. meta.style = 'color: gray';
  56. }
  57. return val;
  58. }
  59. },{
  60. text: '',
  61. dataIndex: 'link',
  62. flex: 1,
  63. renderer: function(val, meta, record) {
  64. if(record.get('check') == 'error') {
  65. meta.tdCls = 'detail';
  66. return '详细情况';
  67. }
  68. return '';
  69. }
  70. }],
  71. columnLines: true,
  72. store: Ext.create('Ext.data.Store',{
  73. fields: [{name: 'action', type: 'string'}, {name: 'detno', type : 'number'}, {name: 'type', type: 'string'}, {name: 'value', type: 'string'}],
  74. data: [{
  75. action: 'scm/reserve/chk_a.action',
  76. detno: 1,
  77. type: 'scm_chk_a',
  78. value: '是否有未制作凭证的单据'
  79. },{
  80. action: 'scm/reserve/chk_b.action',
  81. detno: 2,
  82. type: 'scm_chk_b',
  83. value: '是否有出入库单凭证号异常的单据'
  84. },{
  85. action: 'scm/reserve/chk_c.action',
  86. detno: 3,
  87. type: 'scm_chk_c',
  88. value: '拨出拨入是否平衡'
  89. },{
  90. action: 'scm/reserve/chk_d.action',
  91. detno: 4,
  92. type: 'scm_chk_d',
  93. value: '销售拨出拨入是否平衡'
  94. },{
  95. action: 'scm/reserve/chk_e.action',
  96. detno: 5,
  97. type: 'scm_chk_e',
  98. value: '应付发票中成本单价跟出入库成本单价是否一致'
  99. },{
  100. action: 'scm/reserve/chk_f.action',
  101. detno: 6,
  102. type: 'scm_chk_f',
  103. value: '暂估单成本单价跟出入库单成本单价是否一致'
  104. },{
  105. action: 'scm/reserve/chk_g.action',
  106. detno: 7,
  107. type: 'scm_chk_g',
  108. value: '验收单据数量与当月开票+暂估是否一致'
  109. },{
  110. action: 'scm/reserve/chk_h.action',
  111. detno: 8,
  112. type: 'scm_chk_h',
  113. value: '应收发票成本单价跟出入库单成本单价是否一致'
  114. },{
  115. action: 'scm/reserve/chk_i.action',
  116. detno: 9,
  117. type: 'scm_chk_i',
  118. value: '发出商品成本价跟出入库单成本单价是否一致'
  119. },{
  120. action: 'scm/reserve/chk_j.action',
  121. detno: 10,
  122. type: 'scm_chk_j',
  123. value: '出货单据数量与当月开票+发出商品是否一致'
  124. }
  125. ,{
  126. action: 'scm/reserve/chk_k.action',
  127. detno: 11,
  128. type: 'scm_chk_k',
  129. value: '其它出入库单据的单据类型+小类+部门是否设置了对方科目'
  130. },{
  131. action: 'scm/reserve/chk_l.action',
  132. detno: 12,
  133. type: 'scm_chk_l',
  134. value: '其它出入库基础科目设置是否有重复的'
  135. },{
  136. action: 'scm/reserve/chk_m.action',
  137. detno: 13,
  138. type: 'scm_chk_m',
  139. value: '是否有出入库单据出、入数量都不为0'
  140. },{
  141. action: 'scm/reserve/chk_n.action',
  142. detno: 14,
  143. type: 'scm_chk_n',
  144. value: '是否有料号不存在'
  145. },{
  146. action: 'scm/reserve/chk_o.action',
  147. detno: 15,
  148. type: 'scm_chk_o',
  149. value: '是否有物料的存货科目没有设置'
  150. },{
  151. action: 'scm/reserve/chk_p.action',
  152. detno: 16,
  153. type: 'scm_chk_p',
  154. value: '当期是否有未过账的出入库单据'
  155. },{
  156. action: 'scm/reserve/chk_q.action',
  157. detno: 17,
  158. type: 'scm_chk_q',
  159. value: '当期是否有无值仓有成本单价单据'
  160. },{
  161. action: 'scm/reserve/chk_r.action',
  162. detno: 18,
  163. type: 'scm_chk_r',
  164. value: '库存月结表金额与存货科目金额是否一致'
  165. },{
  166. action: 'scm/reserve/chk_t.action',
  167. detno: 19,
  168. type: 'scm_chk_t',
  169. value: '存货模块金额与总账模块金额是否一致'
  170. },{
  171. action: 'scm/reserve/chk_u.action',
  172. detno: 20,
  173. type: 'scm_chk_u',
  174. value: '应付暂估与存货科目金额是否一致'
  175. },{
  176. action: 'scm/reserve/chk_v.action',
  177. detno: 21,
  178. type: 'scm_chk_v',
  179. value: '应付发票(当月验收验退当月开票)与存货科目金额是否一致'
  180. },{
  181. action: 'scm/reserve/chk_w.action',
  182. detno: 22,
  183. type: 'scm_chk_w',
  184. value: '应收发出商品与存货科目金额是否一致'
  185. },{
  186. action: 'scm/reserve/chk_x.action',
  187. detno: 23,
  188. type: 'scm_chk_x',
  189. value: '应收发票(当月出货退货当月开票)与存货科目金额是否一致'
  190. }]
  191. })
  192. }]
  193. });
  194. me.callParent(arguments);
  195. }
  196. });