From 87b65352e004a7e773bd2a2c18ab7dec122de29c Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期四, 11 四月 2024 18:01:50 +0800
Subject: [PATCH] 1234
---
force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index 0cccfe2..f6d9e09 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1830,6 +1830,7 @@
var errormessage = tempArr[0];
var quoteLineItem = JSON.parse(tempArr[1]);
quoteLineItem = InitializeProductAssignment(quoteLineItem);
+ this.tobeflag=true;
this.jzDataToBeproduct = quoteLineItem;
// cjw
console.log('xxx');
@@ -1841,6 +1842,7 @@
addOptions({idList: idList}).then(result=>{
this.addOptionsLogic(result);
});
+ this.tobeflag=false;
if(quoteLineItem.length!=num){
this.quo.IsQuoteTrial__c = false;
}
@@ -1927,12 +1929,25 @@
key2.forEach(item=>{
priceMap.set(item,map2[item]);
});
+ console.log('loh');
+ console.log(this.jzDataToBeproduct);
this.jzDataToBeproduct.forEach(item=>{
if(result){
item.Learning_CommunityOptions = optionMap.get(item.pageObject.Id__c);
item.multiYearWarrantyList = priceMap.get(item.pageObject.Id__c);
+ if(item.Learning_Community){
+ item.multiYearWarrantyList.forEach(it=>{
+ if('' + (it.AgeLimit__c) == item.Learning_Community){
+ item.exPrice = it.MultiOneYearWarrantyPrice__c;
+ }
+ });
+ if(item.exPrice == null || item.exPrice == '' || item.exPrice == undefined){
+ item.exPrice = 0;
+ }
+ }
}
});
+ console.log(this.jzDataToBeproduct);
}
// cjw
//鏂板鎶ヤ环浜у搧妯℃�佹鍙栨秷鎸夐挳
--
Gitblit v1.9.1