123
chenjingwu
2024-04-16 cc914d1a68f71cf0b8fe7f1c4bfac9fc1e54e3d8
force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1803,17 +1803,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();
        }
@@ -1861,20 +1861,20 @@
                    });
                    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);
                        this.cancelQuoteExcelImport();
                        this.tobeflag=true;
                    });
                    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.cancelQuoteExcelImport();
            });
    }
    @track
@@ -1964,6 +1964,9 @@
                    if(item.exPrice == null || item.exPrice == '' || item.exPrice == undefined){
                        item.exPrice = 0;
                    }
                }else{
                    item.Learning_Community = item.multiYearWarrantyList[item.multiYearWarrantyList.length -1].AgeLimit__c;
                    item.exPrice = item.multiYearWarrantyList[item.multiYearWarrantyList.length -1].MultiOneYearWarrantyPrice__c;
                }
            }
        });