From 6b96bc4e0c1ceb0a63b87aaa648ecae9a10af155 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期三, 10 四月 2024 16:50:08 +0800
Subject: [PATCH] 1
---
force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index 808cac5..c8d1bef 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1872,7 +1872,6 @@
idList.push(item.pageObject.PricebookEntry.Product2Id);
});
addOptions({idList: idList}).then(result=>{
- console.log('result');
this.addOptionsLogic(result);
if(alertExp){
this.Alert(alertExp,'error');
@@ -1889,12 +1888,14 @@
}
}
addOptionsLogic(result){
- console.log(result);
+ const options = Object.entries(result).map(([key, value]) => ({
+ label: key,
+ value: value
+ }));
+ console.log(options);
this.jzDataToBeproduct.forEach(item=>{
- var e = result.get(item.pageObject.PricebookEntry.Product2Id);
- console.log(e);
- if(e){
- item.Learning_CommunityOptions = result.get(item.pageObject.PricebookEntry.Product2Id);
+ if(result){
+ item.Learning_CommunityOptions = options.get(item.pageObject.PricebookEntry.Product2Id);
}
});
}
--
Gitblit v1.9.1