1
chenjingwu
2024-04-10 9168a7e089c1bae5714902ba7c61109168e6972b
force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1774,6 +1774,13 @@
                var quoteLineItem=JSON.parse(tempArr[1]);
                quoteLineItem=InitializeProductAssignment(quoteLineItem);
                this.jzDataToBeproduct=quoteLineItem;
                // cjw
                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;
                }
@@ -1868,6 +1875,7 @@
            var Listvalue = this.jzDataToBeproduct;
            this.jzDataToBeproduct = additionaljzProductLogic(selectvlue,Listvalue,this.oppInfo.CurrencyIsoCode,this.quo.IsQuoteTrial__c);
            var idList = [];
            // cjw
            this.jzDataToBeproduct.forEach(item=>{
                idList.push(item.pageObject.PricebookEntry.Product2Id);
            });
@@ -1884,9 +1892,10 @@
                this.cancelProduct();
                this.SelectedNewProduct = [];
            });
            // cjw
        }
    }
    // cjw
    addOptionsLogic(result){
        var Setmap = new Map()
        var key = Object.keys(result)
@@ -1899,6 +1908,7 @@
            }
        });
    }
    // cjw
    //新增报价产品模态框取消按钮
    cancelProduct() {
        this.showproductfalg = false;