From f15e369ac8c33673222b8b6a55856eb05417af1f Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期三, 10 四月 2024 17:05:59 +0800
Subject: [PATCH] 1

---
 force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index 654966a..7339dc2 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,10 +1888,14 @@
         }
     }
     addOptionsLogic(result){
+        var Setmap = new Map()
+        var key = Object.keys(result)
+        key.forEach(item=>{
+            Setmap.set(item,result[item]);
+        });
         this.jzDataToBeproduct.forEach(item=>{
-            console.log(result);
             if(result){
-                item.Learning_CommunityOptions = result.get(item.pageObject.PricebookEntry.Product2Id);
+                item.Learning_CommunityOptions = Setmap.get(item.pageObject.PricebookEntry.Product2Id);
             }
         });
     }

--
Gitblit v1.9.1