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

---
 force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index 3cfeff0..6d1df50 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1457,6 +1457,7 @@
         var noDiscountPriceTotal = this.hidden_MultiYearWarrantyTotalPrice;
         var exPriceTotal = this.quo.ExtendedWarrantyAmountTotalPrice__c;
         noDiscountPriceTotal=localParseFloat(noDiscountPriceTotal);
+        exPriceTotal = localParseFloat(exPriceTotal);
         this.quo.QuoteTotal_Page__c=toNumComma(y + x + noDiscountPriceTotal + exPriceTotal);
         var z=this.quo.Estimation_List_Price__c;
         var id=this.quoId;
@@ -1860,20 +1861,20 @@
                     });
                     addOptions({idList: idList}).then(result=>{
                         this.addOptionsLogic(result);
+                        if(quoteLineItem.length!=num){
+                            this.quo.IsQuoteTrial__c = false;
+                        }
+                        this.calPriceAll();
+                        if(errormessage.indexOf('鎴愬姛') >= 0){
+                            this.Alert(errormessage,'success');
+                        }else{
+                            this.Alert(errormessage,'error');
+                        }
+                        
+                        this.OnLoading(false);
+                        this.cancelQuoteExcelImport();
                         this.tobeflag=true;
                     });
-                    if(quoteLineItem.length!=num){
-                        this.quo.IsQuoteTrial__c = false;
-                    }
-                    this.calPriceAll();
-                    if(errormessage.indexOf('鎴愬姛') >= 0){
-                        this.Alert(errormessage,'success');
-                    }else{
-                        this.Alert(errormessage,'error');
-                    }
-                    
-                    this.OnLoading(false);
-                    this.cancelQuoteExcelImport();
             });
     }
     @track

--
Gitblit v1.9.1