123
chenjingwu
2024-04-26 7d4c24f204423a9660a83363207c73f75f7d3e10
force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1673,6 +1673,7 @@
        }
        this.updateNoDiscountPricetotal();
        // chenjingwu 
        this.calGuranteeAllFields();
        this.updateExPricetotal()
        // chenjingwu 
        this.EstimationListPrice();
@@ -1803,17 +1804,17 @@
                });
                addOptions({idList: idList}).then(result=>{
                    this.addOptionsLogic(result);
                    if(quoteLineItem.length!=num){
                        this.quo.IsQuoteTrial__c=false;
                    }
                    this.calPriceAll();
                    if(errormessage.indexOf('成功') >= 0){
                        this.Alert(errormessage,'success');
                    }else{
                        this.Alert(errormessage,'error');
                    }
                    this.OnLoading(false);
                });
                if(quoteLineItem.length!=num){
                    this.quo.IsQuoteTrial__c=false;
                }
                this.calPriceAll();
                if(errormessage.indexOf('成功') >= 0){
                    this.Alert(errormessage,'success');
                }else{
                    this.Alert(errormessage,'error');
                }
                this.OnLoading(false);
            });
            this.cancelsetProduct();
        }
@@ -1964,6 +1965,15 @@
                    if(item.exPrice == null || item.exPrice == '' || item.exPrice == undefined){
                        item.exPrice = 0;
                    }
                }else{
                    if(item.multiYearWarrantyList.length > 0){
                        item.Learning_Community = item.multiYearWarrantyList[item.multiYearWarrantyList.length -1].AgeLimit__c;
                        item.exPrice = item.multiYearWarrantyList[item.multiYearWarrantyList.length -1].MultiOneYearWarrantyPrice__c;
                    }else{
                        item.Learning_Community = '0';
                        item.exPrice = 0;
                    }
                }
            }
        });