From 29feedd94088eec84afac0c0073a80080b787898 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Tue, 12 Sep 2023 11:36:44 +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 --- .../components/publicPage/financialscheme.vue | 16 +++++++++++----- .../publicPage/financialschemeEdit.vue | 2 +- .../cheliangxuqiu/cheliangxuqiuAdd.vue | 2 +- .../workflow/publicPage/financialscheme.vue | 15 +++++++++------ .../workflow/publicPage/financialschemeEdit.vue | 6 ++++-- .../xiaoshoudingdanByJinRong.vue | 2 +- 6 files changed, 27 insertions(+), 16 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 1f42097647..94d3d0ee19 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue @@ -22,7 +22,7 @@
产品政策
- + @@ -311,6 +311,12 @@ import { calculate } from '@/api/salesManagement/orderManagement' export default { name: 'JinRongFangAn', + props: { + modelSid: { + type: String, + default: '' + } + }, data() { return { viewTitle: '', @@ -422,7 +428,7 @@ export default { this.finance = JSON.parse(JSON.stringify(value)) this.isShowMore = this.finance.isShowMore if (this.finance.isPack !== '' && this.finance.isPack !== null) { - selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => { + selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => { if (resp.success) { this.policy_list = resp.data } @@ -508,7 +514,7 @@ export default { vehOtherPrice: '', vehTotalPrice: '' } - selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => { + selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => { if (resp.success) { this.policy_list = resp.data } @@ -625,10 +631,10 @@ export default { // 应收明细 -- 根据金融产品政策获取的服务费类型计算服务费 if (this.finance.serviceChargeTypeKey === '01') { // 融资项目总额 * 融资项目总额比例(金融产品政策中服务费) - this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue))) + this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) * (parseFloat(this.arguments(this.finance.serviceChargeTypeValue)) / 100)) } else if (this.finance.serviceChargeTypeKey === '02') { // 贷款金额 * 贷款金额比例(金融产品政策中服务费) - this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanAmount)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue))) + this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanAmount)) * (parseFloat(this.arguments(this.finance.serviceChargeTypeValue)) / 100)) } else if (this.finance.serviceChargeTypeKey === '03') { // 等于金融产品政策中服务费 this.finance.serviceAmount = this.finance.serviceChargeTypeValue diff --git a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeEdit.vue b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeEdit.vue index 7b8ef6ad0e..ddb46bebd7 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeEdit.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeEdit.vue @@ -308,7 +308,7 @@ - +