From bf09666c476c39a4148549472661b3a7a201cc97 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期四, 11 四月 2024 17:51:08 +0800
Subject: [PATCH] 123
---
force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js | 32 +++++++++++++++++++++++++++++++-
1 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index 68e96d0..f7fe219 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1832,6 +1832,8 @@
quoteLineItem = InitializeProductAssignment(quoteLineItem);
this.jzDataToBeproduct = quoteLineItem;
// cjw
+ console.log('xxx');
+ console.log(this.jzDataToBeproduct);
var idList = [];
this.jzDataToBeproduct.forEach(item=>{
idList.push(item.pageObject.Id__c);
@@ -1908,16 +1910,44 @@
}
// cjw
addOptionsLogic(result){
+ this.tobeflag=false;
var Setmap = new Map()
var key = Object.keys(result)
key.forEach(item=>{
Setmap.set(item,result[item]);
});
+ var optionMap = new Map();
+ var map1 = Setmap.get('optionMap');
+ var key1 = Object.keys(map1)
+ key1.forEach(item=>{
+ optionMap.set(item,map1[item]);
+ });
+ var priceMap = new Map();
+ var map2 = Setmap.get('priceMap');
+ var key2 = Object.keys(map2)
+ key2.forEach(item=>{
+ priceMap.set(item,map2[item]);
+ });
+ console.log('loh');
+ console.log(this.jzDataToBeproduct);
this.jzDataToBeproduct.forEach(item=>{
if(result){
- item.Learning_CommunityOptions = Setmap.get(item.pageObject.Id__c);
+ 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;
+ }
+ }
}
});
+ this.tobeflag=true;
+ console.log(this.jzDataToBeproduct);
}
// cjw
//鏂板鎶ヤ环浜у搧妯℃�佹鍙栨秷鎸夐挳
--
Gitblit v1.9.1