From 5665e19d2670eca359c200d0aacf7d4b90f13c39 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期四, 11 四月 2024 10:50:29 +0800
Subject: [PATCH] 1

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

diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index e998730..f17d5fc 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1774,6 +1774,10 @@
                 quoteLineItem=InitializeProductAssignment(quoteLineItem);
                 this.jzDataToBeproduct=quoteLineItem;
                 // cjw
+                var idList = [];
+                console.log('123');
+                console.log(reslut);
+                console.log(this.jzDataToBeproduct);
                 this.jzDataToBeproduct.forEach(item=>{
                     idList.push(item.pageObject.PricebookEntry.Product2Id);
                 });
@@ -1827,6 +1831,14 @@
                     var quoteLineItem = JSON.parse(tempArr[1]);
                     quoteLineItem = InitializeProductAssignment(quoteLineItem);
                     this.jzDataToBeproduct = quoteLineItem;
+                    // cjw
+                    var idList = [];
+                    this.jzDataToBeproduct.forEach(item=>{
+                        idList.push(item.pageObject.PricebookEntry.Product2Id);
+                    });
+                    addOptions({idList: idList}).then(result=>{
+                        this.addOptionsLogic(result);
+                    });
                     if(quoteLineItem.length!=num){
                         this.quo.IsQuoteTrial__c = false;
                     }

--
Gitblit v1.9.1