From 8749760be3e1ba64edd4ada506bdf628e5bee852 Mon Sep 17 00:00:00 2001
From: unknown <sunxia@prec-tech.com>
Date: 星期三, 23 八月 2023 14:54:38 +0800
Subject: [PATCH] 再修理返品分析-修理 按钮
---
force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js | 27 ++++++++++++---------------
1 files changed, 12 insertions(+), 15 deletions(-)
diff --git a/force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js b/force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js
index 002e02a..24708a5 100644
--- a/force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js
+++ b/force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js
@@ -21,6 +21,7 @@
QISReplyDay;
RCproblemnotfound;
type;
+ err;
@wire(CurrentPageReference)
getStateParameters(currentPageReference) {
console.log(111);
@@ -43,19 +44,14 @@
}).then(result => {
this.IsLoading = false;
this.qisReportId = result.Id;
- this.qisStatus = result.QIStatus;
- this.OSHstaff = result.OSHstaff;
- this.OSHstaffEmail = result.OSHstaffEmail;
- this.CancelQISReason = result.CancelQISReason;
- this.Rcid = result.RCid;
- this.RCinspectionDate = result.RCinspectionDate;
- this.QISReplyDay = result.QISReplyDay;
- this.RCproblemnotfound = result.RCproblemnotfound;
- console.log('this.qisStatus='+this.qisStatus);
- console.log('this.CancelQISReason='+this.CancelQISReason);
- console.log('this.Rcid='+this.Rcid);
- console.log('this.RCproblemnotfound='+this.RCproblemnotfound);
- console.log('this.RCinspectionDate='+this.RCinspectionDate);
+ this.qisStatus = result.qIStatus;
+ this.OSHstaff = result.oSHstaff;
+ this.OSHstaffEmail = result.oSHstaffEmail;
+ this.CancelQISReason = result.cancelQISReason;
+ this.Rcid = result.rCid;
+ this.RCinspectionDate = result.rCinspectionDate;
+ this.QISReplyDay = result.qISReplyDay;
+ this.RCproblemnotfound = result.rCproblemnotfound;
if (this.qisStatus!='RC妫�娴嬩腑') {
const evt = new ShowToastEvent({
title : '宸茬粡鎻愪氦瀹℃壒',
@@ -97,7 +93,7 @@
this.dispatchEvent(new CloseActionScreenEvent());
return;
}
- if (this.QISReplyDay!=null && this.RCproblemnotfound == 'true') {
+ if (this.QISReplyDay!=null && this.RCproblemnotfound) {
const evt = new ShowToastEvent({
title : '鏈�缁堝垽瀹氭椂锛岃鍙栨秷[鏁呴殰鏈彂鐜扮暀涓嬬户缁瀵焆骞堕�夋嫨[瀵瑰簲鏂规硶]',
message: '',
@@ -142,10 +138,11 @@
oldQIStatus: this.qisStatus
}).then(result =>{
console.log('result'+result);
+ this.err = result;
if (result!='鎴愬姛') {
const evt = new ShowToastEvent({
title : '鏇存柊澶辫触',
- message: result,
+ message: this.err,
variant: 'error'
});
this.dispatchEvent(evt);
--
Gitblit v1.9.1