BeforeAccount.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. Ext.define('erp.view.co.inventory.BeforeAccount',{
  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: 'co/inventory/chk_x.action',
  76. detno: 1,
  77. type: 'co_chk_x',
  78. value: '成本期间 与 库存期间一致'
  79. },{
  80. action: 'co/inventory/chk_before_a.action',
  81. detno: 2,
  82. type: 'co_chk_before_a',
  83. value: '同成本期间的库存期间是否已冻结'
  84. },{
  85. action: 'co/inventory/chk_before_b.action',
  86. detno: 3,
  87. type: 'co_chk_before_b',
  88. value: '当期是否有未过账的出入库单'
  89. },{
  90. action: 'co/inventory/chk_before_c.action',
  91. detno: 4,
  92. type: 'co_chk_before_c',
  93. value: '当期是否有未审核的生产报废单'
  94. },
  95. /*{
  96. action: 'co/inventory/chk_before_d.action',
  97. type: 'co_chk_before_d',
  98. value: '是否有非无值仓原材料单价为0'
  99. },*/
  100. {
  101. action: 'co/inventory/chk_before_e.action',
  102. detno: 5,
  103. type: 'co_chk_before_e',
  104. value: '出入库单单据中文状态是否有异常的'
  105. },{
  106. action: 'co/inventory/chk_before_f.action',
  107. detno: 6,
  108. type: 'co_chk_before_f',
  109. value: '是否有工单的成品物料编号不存在'
  110. },{
  111. action: 'co/inventory/chk_before_g.action',
  112. detno: 7,
  113. type: 'co_chk_before_g',
  114. value: '是否有工单用料表的物料号不存在'
  115. },{
  116. action: 'co/inventory/chk_before_h.action',
  117. detno: 8,
  118. type: 'co_chk_before_h',
  119. value: '当月是否有出入库单料号不存在'
  120. },{
  121. action: 'co/inventory/chk_before_i.action',
  122. detno: 9,
  123. type: 'co_chk_before_i',
  124. value: '当月出入库单制作了凭证的'
  125. },{
  126. action: 'co/inventory/chk_before_j.action',
  127. detno: 10,
  128. type: 'co_chk_before_j',
  129. value: '当月有出入库凭证编号但是凭证在当月不存在'
  130. },{
  131. action: 'co/inventory/chk_before_k.action',
  132. detno: 11,
  133. type: 'co_chk_before_k',
  134. value: '当月采购验收单、采购验退单、委外验收单、委外验退单生成应付暂估/应付发票并制作了凭证的'
  135. },{
  136. action: 'co/inventory/chk_before_n.action',
  137. detno: 12,
  138. type: 'co_chk_before_n',
  139. value: '当月采购验收单、委外验收单汇率与当月月度汇率是否一致'
  140. },{
  141. action: 'co/inventory/chk_before_l.action',
  142. detno: 13,
  143. type: 'co_chk_before_l',
  144. value: '当月出货单、销售退货单生成应收发票并制作了结转主营业务成本凭证的'
  145. },{
  146. action: 'co/inventory/chk_before_m.action',
  147. detno: 14,
  148. type: 'co_chk_before_m',
  149. value: '当月发出商品制作了凭证的'
  150. }]
  151. })
  152. }]
  153. });
  154. me.callParent(arguments);
  155. }
  156. });