Ext.define('erp.view.co.inventory.CheckIVAccount',{ extend: 'Ext.Viewport', layout: 'anchor', hideBorders: true, initComponent : function(){ var me = this; Ext.apply(me, { items: [{ xtype: 'grid', id: 'account-check', anchor: '100% 100%', tbar: [{ xtype: 'tbtext', text: '当前期间:', margin: '0 0 0 20' },{ xtype: 'tbtext', id: 'yearmonth', text: '201305', margin: '0 0 0 2' },'->'], columns: [{ text: '', dataIndex: 'check', flex: 1, renderer: function(val, meta, record) { meta.tdCls = val; return ''; } },{ text: '检测项', dataIndex: 'value', flex: 10, renderer: function(val, meta, record) { if(record.get('check') == 'error') { meta.style = 'color: gray'; } return val; } },{ text: '', dataIndex: 'link', flex: 1, renderer: function(val, meta, record) { if(record.get('check') == 'error') { meta.tdCls = 'detail'; return '详细情况'; } return ''; } }], columnLines: true, store: Ext.create('Ext.data.Store',{ fields: [{name: 'action', type: 'string'}, {name: 'type', type: 'string'}, {name: 'value', type: 'string'}], data: [{ action: 'co/inventory/chk_a.action', type: 'co_chk_a', value: '库存是否已经冻结' },{ action: 'co/inventory/chk_b.action', type: 'co_chk_b', value: '当期是否有未过账的出入库单据' },{ action: 'co/inventory/chk_c.action', type: 'co_chk_c', value: '当月出入库单据料号是否存在' },{ action: 'co/inventory/chk_d.action', type: 'co_chk_d', value: '生产领料单、生产补料单、生产退料单、完工入库单、拆件入库单存货金额是否与总账科目一致' },{ action: 'co/inventory/chk_e.action', type: 'co_chk_e', value: '委外领料单、委外补料单、委外退料单、委外验收单、委外验退单存货金额是否与总账科目一致' },{ action: 'co/inventory/chk_f.action', type: 'co_chk_f', value: '其他出/入库单存货金额是否与总账科目一致' },{ action: 'co/inventory/chk_g.action', type: 'co_chk_g', value: '盘盈、盘亏、报废单与相应凭证存货科目是否与总账科目一致' },{ action: 'co/inventory/chk_h.action', type: 'co_chk_h', value: '拨入拨出单,销售拨入拨出单存货金额是否与总账科目一致' },{ action: 'co/inventory/chk_i.action', type: 'co_chk_i', value: '采购验收单、采购验退单存货金额是否与总账科目一致' },{ action: 'co/inventory/chk_j.action', type: 'co_chk_j', value: '发货单、退货单存货金额是否与总账科目一致' },{ action: 'co/inventory/chk_k.action', type: 'co_chk_k', value: '期末汇总表【期末结存金额】与总账对应存货科目余额是否一致' },{ action: 'co/inventory/chk_l.action', type: 'co_chk_l', value: '存货月结表:期初数量是否与上月期末数量一致' },{ action: 'co/inventory/chk_m.action', type: 'co_chk_m', value: '存货月结表:期初金额是否与上月期末金额一致' },{ action: 'co/inventory/chk_n.action', type: 'co_chk_n', value: '存货月结表:物料期末数量是否有数量无金额的情况' },{ action: 'co/inventory/chk_o.action', type: 'co_chk_o', value: '存货月结表:物料期末金额是否有金额无数量的情况' },{ action: 'co/inventory/chk_p.action', type: 'co_chk_p', value: '存货月结表:物料是否负数金额、负数数量的情况' },{ action: 'co/inventory/chk_q.action', type: 'co_chk_q', value: '存货核算:所有的出入库单批次单价是否核算进去' },{ action: 'co/inventory/chk_r.action', type: 'co_chk_r', value: '所有的出入库单据是否做了凭证' },{ action: 'co/inventory/chk_s.action', type: 'co_chk_s', value: '是否存在总账直接制作存货科目凭证或非出入库单、应付发票、主营业务成本结转制作的存货科目凭证' },{ action: 'co/inventory/chk_t.action', type: 'co_chk_t', value: '是否存在非无值仓0单价、单价为负数物料' },{ action: 'co/inventory/chk_u.action', type: 'co_chk_u', value: '无值仓是否存在单价' },{ action: 'co/inventory/chk_v.action', type: 'co_chk_v', value: '是否存在上月出库当月入库的情况' },{ action: 'co/inventory/chk_w.action', type: 'co_chk_w', value: '所有出入库单据会计期间是否和凭证一致' }] }), bbar: [{ xtype: 'checkbox', boxLabel: '知道错误了,我要继续结账', id : 'allow', hidden : true, margin: '0 5 0 20' },'->',{ cls: 'x-btn-blue', id: 'check', text: '结账检查', width: 80, margin: '0 0 0 50' },{ cls: 'x-btn-blue', id: 'accoutover', text: '结 账', width: 80, disabled : true, margin: '0 0 0 5' },{ cls: 'x-btn-blue', id: 'resaccoutover', text: '反结账', width: 80, margin: '0 0 0 5' },{ cls: 'x-btn-blue', id: 'close', text: $I18N.common.button.erpCloseButton, width: 80, margin: '0 175 0 5' }] }] }); me.callParent(arguments); } });