Ext.define('erp.view.co.cost.CheckCOAccount',{ 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/cost/chk_a.action', type: 'co_chk_a', value: '成本表上直接人工的金额与直接人工制造费用维护界面是否一致' },{ action: 'co/cost/chk_b.action', type: 'co_chk_b', value: '成本表上制造费用的金额与直接人工制造费用维护界面是否一致' },{ action: 'co/cost/chk_c.action', type: 'co_chk_c', value: '总账生产成本科目余额与成本表上工单类型是制造单的期末结余金额+期末报废结余金额合计是否一致' },{ action: 'co/cost/chk_d.action', type: 'co_chk_d', 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); } });