From dfff58b7cd897b824a129edba6b5cdae20bb1e5c Mon Sep 17 00:00:00 2001
From: unknown <sunxia@prec-tech.com>
Date: 星期三, 23 八月 2023 17:40:58 +0800
Subject: [PATCH] 发起再注册分析并同步SAP

---
 force-app/main/default/lwc/lexTenderingNoStandardButton/lexTenderingNoStandardButton.js |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/force-app/main/default/lwc/lexTenderingNoStandardButton/lexTenderingNoStandardButton.js b/force-app/main/default/lwc/lexTenderingNoStandardButton/lexTenderingNoStandardButton.js
index b071b10..2282417 100644
--- a/force-app/main/default/lwc/lexTenderingNoStandardButton/lexTenderingNoStandardButton.js
+++ b/force-app/main/default/lwc/lexTenderingNoStandardButton/lexTenderingNoStandardButton.js
@@ -19,6 +19,8 @@
            }
          }
      }
+    
+    //鎷涙爣椤圭洰涓嶅簲鏍囩敵璇�
     connectedCallback(){
         init({
             recordId: this.recordId
@@ -26,18 +28,15 @@
                 this.IsLoading = false;
                 this.id = result.Id;
                 this.opportunityNum = result.opportunityNum;
-                this.NoStandardButton();
+                if(this.opportunityNum > 0) {
+                    this.showToast('椤圭洰宸插叧鑱旇繃璇环锛岃鍒拌浠烽噷鍋氫笉搴旀爣鐢宠','error');
+                    return;
+                }
+                window.open ('/apex/Bidding?id='+this.id, '', 'height=350, width=600, top=200, left=350,location=no');
                 this.dispatchEvent(new CloseActionScreenEvent());
-        })        
+        })      
     }
-    //鎷涙爣椤圭洰涓嶅簲鏍囩敵璇�
-    NoStandardButton(){
-        if(Number(this.opportunityNum) > 0) {
-            this.showToast('椤圭洰宸插叧鑱旇繃璇环锛岃鍒拌浠烽噷鍋氫笉搴旀爣鐢宠','error');
-            return;
-        }
-        window.open ('/apex/Bidding?id='+this.id, '', 'height=350, width=600, top=200, left=350,location=no');
-    }
+
     showToast(msg,type) {
         const event = new ShowToastEvent({
             message: msg,
@@ -46,4 +45,4 @@
         this.dispatchEvent(event);
         this.dispatchEvent(new CloseActionScreenEvent());
     }
-}
+}
\ No newline at end of file

--
Gitblit v1.9.1