From 90556dad041c91f9a2cbfbb62e5e02413fa87c87 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Fri, 8 Sep 2023 11:58:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=87=91=E8=9E=8D=E6=96=B9?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/publicPage/financialscheme.vue | 10 +++++++--- .../src/views/workflow/publicPage/financialscheme.vue | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue index 32bcd08ca8..1f42097647 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue @@ -535,6 +535,10 @@ export default { this.finance.nominalPrice = choose[0].nominalPrice // 从金融产品政策中-- 获取代收意外险 this.finance.proxyAccidentPremium = choose[0].vehAccidentAmount + // 从金融产品政策中-- 获取服务费类型 + this.finance.serviceChargeTypeKey = choose[0].serviceChargeTypeKey + // 从金融产品政策中-- 获取服务费 + this.finance.serviceChargeTypeValue = choose[0].serviceChargeTypeValue // 贴息用途赋值 this.finance.factoryDiscountUse = '抵利息' this.finance.factoryDiscountUseKey = '02' @@ -623,11 +627,11 @@ export default { // 融资项目总额 * 融资项目总额比例(金融产品政策中服务费) this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue))) } else if (this.finance.serviceChargeTypeKey === '02') { - // 等于金融产品政策中服务费 - this.finance.serviceAmount = this.finance.serviceChargeTypeValue - } else if (this.finance.serviceChargeTypeKey === '03') { // 贷款金额 * 贷款金额比例(金融产品政策中服务费) this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanAmount)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue))) + } else if (this.finance.serviceChargeTypeKey === '03') { + // 等于金融产品政策中服务费 + this.finance.serviceAmount = this.finance.serviceChargeTypeValue } } if (this.finance.premiumCb && this.finance.dealWayKey === '02') { 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 ee57e5a40a..fa3c66a052 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 @@ -535,6 +535,10 @@ export default { this.finance.nominalPrice = choose[0].nominalPrice // 从金融产品政策中-- 获取代收意外险 this.finance.proxyAccidentPremium = choose[0].vehAccidentAmount + // 从金融产品政策中-- 获取服务费类型 + this.finance.serviceChargeTypeKey = choose[0].serviceChargeTypeKey + // 从金融产品政策中-- 获取服务费 + this.finance.serviceChargeTypeValue = choose[0].serviceChargeTypeValue // 当融资项目总额不为空且不为0时,如果更换产品政策(需要重新计算首付金额、产品贷款金额、贷款保证金等,重置其它融模块的内容) if (this.finance.loanTotal !== '' && this.finance.loanTotal !== '0') { // 重新计算 @@ -620,11 +624,11 @@ export default { // 融资项目总额 * 融资项目总额比例(金融产品政策中服务费) this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue))) } else if (this.finance.serviceChargeTypeKey === '02') { - // 等于金融产品政策中服务费 - this.finance.serviceAmount = this.finance.serviceChargeTypeValue - } else if (this.finance.serviceChargeTypeKey === '03') { // 贷款金额 * 贷款金额比例(金融产品政策中服务费) this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanAmount)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue))) + } else if (this.finance.serviceChargeTypeKey === '03') { + // 等于金融产品政策中服务费 + this.finance.serviceAmount = this.finance.serviceChargeTypeValue } } if (this.finance.premiumCb && this.finance.dealWayKey === '02') {