|
|
@ -544,15 +544,15 @@ export default { |
|
|
|
} |
|
|
|
this.finance.loanPayMoney = parseFloat(pmt).toFixed(0) |
|
|
|
// 根据月还金额 -- 计算利息总额 |
|
|
|
this.finance.loanInterest = parseInt(this.finance.loanPayMoney) * parseInt(nperiod) - parseInt(pv) |
|
|
|
this.finance.loanInterest = parseInt(this.arguments(this.finance.loanPayMoney)) * parseInt(this.arguments(nperiod)) - parseInt(this.arguments(pv)) |
|
|
|
}, |
|
|
|
// 主方案 -- 厂家贴息(当厂家贴息大于0且贴息用途为抵利息时需重新计算利息总额、月还金额、年利率) |
|
|
|
factoryDiscountInput() { |
|
|
|
if (this.finance.factoryDiscount !== '' && this.finance.factoryDiscount != '0' && this.finance.factoryDiscountUseKey === '02') { |
|
|
|
// 计算利息总额 |
|
|
|
this.finance.loanInterest = parseInt(this.finance.loanInterest) - parseInt(this.finance.factoryDiscount) |
|
|
|
this.finance.loanInterest = parseInt(this.arguments(this.finance.loanInterest)) - parseInt(this.arguments(this.finance.factoryDiscount)) |
|
|
|
// 计算月还金额 |
|
|
|
this.finance.loanPayMoney = (parseInt(this.finance.loanPayMoney) - parseInt(this.finance.factoryDiscount)) / parseInt(this.finance.loanPeriod) |
|
|
|
this.finance.loanPayMoney = (parseInt(this.arguments(this.finance.loanPayMoney)) - parseInt(this.arguments(this.finance.factoryDiscount))) / parseInt(this.arguments(this.finance.loanPeriod)) |
|
|
|
// 年利率 |
|
|
|
this.finance.policyYearRatio = (parseFloat(this.rate(this.finance.loanPeriod, this.finance.loanPayMoney, this.finance.loanAmount, 0, 0, 0.01)) * 12).toFixed(2) |
|
|
|
} |
|
|
@ -635,7 +635,7 @@ export default { |
|
|
|
} |
|
|
|
this.finance.otherPolicyMonthlyRepay = parseFloat(pmt).toFixed(0) |
|
|
|
// 根据月还金额 -- 计算利息总额 |
|
|
|
this.finance.otherPolicyInterest = parseInt(this.arguments(this.finance.otherPolicyMonthlyRepay)) * parseInt(nperiod) - parseInt(this.arguments(pv)) |
|
|
|
this.finance.otherPolicyInterest = parseInt(this.arguments(this.finance.otherPolicyMonthlyRepay)) * parseInt(this.arguments(nperiod)) - parseInt(this.arguments(pv)) |
|
|
|
}, |
|
|
|
// 方案汇总 —— 融资首付 |
|
|
|
loanDownPay() { |
|
|
@ -651,7 +651,7 @@ export default { |
|
|
|
// 方案汇总 —— 实际首付比例 |
|
|
|
downPayAmountsRatio() { |
|
|
|
if (this.finance.loanDownPay !== '' && this.finance.loanTotal !== '') { |
|
|
|
this.finance.downPayAmountsRatio = (parseInt(this.finance.loanDownPay) / parseInt(this.finance.loanTotal) * 100).toFixed(2) |
|
|
|
this.finance.downPayAmountsRatio = (parseInt(this.arguments(this.finance.loanDownPay)) / parseInt(this.arguments(this.finance.loanTotal)) * 100).toFixed(2) |
|
|
|
} |
|
|
|
return this.finance.downPayAmountsRatio |
|
|
|
}, |
|
|
@ -790,14 +790,15 @@ export default { |
|
|
|
// 应收明细 -- 车辆总价 |
|
|
|
vehTotalPrice() { |
|
|
|
if (this.finance.serviceAmount !== '') { |
|
|
|
this.finance.receivableTotal = parseInt(this.arguments(this.finance.downPayAmounts)) + parseInt(this.arguments(this.finance.serviceAmount)) + parseInt(this.arguments(this.finance.proxyAccidentPremium)) + parseInt(this.arguments(this.finance.registerAmount)) + parseInt(this.arguments(this.finance.operationAmount)) + parseInt(this.arguments(this.finance.vehOtherPrice)) + parseInt(this.arguments(this.finance.otherAmount)) + parseInt(parseInt(this.finance.loanPayMoney) * parseInt(this.finance.loanPeriod)) + parseInt(parseInt(this.finance.otherPolicyMonthlyRepay) * parseInt(this.finance.otherPolicyPeriod)) |
|
|
|
this.finance.receivableTotal = parseInt(this.arguments(this.finance.downPayAmounts)) + parseInt(this.arguments(this.finance.serviceAmount)) + parseInt(this.arguments(this.finance.proxyAccidentPremium)) + parseInt(this.arguments(this.finance.registerAmount)) + parseInt(this.arguments(this.finance.operationAmount)) + parseInt(this.arguments(this.finance.vehOtherPrice)) + parseInt(this.arguments(this.finance.otherAmount)) + parseInt(parseInt(this.arguments(this.finance.loanPayMoney)) * parseInt(this.arguments(this.finance.loanPeriod))) + parseInt(parseInt(this.arguments(this.finance.otherPolicyMonthlyRepay)) * parseInt(this.arguments(this.finance.otherPolicyPeriod))) |
|
|
|
if (!this.finance.premiumCb) { |
|
|
|
this.finance.receivableTotal = parseInt(this.arguments(this.finance.downPayAmounts)) + parseInt(this.arguments(this.finance.serviceAmount)) + parseInt(this.arguments(this.finance.proxyAccidentPremium)) + parseInt(this.arguments(this.finance.registerAmount)) + parseInt(this.arguments(this.finance.operationAmount)) + parseInt(this.arguments(this.finance.vehOtherPrice)) + parseInt(this.arguments(this.finance.otherAmount)) + parseInt(parseInt(this.finance.loanPayMoney) * parseInt(this.finance.loanPeriod)) + parseInt(parseInt(this.finance.otherPolicyMonthlyRepay) * parseInt(this.finance.otherPolicyPeriod)) + parseInt(this.finance.premium) |
|
|
|
this.finance.receivableTotal = parseInt(this.arguments(this.finance.downPayAmounts)) + parseInt(this.arguments(this.finance.serviceAmount)) + parseInt(this.arguments(this.finance.proxyAccidentPremium)) + parseInt(this.arguments(this.finance.registerAmount)) + parseInt(this.arguments(this.finance.operationAmount)) + parseInt(this.arguments(this.finance.vehOtherPrice)) + parseInt(this.arguments(this.finance.otherAmount)) + parseInt(parseInt(this.arguments(this.finance.loanPayMoney)) * parseInt(this.arguments(this.finance.loanPeriod))) + parseInt(parseInt(this.arguments(this.finance.otherPolicyMonthlyRepay)) * parseInt(this.arguments(this.finance.otherPolicyPeriod))) + parseInt(this.arguments(this.finance.premium)) |
|
|
|
} |
|
|
|
if (!this.finance.purchaseTaxCb) { |
|
|
|
this.finance.receivableTotal = parseInt(this.arguments(this.finance.downPayAmounts)) + parseInt(this.arguments(this.finance.serviceAmount)) + parseInt(this.arguments(this.finance.proxyAccidentPremium)) + parseInt(this.arguments(this.finance.registerAmount)) + parseInt(this.arguments(this.finance.operationAmount)) + parseInt(this.arguments(this.finance.vehOtherPrice)) + parseInt(this.arguments(this.finance.otherAmount)) + parseInt(parseInt(this.finance.loanPayMoney) * parseInt(this.finance.loanPeriod)) + parseInt(parseInt(this.finance.otherPolicyMonthlyRepay) * parseInt(this.finance.otherPolicyPeriod)) + parseInt(this.finance.premium) + parseInt(this.finance.purchaseTax) |
|
|
|
this.finance.receivableTotal = parseInt(this.arguments(this.finance.downPayAmounts)) + parseInt(this.arguments(this.finance.serviceAmount)) + parseInt(this.arguments(this.finance.proxyAccidentPremium)) + parseInt(this.arguments(this.finance.registerAmount)) + parseInt(this.arguments(this.finance.operationAmount)) + parseInt(this.arguments(this.finance.vehOtherPrice)) + parseInt(this.arguments(this.finance.otherAmount)) + parseInt(parseInt(this.arguments(this.finance.loanPayMoney)) * parseInt(this.arguments(this.finance.loanPeriod))) + parseInt(parseInt(this.arguments(this.finance.otherPolicyMonthlyRepay)) * parseInt(this.arguments(this.finance.otherPolicyPeriod))) + parseInt(this.arguments(this.finance.premium)) + parseInt(this.arguments(this.finance.purchaseTax)) |
|
|
|
} |
|
|
|
} |
|
|
|
return this.finance.receivableTotal |
|
|
|
}, |
|
|
|
arguments(val) { |
|
|
|
if (val === '' || val === undefined) { |
|
|
|