From a099abe8d0ff0699296c9bcc53ca00b98d167c73 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期一, 15 四月 2024 10:42:09 +0800
Subject: [PATCH] 123

---
 force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js |   25 +++++++++++--------------
 1 files changed, 11 insertions(+), 14 deletions(-)

diff --git a/force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js b/force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js
index 002e02a..a65405b 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 : '宸茬粡鎻愪氦瀹℃壒',
@@ -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