Browse Source

完善金融方案

master
yunuo970428 2 years ago
parent
commit
88095fa8c5
  1. 68
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue

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

@ -8,7 +8,7 @@
</div>
</div>
<el-form ref="form_obj" :model="finance" class="formaddcopy02">
<div v-if="finance.isShowMore">
<div v-if="isShowMore">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="6">
<div class="span-sty">是否打包</div>
@ -328,6 +328,7 @@ export default {
dealWay_list: [],
policy_list: [],
other_list: [],
isShowMore: false,
finance: {
accessoriesAmount: '',
accessoriesAmountCb: false,
@ -432,6 +433,7 @@ export default {
this.init()
this.modelSid = modelSid
this.finance = JSON.parse(JSON.stringify(value))
this.isShowMore = this.finance.isShowMore
this.orgPath = orgSidPath
if (this.finance.isPack !== '' && this.finance.isPack !== null) {
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => {
@ -772,36 +774,43 @@ export default {
}
}
this.submitdisabled = true
calculate(this.finance).then((resp) => {
if (resp.success) {
this.submitdisabled = false
console.log(resp.data)
this.finance.policyYearRatio = resp.data.policyYearRatio
this.finance.loanPayMoney = resp.data.loanPayMoney
this.finance.loanInterest = resp.data.loanInterest
this.finance.otherPolicyMonthlyRepay = resp.data.otherPolicyMonthlyRepay
this.finance.otherPolicyInterest = resp.data.otherPolicyInterest
this.finance.otherPolicyYearRatio = resp.data.otherPolicyYearRatio
this.finance.loanDownPay = resp.data.loanDownPay
this.finance.downPayAmountsRatio = resp.data.downPayAmountsRatio
this.finance.loanAmountTotal = resp.data.loanAmountTotal
this.finance.period = resp.data.period
this.finance.monthlyRepay = resp.data.monthlyRepay
this.finance.interest = resp.data.interest
this.finance.downPayAmounts = resp.data.downPayAmounts
this.finance.proxyTotal = resp.data.proxyTotal
this.finance.receivableTotal = resp.data.receivableTotal
this.finance.offsetTotal = resp.data.offsetTotal
this.finance.realTotal = resp.data.realTotal
this.finance.vehTotalPrice = resp.data.vehTotalPrice
this.$emit('backData', this.finance)
this.handleColse()
} else {
if (this.isShowMore) {
calculate(this.finance).then((resp) => {
if (resp.success) {
this.submitdisabled = false
console.log(resp.data)
this.finance.policyYearRatio = resp.data.policyYearRatio
this.finance.loanPayMoney = resp.data.loanPayMoney
this.finance.loanInterest = resp.data.loanInterest
this.finance.otherPolicyMonthlyRepay = resp.data.otherPolicyMonthlyRepay
this.finance.otherPolicyInterest = resp.data.otherPolicyInterest
this.finance.otherPolicyYearRatio = resp.data.otherPolicyYearRatio
this.finance.loanDownPay = resp.data.loanDownPay
this.finance.downPayAmountsRatio = resp.data.downPayAmountsRatio
this.finance.loanAmountTotal = resp.data.loanAmountTotal
this.finance.period = resp.data.period
this.finance.monthlyRepay = resp.data.monthlyRepay
this.finance.interest = resp.data.interest
this.finance.downPayAmounts = resp.data.downPayAmounts
this.finance.proxyTotal = resp.data.proxyTotal
this.finance.receivableTotal = resp.data.receivableTotal
this.finance.offsetTotal = resp.data.offsetTotal
this.finance.realTotal = resp.data.realTotal
this.finance.vehTotalPrice = resp.data.vehTotalPrice
this.finance.isShowMore = this.isShowMore
this.$emit('backData', this.finance)
this.handleColse()
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
}
}).catch(() => {
})
} else {
this.$emit('backData', this.finance)
this.submitdisabled = false
})
this.handleColse()
}
},
handleColse() {
this.finance = {
@ -877,6 +886,7 @@ export default {
}
this.orgPath = ''
this.modelSid = ''
this.isShowMore = false
this.$emit('doback')
}
}

Loading…
Cancel
Save