diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue index c4182f8890..7c1ba3a371 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue @@ -8,7 +8,7 @@ -
+
是否打包
@@ -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') } }