|
|
@ -350,6 +350,7 @@ export default { |
|
|
|
vehOtherPrice: '', |
|
|
|
vehTotalPrice: '' |
|
|
|
}, |
|
|
|
vehModelSid: '', |
|
|
|
rules: { |
|
|
|
} |
|
|
|
} |
|
|
@ -378,11 +379,12 @@ export default { |
|
|
|
} |
|
|
|
return val |
|
|
|
}, |
|
|
|
showAdd(value) { |
|
|
|
showAdd(value, vehModelSid) { |
|
|
|
this.init() |
|
|
|
this.vehModelSid = vehModelSid |
|
|
|
this.finance = JSON.parse(JSON.stringify(value)) |
|
|
|
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: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: vehModelSid }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.policy_list = resp.data |
|
|
|
} |
|
|
@ -468,7 +470,7 @@ export default { |
|
|
|
vehOtherPrice: '', |
|
|
|
vehTotalPrice: '' |
|
|
|
} |
|
|
|
selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => { |
|
|
|
selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.vehModelSid }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.policy_list = resp.data |
|
|
|
} |
|
|
@ -585,10 +587,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 |
|
|
@ -807,6 +809,7 @@ export default { |
|
|
|
vehOtherPrice: '', |
|
|
|
vehTotalPrice: '' |
|
|
|
} |
|
|
|
this.vehModelSid = '' |
|
|
|
this.$emit('doback') |
|
|
|
} |
|
|
|
} |
|
|
|