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

---
 force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js |   11 +++++++++++
 1 files changed, 11 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..51a5853 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1774,6 +1774,9 @@
                 quoteLineItem=InitializeProductAssignment(quoteLineItem);
                 this.jzDataToBeproduct=quoteLineItem;
                 // cjw
+                var idList = [];
+                console.log('123');
+                console.log(this.jzDataToBeproduct);
                 this.jzDataToBeproduct.forEach(item=>{
                     idList.push(item.pageObject.PricebookEntry.Product2Id);
                 });
@@ -1827,6 +1830,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