From 19f3491cd91e0c863eb13f0c6c69aca5634ed1d9 Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 16:59:03 +0800
Subject: [PATCH] backup2023

---
 force-app/main/default/lwc/lexCustomDelete/lexCustomDelete.js |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/force-app/main/default/lwc/lexCustomDelete/lexCustomDelete.js b/force-app/main/default/lwc/lexCustomDelete/lexCustomDelete.js
index 5b7c074..5123b26 100644
--- a/force-app/main/default/lwc/lexCustomDelete/lexCustomDelete.js
+++ b/force-app/main/default/lwc/lexCustomDelete/lexCustomDelete.js
@@ -49,7 +49,9 @@
             }
         }).catch(error => {
             console.log(error);
-        })
+        }).finally(() => {
+
+        });
     }
 
     // 鍒犻櫎
@@ -59,14 +61,9 @@
         }).then(repList => {
             if (repList != null && repList.length > 0) {
                 var rp = repList[0];
-                if (rp.Status__c != "鑽夋涓�" &&
-                    rp.Status__c != "1.鍙楃悊瀹屾瘯(SAP寰呭彂閫�)" &&
-                    rp.Status__c != "4.淇悊鍝佽繑閫侀樁娈�"
-                ) {
+                if (rp.Status__c != "鑽夋涓�" && rp.Status__c != "1.鍙楃悊瀹屾瘯(SAP寰呭彂閫�)" && rp.Status__c != "4.淇悊鍝佽繑閫侀樁娈�") {
                     this.ShowToastEvent("涓嶆槸鑽夋涓紝涓嶈兘鍒犻櫎", "error")
-                } else if (rp.Status__c == "4.淇悊鍝佽繑閫侀樁娈�" &&
-                    (rp.SAP_Transfer_time__c != undefined || rp.Repair_Ordered_Date__c != undefined)
-                ) {
+                } else if (rp.Status__c == "4.淇悊鍝佽繑閫侀樁娈�" && (rp.SAP_Transfer_time__c != undefined || rp.Repair_Ordered_Date__c != undefined)) {
                     this.ShowToastEvent("宸茬粡鍙戦�佽繃SAP锛屼笉鑳藉垹闄�", "error")
                 } else if (this.userID.substring(0, 15) != rp.CreatedById.substring(0, 15) && this.userID.substring(0, 15) != rp.Acc_OwnerId__c.substring(0, 15) && this.userID.substring(0, 15) != rp.FSE_ownerid__c.substring(0, 15)) {
                     this.ShowToastEvent("涓嶆槸鎵�鏈変汉銆佸垱寤轰汉鎴朏SE涓昏礋璐d汉锛屼笉鑳藉垹闄�", "error")

--
Gitblit v1.9.1