|
|
@ -21,7 +21,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> |
|
|
@ -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 |
|
|
|