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 |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index 808cac5..824bd41 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1873,7 +1873,7 @@
             });
             addOptions({idList: idList}).then(result=>{
                 console.log('result');
-                this.addOptionsLogic(result);
+                this.addOptionsLogic(JSON.parse(JSON.stringify(result)));
                 if(alertExp){
                     this.Alert(alertExp,'error');
                 }
@@ -1889,11 +1889,9 @@
         }
     }
     addOptionsLogic(result){
-        console.log(result);
         this.jzDataToBeproduct.forEach(item=>{
-            var e = result.get(item.pageObject.PricebookEntry.Product2Id);
-            console.log(e);
-            if(e){
+            console.log(result);
+            if(result){
                 item.Learning_CommunityOptions = result.get(item.pageObject.PricebookEntry.Product2Id);
             }
         });

--
Gitblit v1.9.1