From b212b555733a783af88e3c6610b7d9a0256502b5 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期四, 11 四月 2024 16:24:08 +0800
Subject: [PATCH] 123
---
force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js | 23 ++++++++++++++++++++---
1 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index e998730..1bfcf15 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1774,8 +1774,12 @@
quoteLineItem=InitializeProductAssignment(quoteLineItem);
this.jzDataToBeproduct=quoteLineItem;
// cjw
+ var idList = [];
+ console.log('123');
+ console.log(reslut);
+ console.log(this.jzDataToBeproduct);
this.jzDataToBeproduct.forEach(item=>{
- idList.push(item.pageObject.PricebookEntry.Product2Id);
+ idList.push(item.pageObject.Id__c);
});
addOptions({idList: idList}).then(result=>{
this.addOptionsLogic(result);
@@ -1827,6 +1831,16 @@
var quoteLineItem = JSON.parse(tempArr[1]);
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);
+ });
+ addOptions({idList: idList}).then(result=>{
+ this.addOptionsLogic(result);
+ });
if(quoteLineItem.length!=num){
this.quo.IsQuoteTrial__c = false;
}
@@ -1876,7 +1890,7 @@
var idList = [];
// cjw
this.jzDataToBeproduct.forEach(item=>{
- idList.push(item.pageObject.PricebookEntry.Product2Id);
+ idList.push(item.pageObject.Id__c);
});
addOptions({idList: idList}).then(result=>{
this.addOptionsLogic(result);
@@ -1901,9 +1915,12 @@
key.forEach(item=>{
Setmap.set(item,result[item]);
});
+ var optionMap = Setmap.get('optionMap');
+ var priceMap = Setmap.get('priceMap');
this.jzDataToBeproduct.forEach(item=>{
if(result){
- item.Learning_CommunityOptions = Setmap.get(item.pageObject.PricebookEntry.Product2Id);
+ item.Learning_CommunityOptions = optionMap.get(item.pageObject.Id__c);
+ item.multiYearWarrantyList = priceMap.get(item.pageObject.Id__c);
}
});
}
--
Gitblit v1.9.1