123
chenjingwu
2024-04-12 f1bb6af7ec8ea81ba1b40eef0dabeeef3eee4bbb
force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
@@ -1311,7 +1311,7 @@
            warrantyType = '市场多年保修';
            var Quantity =jzdtbt.Quantity__c;
            MultiYearWarrantyTotalPrice__c = MultiYearWarrantyTotalPrice__c + localParseFloat(ServicePrice) * localParseFloat(Quantity);
            ExtendedWarrantyAmountTotalPrice__c = ExtendedWarrantyAmountTotalPrice__c + localParseFloat(jzdtbt.exPrice) * localParseFloat(Quantity);
            // ExtendedWarrantyAmountTotalPrice__c = ExtendedWarrantyAmountTotalPrice__c + localParseFloat(jzdtbt.exPrice) * localParseFloat(Quantity);
            NoDiscountTotal = localParseFloat(ServicePrice) * localParseFloat(Quantity);
        }
        else if (GuranteeType == '市场' && contractmultiYearWarranty && CanNotCancelledGurantee) {
@@ -1322,7 +1322,7 @@
            // 数量
            var Quantity = jzdtbt.Quantity__c;
            MultiYearWarrantyTotalPrice__c = MultiYearWarrantyTotalPrice__c + localParseFloat(ServicePrice) * localParseFloat(Quantity);
            ExtendedWarrantyAmountTotalPrice__c = ExtendedWarrantyAmountTotalPrice__c + localParseFloat(jzdtbt.exPrice) * localParseFloat(Quantity);
            // ExtendedWarrantyAmountTotalPrice__c = ExtendedWarrantyAmountTotalPrice__c + localParseFloat(jzdtbt.exPrice) * localParseFloat(Quantity);
            NoDiscountTotal = localParseFloat(ServicePrice) * localParseFloat(Quantity);
        }
        else if (GuranteeType == '市场') {
@@ -1631,11 +1631,11 @@
        }
    });
    thirdPartyEstimation_List_Price = localParseFloat(thirdPartyEstimation_List_Price);
    quo.Quote_Adjust_Amount_Page__c = toNumComma(x - noDiscountPriceTotal - z - y);
    quo.Quote_Adjust_Amount_Page__c = toNumComma(x - noDiscountPriceTotal - y);
    if (y - thirdPartyEstimation_List_Price == 0) {
        quo.Quote_Adjust_Calculate__c = toNumComma(0);
    } else {
        quo.Quote_Adjust_Calculate__c = toNumComma((x - noDiscountPriceTotal - z - y) / (y - thirdPartyEstimation_List_Price) * 100);
        quo.Quote_Adjust_Calculate__c = toNumComma((x - noDiscountPriceTotal - y) / (y - thirdPartyEstimation_List_Price) * 100);
    }
    quoExp = quo;
    return jzDataToBeproduct;
@@ -2353,13 +2353,15 @@
            mp = localParseFloat(mp);
            var num = quo.Quote_Adjust_Calculate__c;
            num = localParseFloat(num);
            var ex = quo.ExtendedWarrantyAmountTotalPrice__c;
            ex.localParseFloat(ex);
            quo.Quote_Adjust_Calculate__c = toNumComma(num);
            num = (100 + num) / 100;
            z=localParseFloat(z);
            var rh = oppInfo.rate_hospital;
            var ra = oppInfo.rate_agency1;
            quo.Dealer_Final_Price_Page__c = toNumComma(z*rh);
            quo.OCM_Agent1_Price_Page__c = Saleslet ? toNumComma(z*num*ra+mp) : '';
            quo.OCM_Agent1_Price_Page__c = Saleslet ? toNumComma(z*num*ra+mp+ex) : '';
        }
    // }
    quoExp = quo;
@@ -2675,7 +2677,9 @@
export function  Agent1comput(quo,Saleslet,oppInfo){
    var z = quo.Estimation_List_Price__c;
    var mp =quo.MultiYearWarrantyTotalPrice__c;
    var ex = quo.ExtendedWarrantyAmountTotalPrice__c;
    mp = localParseFloat(mp);
    ex = localParseFloat(ex);
    var num = quo.Quote_Adjust_Calculate__c;
    num = localParseFloat(num);
    quo.Quote_Adjust_Calculate__c = toNumComma(num);
@@ -2684,6 +2688,6 @@
    var rh = oppInfo.rate_hospital;
    var ra = oppInfo.rate_agency1;
    quo.Dealer_Final_Price_Page__c = toNumComma(z*rh);
    quo.OCM_Agent1_Price_Page__c = Saleslet ? toNumComma(z*num*ra+mp):'';
    quo.OCM_Agent1_Price_Page__c = Saleslet ? toNumComma(z*num*ra+mp+ex):'';
    return quo;
}