123
chenjingwu
2024-04-12 f1bb6af7ec8ea81ba1b40eef0dabeeef3eee4bbb
force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -580,7 +580,7 @@
        this.jzDataToBeproduct =[].concat(this.jzDataToBeproduct);
        this.hidden_MultiYearWarrantyTotalPrice = MultiYearWarrantyTotalPriceExport;
        this.quo.MultiYearWarrantyTotalPrice__c = toNumComma(MultiYearWarrantyTotalPriceExport);
        this.quo.ExtendedWarrantyAmountTotalPrice__c = toNumComma(ExtendedWarrantyAmountTotalPriceExport);
        // this.quo.ExtendedWarrantyAmountTotalPrice__c = toNumComma(ExtendedWarrantyAmountTotalPriceExport);
    }
    EstimationListPrice() {
        this.jzDataToBeproduct = EstimationL(this.jzDataToBeproduct,this.quo);
@@ -1457,6 +1457,7 @@
        var noDiscountPriceTotal = this.hidden_MultiYearWarrantyTotalPrice;
        var exPriceTotal = this.quo.ExtendedWarrantyAmountTotalPrice__c;
        noDiscountPriceTotal=localParseFloat(noDiscountPriceTotal);
        exPriceTotal = localParseFloat(exPriceTotal);
        this.quo.QuoteTotal_Page__c=toNumComma(y + x + noDiscountPriceTotal + exPriceTotal);
        var z=this.quo.Estimation_List_Price__c;
        var id=this.quoId;
@@ -1802,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();
        }
@@ -1860,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