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 0daca9c72c..af53a65a2a 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 @@
产品政策
- + @@ -418,23 +418,23 @@ export default { return val }, showAdd(value) { - this.finance = JSON.parse(JSON.stringify(value)) - this.isShowMore = this.finance.isShowMore this.init() - }, - showEdit(value) { this.finance = JSON.parse(JSON.stringify(value)) - this.init() - selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => { - if (resp.success) { - this.policy_list = resp.data - } - }) - selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid }).then((res) => { - if (res.success) { - this.other_list = res.data - } - }) + 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) => { + 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) => { + if (res.success) { + this.other_list = res.data + } + }) + } }, // 是否打包 isPackChange(val) { @@ -538,6 +538,10 @@ export default { // 贴息用途赋值 this.finance.factoryDiscountUse = '抵利息' this.finance.factoryDiscountUseKey = '02' + // 当融资项目总额不为空且不为0时,如果更换产品政策(则需要重新计算首付金额、贷款金额等一系列需要计算的费用) + if (this.finance.loanTotal !== '' && this.finance.loanTotal !== '0') { + this.financingProject() + } selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => { if (res.success) { this.other_list = res.data 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 eca4ea2437..5a1404477b 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 @@ -22,7 +22,7 @@
产品政策
- + @@ -417,16 +417,18 @@ export default { return val }, showAdd(value, orgSidPath) { - this.finance = JSON.parse(JSON.stringify(value)) this.init() + this.finance = JSON.parse(JSON.stringify(value)) this.orgPath = orgSidPath - 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 !== '') { - selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid }).then((res) => { + 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) => { + 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) => { if (res.success) { this.other_list = res.data } @@ -533,6 +535,10 @@ export default { this.finance.nominalPrice = choose[0].nominalPrice // 从金融产品政策中-- 获取代收意外险 this.finance.proxyAccidentPremium = choose[0].vehAccidentAmount + // 当融资项目总额不为空且不为0时,如果更换产品政策(则需要重新计算首付金额、贷款金额等一系列需要计算的费用) + if (this.finance.loanTotal !== '' && this.finance.loanTotal !== '0') { + this.financingProject() + } selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => { if (res.success) { this.other_list = res.data diff --git a/anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue b/anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue index 675a4c2f09..c448a27f76 100644 --- a/anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue +++ b/anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue @@ -21,7 +21,7 @@
产品政策
- + @@ -379,22 +379,22 @@ export default { return val }, showAdd(value) { - this.finance = JSON.parse(JSON.stringify(value)) this.init() - }, - showEdit(value) { this.finance = JSON.parse(JSON.stringify(value)) - this.init() - selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('defaultOrgPath'), isPack: this.finance.isPack }).then((resp) => { - if (resp.success) { - this.policy_list = resp.data - } - }) - selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('defaultOrgPath'), sid: this.finance.policySid }).then((res) => { - if (res.success) { - this.other_list = res.data - } - }) + 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) => { + 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) => { + if (res.success) { + this.other_list = res.data + } + }) + } }, // 是否打包 isPackChange(val) { @@ -498,6 +498,10 @@ export default { // 贴息用途赋值 this.finance.factoryDiscountUse = '抵利息' this.finance.factoryDiscountUseKey = '02' + // 当融资项目总额不为空且不为0时,如果更换产品政策(则需要重新计算首付金额、贷款金额等一系列需要计算的费用) + if (this.finance.loanTotal !== '' && this.finance.loanTotal !== '0') { + this.financingProject() + } selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => { if (res.success) { this.other_list = res.data diff --git a/anrui-riskcenter-ui/src/views/workFlow/publicPage/financialscheme.vue b/anrui-riskcenter-ui/src/views/workFlow/publicPage/financialscheme.vue index 810ee998d5..d5f6b22a50 100644 --- a/anrui-riskcenter-ui/src/views/workFlow/publicPage/financialscheme.vue +++ b/anrui-riskcenter-ui/src/views/workFlow/publicPage/financialscheme.vue @@ -21,7 +21,7 @@
产品政策
- + @@ -380,23 +380,23 @@ export default { return val }, showAdd(value, orgPath) { - this.finance = JSON.parse(JSON.stringify(value)) - this.orgPath = orgPath this.init() - }, - showEdit(value) { this.finance = JSON.parse(JSON.stringify(value)) - this.init() - selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => { - if (resp.success) { - this.policy_list = resp.data - } - }) - selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid }).then((res) => { - if (res.success) { - this.other_list = res.data - } - }) + 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) => { + 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) => { + if (res.success) { + this.other_list = res.data + } + }) + } }, // 是否打包 isPackChange(val) { @@ -500,6 +500,10 @@ export default { // 贴息用途赋值 this.finance.factoryDiscountUse = '抵利息' this.finance.factoryDiscountUseKey = '02' + // 当融资项目总额不为空且不为0时,如果更换产品政策(则需要重新计算首付金额、贷款金额等一系列需要计算的费用) + if (this.finance.loanTotal !== '' && this.finance.loanTotal !== '0') { + this.financingProject() + } selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => { if (res.success) { this.other_list = res.data