EAS_WEB给f7通用查询设置过滤条件

        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+"'");
            }
        }

如上所示,给费用部门,银行账号设置默认查询条件和默认值

posted @ 2023-07-07 15:53  凉了记忆  阅读(15)  评论(0编辑  收藏  举报