liangxiaozhen
2023-08-11 af908216bb0012fe849e3b49b3039c7ba238f8f0
force-app/main/default/lwc/lexHosipitalToDept/lexHosipitalToDept.js
@@ -26,21 +26,21 @@
    connectedCallback(){
        init({recordId:this.recordId}).then(res => {
            console.log(res,'<========res')
            if(res.GiMain == ''){
            if(res.giMain == ''){
                this.showToast('请填写GI主担当','error');
            }else if(res.BFowner == ''){
            }else if(res.bfowner == ''){
                this.showToast('请填写BF主担当','error');
            }else if(res.ETowner == ''){
            }else if(res.etowner == ''){
                this.showToast('请填写ET主担当','error');
            }else if(res.SPMain == ''){
            }else if(res.spmain == ''){
                this.showToast('请填写GS主担当','error');
            }else if(res.UROownerID == ''){
            }else if(res.uroownerID == ''){
                this.showToast('请填写URO主担当','error');
            }else if(res.GYNowner == ''){
            }else if(res.gynowner == ''){
                this.showToast('请填写GYN主担当','error');
            }else if(res.ENTownerID == ''){
            }else if(res.entownerID == ''){
                this.showToast('请填写ENT主担当','error');
            }else if (confirm(res.SoakupHPDeptTeam)) {
            }else if (confirm(res.soakupHPDeptTeam)) {
                updataAccount({recordId:this.recordId,HosipitalToDept:true}).catch(err => {
                    this.showToast(err.body.message,'error');
                })