123
chenjingwu
2024-04-19 5c79ed09628411b95f443ece77e63277e9752172
force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
@@ -1362,12 +1362,18 @@
        var GuranteePrice = 0;
        // 计提年限
        var provistonPeriod = 0;
        var exGuranteePrice = 0;
        jzdtbt.multiYearWarrantyList.forEach(mu=>{
            if(jzdtbt.Learning_Community == mu.AgeLimit__c + ''){
                exGuranteePrice = mu.AmountWithheld__c;
            }
        });
        // 根据产品信息设置保修年限 和计提金额
        if (GuranteeType == '服务') {
            jzdtbt.pageObject.GuaranteePeriod__c = ProductEntend_gurantee_period | 0;
            jzdtbt.GuaranteePeriod__c = ProductEntend_gurantee_period | 0;
            GuranteePrice = ProductGuranteePrice__c;
            jzdtbt.GuranteePrice = GuranteePrice;
            jzdtbt.GuranteePrice = GuranteePrice + exGuranteePrice;
            provistonPeriod = ProductEntend_gurantee_period;
        } else if (GuranteeType == '市场') {
            if (contractmultiYearWarranty == false) {
@@ -1380,7 +1386,7 @@
                }
                provistonPeriod = ProductEntend_gurantee_period;
                GuranteePrice = ProductGuranteePrice__c;
                jzdtbt.GuranteePrice = GuranteePrice;
                jzdtbt.GuranteePrice = GuranteePrice + exGuranteePrice;
            }else if (contractmultiYearWarranty && CanNotCancelledGurantee) {
                if (localParseFloat(ProductEntend_gurantee_period) >= localParseFloat(AllGurantee_Period)) {
                    jzdtbt.pageObject.GuaranteePeriod__c = ProductEntend_gurantee_period | 0;
@@ -1391,17 +1397,17 @@
                }
                provistonPeriod = ProductEntend_gurantee_period;
                GuranteePrice = ProductGuranteePrice__c;
                jzdtbt.GuranteePrice = GuranteePrice;
                jzdtbt.GuranteePrice = GuranteePrice + exGuranteePrice;
            }
            else {
                jzdtbt.pageObject.GuaranteePeriod__c =  1;
                jzdtbt.GuaranteePeriod__c = 1;
                jzdtbt.GuranteePrice = GuranteePrice;
                jzdtbt.GuranteePrice = GuranteePrice + exGuranteePrice;
            }
        } else {
            jzdtbt.pageObject.GuaranteePeriod__c = AllGurantee_Period;
            jzdtbt.GuaranteePeriod__c = AllGurantee_Period;
            jzdtbt.GuranteePrice = GuranteePrice;
            jzdtbt.GuranteePrice = GuranteePrice + exGuranteePrice;
        }
        jzdtbt.pageObject.provistonPeriod__c = provistonPeriod | 0;