BenchQueryModel.js 853 B

123456789101112131415161718192021222324
  1. Ext.define('make.view.osmake.reconciliation.BenchQueryModel', {
  2. extend: 'saas.view.core.bench.QueryModel',
  3. alias: 'viewmodel.osmake-reconciliation-benchquery',
  4. constructor:function(config){
  5. this.bindings = {};
  6. var billsource= Ext.getCmp('mainView').getViewModel().get('BillOutAPSource');
  7. var showBill= true ;
  8. if('CHECK'==billsource){
  9. showBill= false ;
  10. }
  11. config.stores={
  12. menus: {
  13. model: 'saas.model.core.benchMenu',
  14. data: [
  15. {desc: '外协对账',isCount: 0},
  16. {desc: '待审核',isCount: 1},
  17. {desc: '已审核',isCount: 0},
  18. {desc: '待开票',isCount: 1,hidden:showBill}
  19. ]
  20. }
  21. } ;
  22. this.initConfig(config);
  23. }
  24. });