From 068f60361df3ee75297f49dcd14d0e534bd5271d Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 6 Sep 2023 17:02:07 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=87=91=E8=9E=8D?= =?UTF-8?q?=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/publicPage/financialscheme.vue | 10 +++++++++- .../views/workflow/publicPage/financialscheme.vue | 14 +++++++++++--- 2 files changed, 20 insertions(+), 4 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 af53a65a2a..32bcd08ca8 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue @@ -538,9 +538,17 @@ export default { // 贴息用途赋值 this.finance.factoryDiscountUse = '抵利息' this.finance.factoryDiscountUseKey = '02' - // 当融资项目总额不为空且不为0时,如果更换产品政策(则需要重新计算首付金额、贷款金额等一系列需要计算的费用) + // 当融资项目总额不为空且不为0时,如果更换产品政策(需要重新计算首付金额、产品贷款金额、贷款保证金等,重置其它融模块的内容) if (this.finance.loanTotal !== '' && this.finance.loanTotal !== '0') { + // 重新计算 this.financingProject() + // 重置其它融模块的内容 + this.finance.otherPolicyState = false + this.finance.otherPolicyName = '' + this.finance.otherPolicySid = '' + this.finance.otherPolicyAmount = '' + this.finance.otherPolicyPeriod = '' + this.finance.otherPolicyYearRatio = '' } selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => { if (res.success) { 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 5a1404477b..ee57e5a40a 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 @@ -421,14 +421,14 @@ export default { this.finance = JSON.parse(JSON.stringify(value)) this.orgPath = orgSidPath 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: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => { if (resp.success) { this.policy_list = resp.data } }) } if (this.finance.policySid !== '' && this.finance.isPack !== null) { - selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid }).then((res) => { + selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid }).then((res) => { if (res.success) { this.other_list = res.data } @@ -535,9 +535,17 @@ export default { this.finance.nominalPrice = choose[0].nominalPrice // 从金融产品政策中-- 获取代收意外险 this.finance.proxyAccidentPremium = choose[0].vehAccidentAmount - // 当融资项目总额不为空且不为0时,如果更换产品政策(则需要重新计算首付金额、贷款金额等一系列需要计算的费用) + // 当融资项目总额不为空且不为0时,如果更换产品政策(需要重新计算首付金额、产品贷款金额、贷款保证金等,重置其它融模块的内容) if (this.finance.loanTotal !== '' && this.finance.loanTotal !== '0') { + // 重新计算 this.financingProject() + // 重置其它融模块的内容 + this.finance.otherPolicyState = false + this.finance.otherPolicyName = '' + this.finance.otherPolicySid = '' + this.finance.otherPolicyAmount = '' + this.finance.otherPolicyPeriod = '' + this.finance.otherPolicyYearRatio = '' } selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => { if (res.success) { From 409892e129f01439bdb511140e8b1e933a21bf21 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 6 Sep 2023 17:12:10 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=87=91=E8=9E=8D?= =?UTF-8?q?=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/publicPage/financialscheme.vue | 10 +++++++++- .../views/workFlow/publicPage/financialscheme.vue | 14 +++++++++++--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue b/anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue index c448a27f76..a991004e47 100644 --- a/anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue +++ b/anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue @@ -498,9 +498,17 @@ export default { // 贴息用途赋值 this.finance.factoryDiscountUse = '抵利息' this.finance.factoryDiscountUseKey = '02' - // 当融资项目总额不为空且不为0时,如果更换产品政策(则需要重新计算首付金额、贷款金额等一系列需要计算的费用) + // 当融资项目总额不为空且不为0时,如果更换产品政策(需要重新计算首付金额、产品贷款金额、贷款保证金等,重置其它融模块的内容) if (this.finance.loanTotal !== '' && this.finance.loanTotal !== '0') { + // 重新计算 this.financingProject() + // 重置其它融模块的内容 + this.finance.otherPolicyState = false + this.finance.otherPolicyName = '' + this.finance.otherPolicySid = '' + this.finance.otherPolicyAmount = '' + this.finance.otherPolicyPeriod = '' + this.finance.otherPolicyYearRatio = '' } selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => { if (res.success) { diff --git a/anrui-riskcenter-ui/src/views/workFlow/publicPage/financialscheme.vue b/anrui-riskcenter-ui/src/views/workFlow/publicPage/financialscheme.vue index d5f6b22a50..20dc76a30b 100644 --- a/anrui-riskcenter-ui/src/views/workFlow/publicPage/financialscheme.vue +++ b/anrui-riskcenter-ui/src/views/workFlow/publicPage/financialscheme.vue @@ -384,14 +384,14 @@ export default { this.finance = JSON.parse(JSON.stringify(value)) this.orgPath = orgPath 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: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => { if (resp.success) { this.policy_list = resp.data } }) } if (this.finance.policySid !== '' && this.finance.isPack !== null) { - selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid }).then((res) => { + selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid }).then((res) => { if (res.success) { this.other_list = res.data } @@ -500,9 +500,17 @@ export default { // 贴息用途赋值 this.finance.factoryDiscountUse = '抵利息' this.finance.factoryDiscountUseKey = '02' - // 当融资项目总额不为空且不为0时,如果更换产品政策(则需要重新计算首付金额、贷款金额等一系列需要计算的费用) + // 当融资项目总额不为空且不为0时,如果更换产品政策(需要重新计算首付金额、产品贷款金额、贷款保证金等,重置其它融模块的内容) if (this.finance.loanTotal !== '' && this.finance.loanTotal !== '0') { + // 重新计算 this.financingProject() + // 重置其它融模块的内容 + this.finance.otherPolicyState = false + this.finance.otherPolicyName = '' + this.finance.otherPolicySid = '' + this.finance.otherPolicyAmount = '' + this.finance.otherPolicyPeriod = '' + this.finance.otherPolicyYearRatio = '' } selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => { if (res.success) { From ca43a7961b7a9a224a514c394f384e1ce07be6a7 Mon Sep 17 00:00:00 2001 From: dimengzhe Date: Wed, 6 Sep 2023 17:17:31 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../loansolutions/LoanSolutionsService.java | 73 +++++++++++-------- 1 file changed, 41 insertions(+), 32 deletions(-) diff --git a/anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loansolutions/LoanSolutionsService.java b/anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loansolutions/LoanSolutionsService.java index 43aa17ae5c..c86761a8e8 100644 --- a/anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loansolutions/LoanSolutionsService.java +++ b/anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loansolutions/LoanSolutionsService.java @@ -1053,11 +1053,11 @@ public class LoanSolutionsService extends MybatisBaseService