1
chenjingwu
2024-04-11 5665e19d2670eca359c200d0aacf7d4b90f13c39
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;
                    }