From 396c5c48682370f5060728817bcdcaf91657f1d4 Mon Sep 17 00:00:00 2001
From: zz <1842059105@qq.com>
Date: 星期三, 10 五月 2023 19:20:14 +0800
Subject: [PATCH] 招标项目 失单 修改ID使用HardCode的写法

---
 force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js b/force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js
index f51a816..ea9d78e 100644
--- a/force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js
+++ b/force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js
@@ -8,6 +8,9 @@
     @api recordId;//褰撳墠杩欐潯鏁版嵁鐨刬d
     status;//鐘舵��
     profileId;//profileId id
+    systemProfileId;
+    SalesManagerId;
+    SalesHospitalId;
     IsLoading = true;
 
     @wire(CurrentPageReference)
@@ -26,19 +29,23 @@
         init({
             recordId: this.recordId
         }).then(result => {
+                console.log();
                 this.IsLoading = false;
                 this.status = result.status;
-                this.profileId = result.profileId.slice(0,15);
+                this.profileId = result.profileId;
+                this.systemProfileId = result.systemProfileId;
+                this.SalesManagerId = result.SalesManagerId;
+                this.SalesHospitalId = result.SalesHospitalId;
                 this.LoseButton();
                 this.dispatchEvent(new CloseActionScreenEvent());
         })        
     }
 
-    //鎷涙爣椤圭洰澶卞崟
+    //鎷涙爣椤圭洰 澶卞崟
     LoseButton(){
         sqlResult({id: this.recordId}).then(result=>{
             //绠�妗f潈闄� 2S1_閿�鍞尰闄㈡媴褰� 2S4_閿�鍞鐞嗚�� 绯荤粺绠$悊鍛�
-            if (this.profileId != '00e10000000xnp2' && this.profileId != '00e10000000xnpH' && this.profileId != '00e10000000Y3o5') {
+            if (this.profileId != this.SalesManagerId  && this.profileId != this.SalesHospitalId && this.profileId != this.systemProfileId) {
                 this.showToast("鎮ㄦ病鏈夋潈闄愶紝鏃犳硶鍒涘缓璇环鎻愪氦澶卞崟銆�","error");
                 return;
             }

--
Gitblit v1.9.1