From fdef1f682351a5311fe96c5f0f1770a9623b985f Mon Sep 17 00:00:00 2001
From: zhangzhengmei <zhangzhengmei@prec-tech.com>
Date: 星期一, 17 四月 2023 16:42:16 +0800
Subject: [PATCH] 调拨申请->受理批量更新,取消,提交待审批 按钮修改

---
 force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js b/force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js
index 37f9f44..e577335 100644
--- a/force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js
+++ b/force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js
@@ -6,6 +6,7 @@
     @api recordId;//褰撳墠杩欐潯鏁版嵁鐨刬d
     id;//杩斿洖鍊肩殑id  Tender_information__c鎷涙爣椤圭洰鐨刬d
     name;//鎷涙爣椤圭洰鍚�
+    Environment_Url;//鏂板缓鍖婚櫌鍦板潃
     IsLoading = true;
 
     @wire(CurrentPageReference)
@@ -26,6 +27,7 @@
                 this.IsLoading = false;
                 this.id = result.Id;
                 this.name = result.name;
+                this.Environment_Url = result.Environment_Url;
                 this.HospitalButton();
                 this.dispatchEvent(new CloseActionScreenEvent());
         }).catch(() => {
@@ -34,9 +36,9 @@
         });        
     }
 
-    //鏂板缓鍖婚櫌
+    //鎷涙爣椤圭洰鏂板缓鍖婚櫌
     HospitalButton(){
-        var url = 'https://ocsm.my.salesforce.com/?ec=302&startURL=%2F'+'001/e?CF00N10000009I0o7='+encodeURIComponent(this.name)
+        var url = this.Environment_Url+'001/e?CF00N10000009I0o7='+encodeURIComponent(this.name)
         +'&CF00N10000009I0o7_lkid='+encodeURIComponent(this.id)
         +'&00N10000009HFQT='+encodeURIComponent('鎷涙爣椤圭洰')
         +'&RecordType=01210000000QemG'

--
Gitblit v1.9.1