BenchQueryModel.js 1.2 KB

12345678910111213141516171819202122232425262728
  1. Ext.define('make.view.money.billOutAP.BenchQueryModel', {
  2. extend: 'saas.view.core.bench.QueryModel',
  3. alias: 'viewmodel.money-billoutap-benchquery',
  4. constructor:function(config){
  5. this.bindings = {};
  6. var billsource= Ext.getCmp('mainView').getViewModel().get('BillOutAPSource');
  7. var showProdBill= true,showCheckBill=true ;
  8. if('PRODIO'==billsource){
  9. showProdBill= false ;
  10. }else if('CHECK'==billsource){
  11. showCheckBill= false ;
  12. }
  13. config.stores={
  14. menus: {
  15. model: 'saas.model.core.benchMenu',
  16. data: [
  17. {desc: '货款待收票',isCount: 1,hidden:showProdBill},//出入库
  18. {desc: '外协待收票',isCount: 1,hidden:showProdBill},//出入库
  19. {desc: '货款待收票',isCount: 1,hidden:showCheckBill},//对账单
  20. {desc: '外协待收票',isCount: 1,hidden:showCheckBill},//对账单
  21. {desc: '待确认',isCount: 1},
  22. {desc: '已收票',isCount: 0}
  23. ]
  24. }
  25. } ;
  26. this.initConfig(config);
  27. }
  28. });