From 993c5170391cfd6719f89c9b83bc17ab5e787035 Mon Sep 17 00:00:00 2001
From: zz <1842059105@qq.com>
Date: 星期五, 07 四月 2023 16:37:37 +0800
Subject: [PATCH] 招标项目 失单 新建医院 查看附件提交

---
 force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js b/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
index e4901c7..0e82f06 100644
--- a/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
+++ b/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
@@ -13,7 +13,7 @@
 	qisStatus;
 	OSHstaff;
 	OSHstaffEmail;
-
+    err;
     @wire(CurrentPageReference)
      getStateParameters(currentPageReference) {
              console.log(111);
@@ -37,9 +37,9 @@
         }).then(result => {
             this.IsLoading = false;
             this.qisReportId = result.Id;
-            this.qisStatus = result.QIStatus;
-            this.OSHstaff = result.OSHstaff;
-            this.OSHstaffEmail = result.OSHstaffEmail;
+            this.qisStatus = result.qIStatus;
+            this.OSHstaff = result.oSHstaff;
+            this.OSHstaffEmail = result.oSHstaffEmail;
             console.log('this.qisStatus='+this.qisStatus);
             console.log('this.OSHstaff='+this.OSHstaff);
             console.log('this.OSHstaffEmail='+this.OSHstaffEmail);
@@ -86,8 +86,14 @@
         		}).then(result =>{
         			console.log('result'+result);
         			if (result!='鎴愬姛') {
-        				alert(result); 
-        			}
+                        this.err = result;
+                        const evt = new ShowToastEvent({
+                            title : '鏇存柊澶辫触',
+                            message: this.err,
+                            variant: 'error'
+                        });
+                        this.dispatchEvent(evt);
+                    }
                 this.dispatchEvent(new CloseActionScreenEvent());
                 this.updateRecordView(this.recordId);
         		}).catch(error => {

--
Gitblit v1.9.1