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/lexCreateAssessmentReport/lexCreateAssessmentReport.js |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/lwc/lexCreateAssessmentReport/lexCreateAssessmentReport.js b/force-app/main/default/lwc/lexCreateAssessmentReport/lexCreateAssessmentReport.js
index fbf624c..762c054 100644
--- a/force-app/main/default/lwc/lexCreateAssessmentReport/lexCreateAssessmentReport.js
+++ b/force-app/main/default/lwc/lexCreateAssessmentReport/lexCreateAssessmentReport.js
@@ -17,6 +17,7 @@
     IsLoading = true;
     Id;
     Status;
+    msg;
 
     @wire(CurrentPageReference)
     getStateParameters(currentPageReference) {
@@ -35,7 +36,6 @@
         }).then(result => {
             console.log(result);
             if (result != null) {
-                this.IsLoading = false;
                 this.Id = result.Id;
                 this.Status = result.Status;
 
@@ -53,7 +53,12 @@
         if (status == '鍏紑涓�') {
             window.open("/apex/AssessmentReport?camid=" + this.Id, "_top");
         } else {
-            alert("鍙湁鎵瑰噯鍚庢墠鑳藉垱寤烘姤鍛�!");
+            this.msg = '鍙湁鎵瑰噯鍚庢墠鑳藉垱寤烘姤鍛�!';
+            this.IsLoading = false;
         }
     }
+
+    closeAction() {
+        window.history.go(-1);
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.1