1
chenjingwu
2024-04-10 6b96bc4e0c1ceb0a63b87aaa648ecae9a10af155
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,10 +1888,14 @@
        }
    }
    addOptionsLogic(result){
        const options = Object.entries(result).map(([key, value]) => ({
            label: key,
            value: value
        }));
        console.log(options);
        this.jzDataToBeproduct.forEach(item=>{
            console.log(result);
            if(result){
                item.Learning_CommunityOptions = result.get(item.pageObject.PricebookEntry.Product2Id);
                item.Learning_CommunityOptions = options.get(item.pageObject.PricebookEntry.Product2Id);
            }
        });
    }