onCompanyChange:function(event,value){ waf('#costDep').wafPromptStandard('option','filteritem',"parent.id = '"+value.current.id+"'"); waf('#payAccount').wafPromptStandard('option','filteritem',"company.id = '"+value.current.id+"'"); waf('#costDep').wafPromptStandard("setValue",null); waf('#payAccount').wafPromptStandard("setValue",null); var contractNumber = waf("#contractNumber").wafPromptStandard("getValue"); if(contractNumber == null || contractNumber == ""){ waf('#f70').wafPromptStandard('option','filteritem',"customerCompanyInfo.companyOrgUnit.id = '"+value.current.id+"'"); waf('#f71').wafPromptStandard('option','filteritem',"supplierCompanyInfo.companyOrgUnit.id = '"+value.current.id+"'"); }else if(contractNumber.type.value == 1){//客户 waf('#f71').wafPromptStandard('option','filteritem',"supplierCompanyInfo.companyOrgUnit.id = '"+value.current.id+"'"); }else if(contractNumber.type.value == 2){//供应商 waf('#f70').wafPromptStandard('option','filteritem',"customerCompanyInfo.companyOrgUnit.id = '"+value.current.id+"'"); } }
如上所示,给费用部门,银行账号设置默认查询条件和默认值
标签:WEB,option,f7,waf,contractNumber,value,wafPromptStandard,EAS,id From: https://www.cnblogs.com/ketoli/p/17535228.html