buli
2023-05-23 07390e2fcb4adf27c928335bf27ae7939c5a80ad
force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js
@@ -24,18 +24,13 @@
        init({
            recordId: this.recordId
        }).then(result => {
            console.log(result)
                this.IsLoading = false;
                this.id = result.Id;
                this.name = result.name;
                this.Environment_Url = result.Environment_Url
                this.HospitalButton();
                this.dispatchEvent(new CloseActionScreenEvent());
        }).catch(error => {
            console.log("error"+error);
        }).finally(() => {
        });
        })
    }
    //新建医院
@@ -45,25 +40,6 @@
        +'&00N10000009HFQT='+encodeURIComponent('招标项目')
        +'&RecordType=01210000000QemG'
        +'&retURL='+ encodeURIComponent(this.id);
        console.log('url',url)
        window.location.href = url;
    }
}
// var foo = function() {
//     var TenderId = '{!Tender_information__c.Id}';
//     var Tendername = '{!Tender_information__c.Name}';
//     var HospitalSource= '招标项目';
//     var url = '{!$Label.Environment_Url}'+'001/e?CF00N10000009I0o7='+encodeURIComponent(Tendername)
//     +'&CF00N10000009I0o7_lkid='+encodeURIComponent(TenderId)
//     +'&00N10000009HFQT='+encodeURIComponent(HospitalSource)
//     +'&RecordType=01210000000QemG'
//     +'&retURL='+ encodeURIComponent(TenderId);
//     window.top.location.href = url;
//     }
//     foo();
}