|
|
@ -22,7 +22,7 @@ |
|
|
|
<el-col :span="18"> |
|
|
|
<div class="span-sty">产品政策</div> |
|
|
|
<el-form-item> |
|
|
|
<el-select v-model="finance.policyName" placeholder="请选择" @change="changePolicy" clearable class="addinputInfo"> |
|
|
|
<el-select v-model="finance.policyName" placeholder="请选择" @change="changePolicy" filterable clearable class="addinputInfo"> |
|
|
|
<el-option v-for="item in policy_list" :key="item.sid" :label="item.name" :value="item.name"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
@ -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 |
|
|
|