| | |
| | | export var DataStatus; |
| | | export var newQuoteFlagex; |
| | | export var MultiYearWarrantyTotalPriceExport; |
| | | export var ExtendedWarrantyAmountTotalPriceExport; |
| | | export var newQuoteFlagExp; |
| | | export var productStatusUpdatedExp; |
| | | export var quoExp; |
| | |
| | | contractmultiYearWarranty = quo.multiYearWarranty__c; |
| | | } |
| | | var MultiYearWarrantyTotalPrice__c = 0.00; |
| | | var ExtendedWarrantyAmountTotalPrice__c = 0.00; |
| | | jzDataToBeproduct.forEach(jzdtbt=>{ |
| | | var GuranteeType =jzdtbt.pageObject.GuranteeType__c; |
| | | // 保修类型 |
| | |
| | | warrantyType = '市场多年保修'; |
| | | var Quantity =jzdtbt.Quantity__c; |
| | | MultiYearWarrantyTotalPrice__c = MultiYearWarrantyTotalPrice__c + localParseFloat(ServicePrice) * localParseFloat(Quantity); |
| | | ExtendedWarrantyAmountTotalPrice__c = ExtendedWarrantyAmountTotalPrice__c + localParseFloat(jzdtbt.exPrice) * localParseFloat(Quantity); |
| | | NoDiscountTotal = localParseFloat(ServicePrice) * localParseFloat(Quantity); |
| | | } |
| | | else if (GuranteeType == '市场' && contractmultiYearWarranty && CanNotCancelledGurantee) { |
| | |
| | | // 数量 |
| | | var Quantity = jzdtbt.Quantity__c; |
| | | MultiYearWarrantyTotalPrice__c = MultiYearWarrantyTotalPrice__c + localParseFloat(ServicePrice) * localParseFloat(Quantity); |
| | | ExtendedWarrantyAmountTotalPrice__c = ExtendedWarrantyAmountTotalPrice__c + localParseFloat(jzdtbt.exPrice) * localParseFloat(Quantity); |
| | | NoDiscountTotal = localParseFloat(ServicePrice) * localParseFloat(Quantity); |
| | | } |
| | | else if (GuranteeType == '市场') { |
| | |
| | | |
| | | }); |
| | | MultiYearWarrantyTotalPriceExport = MultiYearWarrantyTotalPrice__c; |
| | | ExtendedWarrantyAmountTotalPriceExport= ExtendedWarrantyAmountTotalPrice__c; |
| | | return jzDataToBeproduct; |
| | | } |
| | | export function initQuoteLineItemcheck(quoteLineItem,productStatusUpdated){ |
| | |
| | | quoc:quoCan}; |
| | | } |
| | | export function onsaveToBeproductLoc(data,jzDataToBeproduct){ |
| | | debugger |
| | | var dataMap = new Map(); |
| | | var fag = false; |
| | | data.forEach(item=>{ |
| | |
| | | // jzdtbt.UnitPrice_Page__c = toNumComma(datavaue.UnitPrice_Page__c); |
| | | jzdtbt.UnitPrice_Page__c = datavaue.UnitPrice_Page__c; |
| | | } |
| | | console.log("saf"); |
| | | console.log(jzdtbt); |
| | | if(datavaue.Learning_Community){ |
| | | jzdtbt.Learning_Community = datavaue.Learning_Community; |
| | | jzdtbt.multiYearWarrantyList.forEach(item=>{ |
| | | if('' + (item.AgeLimit__c) == Learning_Community){ |
| | | jzdtbt.MultiOneYearWarrantyPrice__c = item.MultiOneYearWarrantyPrice__c; |
| | | if('' + (item.AgeLimit__c) == jzdtbt.Learning_Community){ |
| | | jzdtbt.exPrice = item.MultiOneYearWarrantyPrice__c; |
| | | } |
| | | }); |
| | | if(jzdtbt.MultiOneYearWarrantyPrice__c == null || jzdtbt.MultiOneYearWarrantyPrice__c == '' || jzdtbt.MultiOneYearWarrantyPrice__c == undefined){ |
| | | jzdtbt.MultiOneYearWarrantyPrice__c = 0; |
| | | if(jzdtbt.exPrice == null || jzdtbt.exPrice == '' || jzdtbt.exPrice == undefined){ |
| | | jzdtbt.exPrice = 0; |
| | | } |
| | | } |
| | | x = localParseInt(jzdtbt.Quantity__c); |
| | | y = localParseFloat(jzdtbt.UnitPrice_Page__c); |
| | | c = localParseFloat(jzdtbt.Cost_c); |
| | | e = localParseFloat(jzdtbt.exPrice); |
| | | z = x * y; |
| | | // jzdtbt.Subtotal__c = toNumComma(z) |
| | | jzdtbt.Subtotal__c = z |