From f9d0e4f847dc2dcbdf6e1c427ea9d9fab697c987 Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期五, 07 四月 2023 08:55:37 +0800
Subject: [PATCH] 修改按钮4.7

---
 force-app/main/default/lwc/lexSIStoOPD/lexSIStoOPD.js |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/force-app/main/default/lwc/lexSIStoOPD/lexSIStoOPD.js b/force-app/main/default/lwc/lexSIStoOPD/lexSIStoOPD.js
index b612e13..94f34b3 100644
--- a/force-app/main/default/lwc/lexSIStoOPD/lexSIStoOPD.js
+++ b/force-app/main/default/lwc/lexSIStoOPD/lexSIStoOPD.js
@@ -12,8 +12,6 @@
     ownerId;
     status;
     userId;
-    recordTypeId = '01210000000Qekj';
-    errorMsg;
     @wire(CurrentPageReference)
     getStateParameters(currentPageReference) {
             console.log(111);
@@ -38,7 +36,6 @@
         }).then(result => {
             console.log(result);
             if (result != null) {
-                this.IsLoading = false;
                 this.ownerId = result.ownerId;
                 this.status = result.status;
                 this.userId = result.userId;
@@ -48,10 +45,6 @@
             console.log("error");
             console.log(error);
         }).finally(() => {
-            console.log(this.errorMsg);
-            if(this.errorMsg){
-                this.showToast(this.errorMsg,"error");
-            }  
         });
 
     }
@@ -73,15 +66,17 @@
     SIStoOPD () {
         if(this.ownerId == this.userId && this.status == "鑽夋涓�") {
             updateForSIStoOPDButton({
-                recordId: this.recordId,
-                recordTypeId: this.recordTypeId
+                recordId: this.recordId
             }).then(result=>{
+                console.log(result);
                 if(result){
                     this.showToast(result,"error");
                 }else{
+                    this.showToast("鎴愬姛","success");
                     this.updateRecordView(this.recordId);
                 } 
                 this.dispatchEvent(new CloseActionScreenEvent());
+                this.IsLoading = false;
             });              
     }
     

--
Gitblit v1.9.1