From 01ce9b5788c4369c150e57577cc4ea03b4fc5ee1 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期五, 19 四月 2024 17:28:49 +0800
Subject: [PATCH] 123
---
force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js | 54 ++++++++++++++++++++++++++++++++----------------------
1 files changed, 32 insertions(+), 22 deletions(-)
diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index 3cfeff0..5d3b5f8 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;
@@ -1802,17 +1803,17 @@
});
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);
});
- 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.cancelsetProduct();
}
@@ -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
@@ -1963,6 +1964,15 @@
if(item.exPrice == null || item.exPrice == '' || item.exPrice == undefined){
item.exPrice = 0;
}
+ }else{
+ if(item.multiYearWarrantyList.length > 0){
+ item.Learning_Community = item.multiYearWarrantyList[item.multiYearWarrantyList.length -1].AgeLimit__c;
+ item.exPrice = item.multiYearWarrantyList[item.multiYearWarrantyList.length -1].MultiOneYearWarrantyPrice__c;
+ }else{
+ item.Learning_Community = '0';
+ item.exPrice = 0;
+ }
+
}
}
});
--
Gitblit v1.9.1