From f6cc0758077ae6392a1951ffef34d90e2ce562be Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期三, 10 四月 2024 16:36:59 +0800
Subject: [PATCH] 1
---
force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index 0fe93c9..824bd41 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1872,8 +1872,8 @@
idList.push(item.pageObject.PricebookEntry.Product2Id);
});
addOptions({idList: idList}).then(result=>{
- console.log('result' + result);
- this.addOptionsLogic(result);
+ console.log('result');
+ this.addOptionsLogic(JSON.parse(JSON.stringify(result)));
if(alertExp){
this.Alert(alertExp,'error');
}
@@ -1890,7 +1890,8 @@
}
addOptionsLogic(result){
this.jzDataToBeproduct.forEach(item=>{
- if(result.get(item.pageObject.PricebookEntry.Product2Id)){
+ console.log(result);
+ if(result){
item.Learning_CommunityOptions = result.get(item.pageObject.PricebookEntry.Product2Id);
}
});
--
Gitblit v1.9.1