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

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