Ext.define('make.view.osmake.reconciliation.BenchQueryModel', { extend: 'saas.view.core.bench.QueryModel', alias: 'viewmodel.osmake-reconciliation-benchquery', constructor:function(config){ this.bindings = {}; var billsource= Ext.getCmp('mainView').getViewModel().get('BillOutAPSource'); var showBill= true ; if('CHECK'==billsource){ showBill= false ; } config.stores={ menus: { model: 'saas.model.core.benchMenu', data: [ {desc: '外协对账',isCount: 0}, {desc: '待审核',isCount: 1}, {desc: '已审核',isCount: 0}, {desc: '待开票',isCount: 1,hidden:showBill} ] } } ; this.initConfig(config); } });