From 626f3c3bb25e204568019e8d568e2d7547d1037a Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期三, 09 八月 2023 10:54:08 +0800
Subject: [PATCH] 20230809修改伟意按钮同步
---
force-app/main/default/lwc/lexDiscountRequest/lexDiscountRequest.js | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/force-app/main/default/lwc/lexDiscountRequest/lexDiscountRequest.js b/force-app/main/default/lwc/lexDiscountRequest/lexDiscountRequest.js
index f446a53..1ee2859 100644
--- a/force-app/main/default/lwc/lexDiscountRequest/lexDiscountRequest.js
+++ b/force-app/main/default/lwc/lexDiscountRequest/lexDiscountRequest.js
@@ -17,7 +17,7 @@
ShowToastEvent
} from 'lightning/platformShowToastEvent';
-export default class LexDiscountRequest extends LightningElement {
+export default class lexDiscountRequest extends LightningElement {
@api recordId;
str;
IsLoading = true;
@@ -46,7 +46,6 @@
this.RepairC = result.RepairC;
this.DiscountRequest();
- this.dispatchEvent(new CloseActionScreenEvent());
}
}).catch(error => {
console.log(error);
@@ -63,10 +62,12 @@
console.log(rp);
if (rp.Return_Without_Repair_IF__c == true) {
this.ShowToastEvent("鏈慨鐞嗗綊杩樼殑淇悊涓嶅厑璁稿噺浠风敵璇�", "error");
+ this.dispatchEvent(new CloseActionScreenEvent());
return;
} else {
if (rp.Return_Without_Repair__c == true) {
this.ShowToastEvent("宸茬粡鐢宠鏈慨鐞嗚繑鍥烇紝濡傛灉闇�瑕佺户缁慨鐞嗚鍙栨秷\"鏈慨鐞嗗綊杩樼敵璇穃"鐨勫嬀閫夊悗鍐嶈繘琛屽噺浠风敵璇锋搷浣�", "error");
+ this.dispatchEvent(new CloseActionScreenEvent());
return;
}
}
@@ -77,9 +78,13 @@
console.log(result);
if (result.length > 0) {
var split = result.split(", ");
- alert(split[1]);
+ this.ShowToastEvent(split[1], "error");
+ this.dispatchEvent(new CloseActionScreenEvent());
return;
- }
+ }else{
+ this.ShowToastEvent("鏇存柊鎴愬姛锛�", "success");
+ this.dispatchEvent(new CloseActionScreenEvent());
+ }
})
updateRepairQuotation04({
recordId: this.Id
@@ -87,9 +92,13 @@
console.log(result);
if (result.length > 0) {
var split = result.split(", ");
- alert(split[1]);
+ this.ShowToastEvent(split[1], "error");
+ this.dispatchEvent(new CloseActionScreenEvent());
return;
- }
+ }else{
+ this.ShowToastEvent("鏇存柊鎴愬姛锛�", "success");
+ this.dispatchEvent(new CloseActionScreenEvent());
+ }
})
})
}
--
Gitblit v1.9.1