123
chenjingwu
2024-04-15 a099abe8d0ff0699296c9bcc53ca00b98d167c73
force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
@@ -1300,6 +1300,8 @@
        jzdtbt.pageObject.ServicePrice__c = 0;
        jzdtbt.warrantyType__c = '';
        var NoDiscountTotal = 0;
        var exPrice = jzdtbt.pageObject.exPrice;
        jzdtbt.pageObject.exPrice = 0;
        if (GuranteeType == '服务') {
            multiYearWarranty = true;
            jzdtbt.warrantyType__c = '服务多年保修';
@@ -1307,22 +1309,24 @@
        } else if (GuranteeType == '市场' && contractmultiYearWarranty == false) {
            multiYearWarranty = true;
            jzdtbt.pageObject.ServicePrice__c = ServicePrice;
            jzdtbt.pageObject.exPrice = exPrice;
            jzdtbt.warrantyType__c = '市场多年保修';
            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) {
            multiYearWarranty = true;
            jzdtbt.pageObject.ServicePrice__c = ServicePrice;
            jzdtbt.pageObject.exPrice = exPrice;
            jzdtbt.warrantyType__c = '市场多年保修';
            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 == '市场') {
@@ -1990,6 +1994,7 @@
        quo.OCM_Agent1_Price_Page__c = '';
    }
    quo.MultiYearWarrantyTotalPrice__c = toNumComma(quo.MultiYearWarrantyTotalPrice__c);
    quo.ExtendedWarrantyAmountTotalPrice__c = toNumComma(quo.ExtendedWarrantyAmountTotalPrice__c);
    quo.Agency1_Profit__c = toNumComma(quo.Agency1_Profit__c);
    quo.Agency2_Profit__c = toNumComma(quo.Agency2_Profit__c);
    //预测金额修改 fy