1
chenjingwu
2024-04-10 f15e369ac8c33673222b8b6a55856eb05417af1f
force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1872,7 +1872,6 @@
                idList.push(item.pageObject.PricebookEntry.Product2Id);
            });
            addOptions({idList: idList}).then(result=>{
                console.log('result');
                this.addOptionsLogic(result);
                if(alertExp){
                    this.Alert(alertExp,'error');
@@ -1889,11 +1888,14 @@
        }
    }
    addOptionsLogic(result){
        var e = new Map(result);
        var Setmap = new Map()
        var key = Object.keys(result)
        key.forEach(item=>{
            Setmap.set(item,result[item]);
        });
        this.jzDataToBeproduct.forEach(item=>{
            console.log(e);
            if(e){
                item.Learning_CommunityOptions = e.get(item.pageObject.PricebookEntry.Product2Id);
            if(result){
                item.Learning_CommunityOptions = Setmap.get(item.pageObject.PricebookEntry.Product2Id);
            }
        });
    }