From dfff58b7cd897b824a129edba6b5cdae20bb1e5c Mon Sep 17 00:00:00 2001
From: unknown <sunxia@prec-tech.com>
Date: 星期三, 23 八月 2023 17:40:58 +0800
Subject: [PATCH] 发起再注册分析并同步SAP
---
force-app/main/default/lwc/lexTenderingEnquiryButton/lexTenderingEnquiryButton.js | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/force-app/main/default/lwc/lexTenderingEnquiryButton/lexTenderingEnquiryButton.js b/force-app/main/default/lwc/lexTenderingEnquiryButton/lexTenderingEnquiryButton.js
index 24650e9..a16d066 100644
--- a/force-app/main/default/lwc/lexTenderingEnquiryButton/lexTenderingEnquiryButton.js
+++ b/force-app/main/default/lwc/lexTenderingEnquiryButton/lexTenderingEnquiryButton.js
@@ -25,19 +25,18 @@
init({
recordId: this.recordId
}).then(result => {
- if (result != null) {
- this.IsLoading = false;
- this.id = result.Id;
- this.isRelateProject = result.isRelateProject;
- this.EnquiryButton();
- this.dispatchEvent(new CloseActionScreenEvent());
- }
+ console.log(result);
+ this.IsLoading = false;
+ this.id = result.Id;
+ this.isRelateProject = result.isRelateProject;
+ this.EnquiryButton();
})
}
//鎷涙爣椤圭洰 鍙嶅簲璇环鐘舵��
EnquiryButton(){
if(this.isRelateProject == "鍚�"){
this.showToast('鎷涙姇鏍囬」鐩笉鐩稿叧鍚庝笉鑳藉弽搴旇浠风姸鎬�!','error');
+ this.dispatchEvent(new CloseActionScreenEvent());
return;
}
var listss = [];
@@ -45,18 +44,20 @@
updateOpportunityInformation({TenderIdList : listss}).then(result=>{
if(result != 'OK'){
this.showToast(result,'error');
+ this.dispatchEvent(new CloseActionScreenEvent());
}else {
this.showToast('鍙嶆槧瀹屼簡','success');
+ this.dispatchEvent(new CloseActionScreenEvent());
}
})
}
showToast(msg,type) {
+ console.log(msg,type);
const event = new ShowToastEvent({
message: msg,
variant: type
});
this.dispatchEvent(event);
- this.dispatchEvent(new CloseActionScreenEvent());
}
}
\ No newline at end of file
--
Gitblit v1.9.1