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/lexTenderingLostButton/lexTenderingLostButton.js |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js b/force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js
index e2869e5..dcfd4d2 100644
--- a/force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js
+++ b/force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js
@@ -1,3 +1,10 @@
+/*
+ * @Author: zhangchunxu
+ * @Date: 2023-06-27 16:51:18
+ * @LastEditors: zhangchunxu
+ * @LastEditTime: 2023-08-04 13:17:42
+ * 
+ */
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
@@ -37,7 +44,6 @@
                 this.TwoS1_Sales_Hospital = result.TwoS1_Sales_Hospital;
                 this.TwoS4_Sales_Manager = result.TwoS4_Sales_Manager;
                 this.LoseButton();
-                this.dispatchEvent(new CloseActionScreenEvent());
         })        
     }
 
@@ -63,11 +69,16 @@
                     }).then(res=>{
                         if(res) {
                             window.open(`/apex/TenderLostPage?id=${this.recordId}`,'','height=500,width=800,top=200,left=250,location=no');
+                            this.dispatchEvent(new CloseActionScreenEvent());
                         }else{
                             this.dispatchEvent(new CloseActionScreenEvent());
                             return;
                         }                 
                     });
+            }
+            if(this.status == "04.寰呭叧鑱旇浠�"){
+                window.open(`/apex/TenderLostPage?id=${this.recordId}`,'','height=500,width=800,top=200,left=250,location=no');
+                this.dispatchEvent(new CloseActionScreenEvent());
             }
         })
     }
@@ -77,5 +88,6 @@
             variant: type
         });
         this.dispatchEvent(event);
+        this.dispatchEvent(new CloseActionScreenEvent());
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1