From f1bb6af7ec8ea81ba1b40eef0dabeeef3eee4bbb Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期五, 12 四月 2024 11:48:56 +0800
Subject: [PATCH] 123

---
 force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js b/force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js
index 1220eb0..5df0406 100644
--- a/force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js
+++ b/force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js
@@ -28,12 +28,17 @@
                 this.id = result.Id;
                 this.AntiLogicButton();
                 this.dispatchEvent(new CloseActionScreenEvent());
-        })   
+        }).catch(() => {
+
+        }).finally(() => {
+            
+        });        
     }
 
-    //鎷涙爣椤圭洰鍙嶉�昏緫鍒犻櫎
+    //鍙嶉�昏緫鍒犻櫎
     AntiLogicButton(){
         ContraryLogicalDel({DTenId : this.id}).then(result =>{
+            console.log(result,'鎴愬姛涓庡惁');
             if(result == 'OK'){
                 this.showToast("鍙嶉�昏緫鍒犻櫎鎴愬姛","success");
             }
@@ -47,6 +52,14 @@
             variant: type
         });
         this.dispatchEvent(event);
-        this.dispatchEvent(new CloseActionScreenEvent());
     }
 }
+
+
+// /var ContraryL = function(){
+//     var DTenId = "{!Tender_information__c.Id}";//鍒犻櫎鐨勬嫑鎶曟爣
+//     var rtn = sforce.apex.execute("TenderWebService", "ContraryLogicalDel", {DTenId : DTenId } );
+//     //閲嶆柊鍔犺浇椤甸潰
+//     window.location.reload();
+//     }
+//     ContraryL();
\ No newline at end of file

--
Gitblit v1.9.1