zhangzhengmei
2023-05-18 1ce13a35baf4d4a8cd047aacfb27afaae3278073
force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js
@@ -9,8 +9,8 @@
    status;//状态
    profileId;//profileId id
    systemProfileId;
    SalesManagerId;
    SalesHospitalId;
    TwoS1_Sales_Hospital;
    TwoS4_Sales_Manager;
    IsLoading = true;
    @wire(CurrentPageReference)
@@ -33,8 +33,8 @@
                this.status = result.status;
                this.profileId = result.profileId;
                this.systemProfileId = result.systemProfileId;
                this.SalesManagerId = result.SalesManagerId;
                this.SalesHospitalId = result.SalesHospitalId;
                this.TwoS1_Sales_Hospital = result.TwoS1_Sales_Hospital;
                this.TwoS4_Sales_Manager = result.TwoS4_Sales_Manager;
                this.LoseButton();
                this.dispatchEvent(new CloseActionScreenEvent());
        })        
@@ -44,7 +44,7 @@
    LoseButton(){
        sqlResult({id: this.recordId}).then(result=>{
            //简档权限 2S1_销售医院担当 2S4_销售管理者 系统管理员
            if (this.profileId != this.SalesManagerId  && this.profileId != this.SalesHospitalId && this.profileId != this.systemProfileId) {
            if (this.profileId != this.TwoS1_Sales_Hospital  && this.profileId != this.TwoS4_Sales_Manager && this.profileId != this.systemProfileId) {
                this.showToast("您没有权限,无法创建询价提交失单。","error");
                return;
            }