Browse Source

修改问题

master
yunuo970428 2 years ago
parent
commit
83c6edf80a
  1. 2
      anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue
  2. 14
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue
  3. 109
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialschemeEdit.vue

2
anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue

@ -94,7 +94,7 @@
<div> <div>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<div v-show="formobj.financePlan === '2' || formobj.purchaseMethod !== ''"> <div v-show="formobj.financePlan !== '1' && formobj.purchaseMethod !== ''">
<div class="span-sty">金融方案类型</div> <div class="span-sty">金融方案类型</div>
<el-form-item> <el-form-item>
<el-radio-group class="addinputInfo" style="font-size: 1px" v-model="formobj.typeKey" @input="typeInput"> <el-radio-group class="addinputInfo" style="font-size: 1px" v-model="formobj.typeKey" @input="typeInput">

14
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue

@ -518,11 +518,11 @@ export default {
// //
if (this.finance.loanTotal !== '') { if (this.finance.loanTotal !== '') {
// -- // --
this.finance.downPayAmount = (parseInt(this.arguments(this.finance.loanTotal)) * parseFloat(this.arguments(this.finance.downPayRatio)) / 100).toFixed(0) this.finance.downPayAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) * parseFloat(this.arguments(this.finance.downPayRatio)) / 100)
// -- // --
this.finance.loanAmount = parseInt(this.arguments(this.finance.loanTotal)) - parseInt(this.arguments(this.finance.downPayAmount)) this.finance.loanAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) - parseInt(this.arguments(this.finance.downPayAmount)))
// -- // --
this.finance.bondAmount = (parseFloat(this.arguments(this.finance.bondRatio)) * parseInt(this.arguments(this.finance.loanAmount)) / 100).toFixed(0) this.finance.bondAmount = Math.round(parseFloat(this.arguments(this.finance.bondRatio)) * parseInt(this.arguments(this.finance.loanAmount)) / 100)
} }
if (this.finance.premiumCb && this.finance.dealWayKey === '02') { if (this.finance.premiumCb && this.finance.dealWayKey === '02') {
this.finance.offsetPremium = this.finance.premium this.finance.offsetPremium = this.finance.premium
@ -539,17 +539,17 @@ export default {
downPayAmountInput() { downPayAmountInput() {
if (this.finance.loanTotal !== '') { if (this.finance.loanTotal !== '') {
// //
this.finance.downPayRatio = (parseInt(this.arguments(this.finance.downPayAmount)) / parseInt(this.arguments(this.finance.loanTotal)) * 100).toFixed(2) this.finance.downPayRatio = (parseInt(this.arguments(this.finance.downPayAmount)) / parseInt(this.arguments(this.finance.loanTotal)) * 100).toPrecision(2)
// //
this.finance.loanAmount = parseInt(this.arguments(this.finance.loanTotal)) - parseInt(this.arguments(this.finance.downPayAmount)) this.finance.loanAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) - parseInt(this.arguments(this.finance.downPayAmount)))
// -- // --
this.finance.bondAmount = (parseFloat(this.arguments(this.finance.bondRatio)) * parseInt(this.arguments(this.finance.loanAmount)) / 100).toFixed(0) this.finance.bondAmount = Math.round(parseFloat(this.arguments(this.finance.bondRatio)) * parseInt(this.arguments(this.finance.loanAmount)) / 100)
} }
}, },
// -- // --
bondAmountInput() { bondAmountInput() {
if (this.finance.bondAmount !== '') { if (this.finance.bondAmount !== '') {
this.finance.bondRatio = (parseInt(this.arguments(this.finance.bondAmount)) / parseInt(this.arguments(this.finance.loanAmount)) * 100).toFixed(2) this.finance.bondRatio = (parseInt(this.arguments(this.finance.bondAmount)) / parseInt(this.arguments(this.finance.loanAmount)) * 100).toPrecision(2)
} }
}, },
// -- // --

109
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialschemeEdit.vue

@ -325,80 +325,69 @@ export default {
viewTitle: '', viewTitle: '',
viewState: 1, viewState: 1,
formobj: { formobj: {
saleOrderSid: '',
type: '',
isPack: '',
policyName: '',
policySid: '',
mainVehicleAmount: '',
accessoriesAmount: '', accessoriesAmount: '',
trailerAmount: '',
purchaseTax: '',
premium: '',
loanTotal: '',
accessoriesAmountCb: false, accessoriesAmountCb: false,
trailerAmountCb: false,
purchaseTaxCb: false,
premiumCb: false,
downPayRatio: '',
downPayAmount: '',
loanAmount: '',
loanPeriod: '',
bondRatio: '',
bondAmount: '', bondAmount: '',
bondAmounts: '',
bondRatio: '',
dealWay: '',
dealWayKey: '',
depositPremium: '',
depositSettle: '',
downPayAmount: '',
downPayAmounts: '',
downPayAmountsRatio: '',
downPayRatio: '',
factoryDiscount: '', factoryDiscount: '',
factoryDiscountUse: '', factoryDiscountUse: '',
factoryDiscountUseKey: '', interest: '',
policyYearRatio: '', isPack: '',
loanPayMoney: '', isShowMore: false,
loanAmount: '',
loanAmountTotal: '',
loanDownPay: '',
loanInterest: '', loanInterest: '',
discountCar: '', loanPayMoney: '',
otherPolicyState: false, loanPeriod: '',
loanTotal: '',
otherPolicyName: '', mainVehicleAmount: '',
otherPolicySid: '', monthlyRepay: '',
nominalPrice: '',
offsetPremium: '',
offsetPurchasetax: '',
offsetTotal: '',
operationAmount: '',
otherAmount: '',
otherAmountRemark: '',
otherPolicyAmount: '', otherPolicyAmount: '',
otherPolicyPeriod: '',
otherPolicyMonthlyRepay: '',
otherPolicyInterest: '', otherPolicyInterest: '',
otherPolicyMonthlyRepay: '',
otherPolicyName: '',
otherPolicyPeriod: '',
otherPolicySid: '',
otherPolicyState: false,
otherPolicyYearRatio: '', otherPolicyYearRatio: '',
loanDownPay: '',
downPayAmountsRatio: '',
loanAmountTotal: '',
period: '', period: '',
monthlyRepay: '', policyName: '',
interest: '', policySid: '',
returnTime: '', policyYearRatio: '',
premium: '',
downPayAmounts: '', premiumCb: false,
bondAmounts: '',
depositPremium: '',
depositSettle: '',
serviceAmount: '',
proxyAccidentPremium: '', proxyAccidentPremium: '',
registerAmount: '',
operationAmount: '',
vehOtherPrice: '',
otherAmount: '',
otherAmountRemark: '',
dealWay: '',
dealWayKey: '',
proxyPremium: '', proxyPremium: '',
proxyPurchasetax: '', proxyPurchasetax: '',
proxyTotal: '', purchaseTax: '',
offsetPremium: '', purchaseTaxCb: false,
offsetPurchasetax: '',
offsetTotal: '',
receivableTotal: '',
realTotal: '', realTotal: '',
vehTotalPrice: '', receivableTotal: '',
nominalPrice: '', registerAmount: '',
returnTime: '',
isShowMore: false serviceAmount: '',
saleOrderSid: '',
trailerAmount: '',
trailerAmountCb: false,
vehOtherPrice: '',
vehTotalPrice: ''
}, },
orgSidPath: '', orgSidPath: '',
rules: {} rules: {}

Loading…
Cancel
Save