Ext.define('make.view.make.bom.BenchQueryPanel', { extend: 'saas.view.core.bench.Query', xtype: 'make-bom-benchpanel', viewModel: { extend: 'saas.view.core.bench.QueryModel', stores: { menus: { model: 'saas.model.core.benchMenu', data: [ {desc: '待审核',isCount: 1}, {desc: '已审核',isCount: 0} ] } } }, caller:'Bom', selfFields:'bom.creatorId', items: [ { itemId: 'All', xtype: 'make-bom-querypanel', baseVastUrl: '/api/make/bom/' //defaultCondition:"" }, { //待审核 itemId: 'make-bom-benchpanel-1', xtype: 'make-bom-querypanel-1', defaultCondition: "bo_statuscode='UNAUDITED'", _needCount: true, baseVastUrl: '/api/make/bom/' }, { //已审核 itemId: 'make-bom-benchpanel-2', xtype: 'make-bom-querypanel-2', defaultCondition: "bo_statuscode='AUDITED'", _needCount: true, baseVastUrl: '/api/make/bom/' } ], countUrl:'make/bom/count', addBtnText:'新增BOM', addOtherBtnText:'BOM差异比对', hiddenMe:true, onOtherBehavior:function(){ saas.util.BaseUtil.openTab('make-bom-bomcompare', 'BOM差异比对','maintab--make-bom-bomcompare'); } });