|
|
@ -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" filterable clearable class="addinputInfo"> |
|
|
|
<el-select v-model="finance.policyName" placeholder="请选择" @change="changePolicy" style="width: 60%" 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> |
|
|
@ -389,6 +389,7 @@ export default { |
|
|
|
vehTotalPrice: '' |
|
|
|
}, |
|
|
|
orgPath: '', |
|
|
|
modelSid: '', |
|
|
|
rules: {} |
|
|
|
} |
|
|
|
}, |
|
|
@ -416,12 +417,13 @@ export default { |
|
|
|
} |
|
|
|
return val |
|
|
|
}, |
|
|
|
showAdd(value, orgSidPath) { |
|
|
|
showAdd(value, orgSidPath, modelSid) { |
|
|
|
this.init() |
|
|
|
this.modelSid = modelSid |
|
|
|
this.finance = JSON.parse(JSON.stringify(value)) |
|
|
|
this.orgPath = orgSidPath |
|
|
|
if (this.finance.isPack !== '' && this.finance.isPack !== null) { |
|
|
|
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => { |
|
|
|
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.policy_list = resp.data |
|
|
|
} |
|
|
@ -508,7 +510,7 @@ export default { |
|
|
|
vehTotalPrice: '' |
|
|
|
} |
|
|
|
console.log(this.orgPath, window.sessionStorage.getItem('userSid'), this.finance.isPack, 88888) |
|
|
|
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => { |
|
|
|
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.policy_list = resp.data |
|
|
|
} |
|
|
@ -622,10 +624,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 |
|
|
@ -845,6 +847,7 @@ export default { |
|
|
|
vehTotalPrice: '' |
|
|
|
} |
|
|
|
this.orgPath = '' |
|
|
|
this.modelSid = '' |
|
|
|
this.$emit('doback') |
|
|
|
} |
|
|
|
} |
|
|
|