From f3a8b609580d160f2d15b0c2fab28784a38cba71 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@prec-tech.com>
Date: 星期二, 04 七月 2023 17:44:48 +0800
Subject: [PATCH] 备品附属品选择 附属品追加

---
 force-app/main/default/lwc/lexSCSubmit/lexSCSubmit.js |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/force-app/main/default/lwc/lexSCSubmit/lexSCSubmit.js b/force-app/main/default/lwc/lexSCSubmit/lexSCSubmit.js
index 2ff072b..2f0f4de 100644
--- a/force-app/main/default/lwc/lexSCSubmit/lexSCSubmit.js
+++ b/force-app/main/default/lwc/lexSCSubmit/lexSCSubmit.js
@@ -48,16 +48,13 @@
             }
         }).catch(error => {
             console.log(error);
-        }).finally(() => {
-
-        });
+        })
     }
 
     // 鎻愪氦寰呭鎵�
     SCSubmit() {
         if (this.StatusC != '鑽夋涓�') {
             this.ShowToastEvent("宸茬粡鎻愪氦瀹℃壒", "error")
-            // alert('宸茬粡鎻愪氦瀹℃壒');
             return;
         }
 
@@ -66,15 +63,16 @@
         }
 
         updateQISSCReport({
-            Id: this.Id
+            QId: this.Id
         }).then(result => {
+            console.log(result);
             if (result.length > 0) {
                 var split = result.split(", ");
                 alert(split[1]);
+            } else {
+                this.ShowToastEvent("宸叉彁浜�", "success")
+                window.location.reload();
             }
-            this.ShowToastEvent("宸叉彁浜�", "success")
-            // alert('宸叉彁浜�!')
-            window.location.reload();
         })
     }
 

--
Gitblit v1.9.1