Browse Source

公司定制金融方案

zhanglei
yunuo970428 2 years ago
parent
commit
bfc54956a8
  1. 17
      anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue

17
anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue

@ -544,15 +544,15 @@ export default {
} }
this.finance.loanPayMoney = parseFloat(pmt).toFixed(0) 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) // -- (0)
factoryDiscountInput() { factoryDiscountInput() {
if (this.finance.factoryDiscount !== '' && this.finance.factoryDiscount != '0' && this.finance.factoryDiscountUseKey === '02') { 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) 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.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() { loanDownPay() {
@ -651,7 +651,7 @@ export default {
// //
downPayAmountsRatio() { downPayAmountsRatio() {
if (this.finance.loanDownPay !== '' && this.finance.loanTotal !== '') { 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 return this.finance.downPayAmountsRatio
}, },
@ -790,14 +790,15 @@ export default {
// -- // --
vehTotalPrice() { vehTotalPrice() {
if (this.finance.serviceAmount !== '') { 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) { 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) { 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) { arguments(val) {
if (val === '' || val === undefined) { if (val === '' || val === undefined) {

Loading…
Cancel
Save