From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523
---
force-app/main/default/lwc/lexNewOpportunityAgency/lexNewOpportunityAgency.js | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/force-app/main/default/lwc/lexNewOpportunityAgency/lexNewOpportunityAgency.js b/force-app/main/default/lwc/lexNewOpportunityAgency/lexNewOpportunityAgency.js
index 7871e35..c5dbd36 100644
--- a/force-app/main/default/lwc/lexNewOpportunityAgency/lexNewOpportunityAgency.js
+++ b/force-app/main/default/lwc/lexNewOpportunityAgency/lexNewOpportunityAgency.js
@@ -60,13 +60,13 @@
if(this.closeForecastedDate == undefined){
this.closeForecastedDate = '';
}else{
- this.closeForecastedDate = new String(this.closeForecastedDate).replace("-","/");
+ this.closeForecastedDate = new String(this.closeForecastedDate).replaceAll("-","/");
}
console.log(this.closeForecastedDate);
if(this.bidPlannedDate == undefined){
this.bidPlannedDate = '';
}else{
- this.bidPlannedDate = new String(this.bidPlannedDate).replace("-","/");
+ this.bidPlannedDate = new String(this.bidPlannedDate).replaceAll("-","/");
}
if(this.dealerFinalPrice == undefined){
this.dealerFinalPrice = '';
@@ -86,14 +86,17 @@
if (this.agency1Id == undefined) {
newflag = false;
this.showToast("缁忛攢鍟嗕笉瀛樺湪锛屼笉鑳借浆鎴愩�愮粡閿�鍟嗙洰鏍囪浠枫�戙��","error");
+ this.dispatchEvent(new CloseActionScreenEvent());
}
else if (this.agencyOpportunity != undefined) {
newflag = false;
this.showToast("宸茬粡杞垚杩囥�愮粡閿�鍟嗙洰鏍囪浠枫�戙��","error");
+ this.dispatchEvent(new CloseActionScreenEvent());
}
else if (this.trade != '鍐呰部') {
newflag = false;
this.showToast("涓嶆槸鍐呰锤锛屼笉鑳借浆鎴愩�愮粡閿�鍟嗙洰鏍囪浠枫�戙��","error");
+ this.dispatchEvent(new CloseActionScreenEvent());
}
else {
var records = null;
@@ -103,9 +106,11 @@
hospitalId: this.hospitalId
}).then(result=>{
records = result;
+ console.log(records.length);
if (records == null || records.length == 0) {
newflag = false;
this.showToast("娌℃湁鏈夋晥鐨勩�愮粡閿�鍟嗗尰闄€�戙��","error");
+ this.dispatchEvent(new CloseActionScreenEvent());
}
if (newflag) {
console.log("5");
@@ -118,6 +123,7 @@
var recTypeList = result;
if (recTypeList.length == 0) {
this.showToast("娌℃湁鎵惧埌锛岀粡閿�鍟嗚浠风殑瀹氫箟銆�","error");
+ this.dispatchEvent(new CloseActionScreenEvent());
} else {
console.log("7");
queryForRecords2({
@@ -198,6 +204,7 @@
+ encodeURIComponent(this.opportunityCategory);
console.log(url);
window.open(url);
+ this.dispatchEvent(new CloseActionScreenEvent());
} catch (error) {
console.log(error)
}
@@ -206,10 +213,8 @@
})
}
});
- console.log("4");
}
this.IsLoading = false;
- this.dispatchEvent(new CloseActionScreenEvent());
}
showToast(msg,type) {
const event = new ShowToastEvent({
--
Gitblit v1.9.1