From 8d006ac357a60d77f086c37f2ae7338530a607f2 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期四, 11 四月 2024 15:30:55 +0800
Subject: [PATCH] 123

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

diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index f17d5fc..a6a1014 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1779,7 +1779,7 @@
                 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);
@@ -1832,9 +1832,11 @@
                     quoteLineItem = InitializeProductAssignment(quoteLineItem);
                     this.jzDataToBeproduct = quoteLineItem;
                     // cjw
+                    console.log('xxx');
+                    console.log(this.jzDataToBeproduct);
                     var idList = [];
                     this.jzDataToBeproduct.forEach(item=>{
-                        idList.push(item.pageObject.PricebookEntry.Product2Id);
+                        idList.push(item.pageObject.Id__c);
                     });
                     addOptions({idList: idList}).then(result=>{
                         this.addOptionsLogic(result);
@@ -1888,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);
@@ -1915,7 +1917,7 @@
         });
         this.jzDataToBeproduct.forEach(item=>{
             if(result){
-                item.Learning_CommunityOptions = Setmap.get(item.pageObject.PricebookEntry.Product2Id);
+                item.Learning_CommunityOptions = Setmap.get(item.pageObject.Id__c);
             }
         });
     }

--
Gitblit v1.9.1