From 048f7b0855d05293e80c9bf5dbf0620f064f13f4 Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期四, 11 五月 2023 10:51:19 +0800
Subject: [PATCH] Merge branch 'LEX_dev' of http://47.92.229.245:8089/r/lightningupdate into LEX_dev

---
 force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js |   30 +++---------------------------
 1 files changed, 3 insertions(+), 27 deletions(-)

diff --git a/force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js b/force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js
index 6999b54..46b2353 100644
--- a/force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js
+++ b/force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js
@@ -24,46 +24,22 @@
         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(() => {
-            
-        });        
+        })       
     }
 
-    //鏂板缓鍖婚櫌
+    //鎷涙爣椤圭洰鏂板缓鍖婚櫌
     HospitalButton(){
         var url = this.Environment_Url+'001/e?CF00N10000009I0o7='+encodeURIComponent(this.name)
         +'&CF00N10000009I0o7_lkid='+encodeURIComponent(this.id)
         +'&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();
\ No newline at end of file
+}
\ No newline at end of file

--
Gitblit v1.9.1