|
|
@ -232,7 +232,7 @@ |
|
|
|
<div v-if="finance.dealWayKey == '02' && finance.isPack == '1'"> |
|
|
|
<div class="span-sty">抵顶首年保险费</div> |
|
|
|
<el-form-item> |
|
|
|
<el-input class="addinputw" v-model="finance.offsetPremium" :disabled="finance.premiumCb" placeholder="" clearable @keyup.native="finance.offsetPremium = oninput(finance.offsetPremium, 0)"/> |
|
|
|
<el-input class="addinputw" v-model="finance.offsetPremium" :disabled="!finance.premiumCb || this.finance.premium == ''" placeholder="" clearable @keyup.native="finance.offsetPremium = oninput(finance.offsetPremium, 0)"/> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
@ -246,7 +246,7 @@ |
|
|
|
<div v-if="finance.dealWayKey == '02' && finance.isPack == '1'"> |
|
|
|
<div class="span-sty">抵顶购置税</div> |
|
|
|
<el-form-item> |
|
|
|
<el-input class="addinputw" v-model="finance.offsetPurchasetax" :disabled="finance.purchaseTaxCb" placeholder="" clearable @keyup.native="finance.offsetPurchasetax = oninput(finance.offsetPurchasetax, 0)"/> |
|
|
|
<el-input class="addinputw" v-model="finance.offsetPurchasetax" :disabled="!finance.purchaseTaxCb || this.finance.purchaseTax == ''" placeholder="" clearable @keyup.native="finance.offsetPurchasetax = oninput(finance.offsetPurchasetax, 0)"/> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
@ -354,6 +354,7 @@ export default { |
|
|
|
vehTotalPrice: '', |
|
|
|
nominalPrice: '' |
|
|
|
}, |
|
|
|
orgPath: '', |
|
|
|
rules: { |
|
|
|
} |
|
|
|
} |
|
|
@ -382,19 +383,20 @@ export default { |
|
|
|
} |
|
|
|
return val |
|
|
|
}, |
|
|
|
showAdd(value) { |
|
|
|
this.finance = value |
|
|
|
showAdd(value, orgPath) { |
|
|
|
this.finance = JSON.parse(JSON.stringify(value)) |
|
|
|
this.orgPath = orgPath |
|
|
|
this.init() |
|
|
|
}, |
|
|
|
showEdit(value) { |
|
|
|
this.finance = 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) => { |
|
|
|
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: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('defaultOrgPath'), sid: this.finance.policySid }).then((res) => { |
|
|
|
selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.other_list = res.data |
|
|
|
} |
|
|
@ -476,7 +478,7 @@ export default { |
|
|
|
vehTotalPrice: '', |
|
|
|
nominalPrice: '' |
|
|
|
} |
|
|
|
selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('defaultOrgPath'), isPack: this.finance.isPack }).then((resp) => { |
|
|
|
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.policy_list = resp.data |
|
|
|
} |
|
|
@ -498,7 +500,7 @@ export default { |
|
|
|
// 贴息用途赋值 |
|
|
|
this.finance.factoryDiscountUse = '抵利息' |
|
|
|
this.finance.factoryDiscountUseKey = '02' |
|
|
|
selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('defaultOrgPath'), sid: choose[0].sid }).then((res) => { |
|
|
|
selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.other_list = res.data |
|
|
|
} |
|
|
@ -665,11 +667,11 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.finance.dealWayKey === '02' && this.finance.isPack === '1') { |
|
|
|
if (parseInt(this.arguments(this.finance.premium)) < parseInt(this.arguments(this.finance.offsetPremium)) && this.finance.premiumCb) { |
|
|
|
if (parseInt(this.arguments(this.finance.premium)) < parseInt(this.arguments(this.finance.offsetPremium))) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '抵顶首年保险费数额不能大于融资项目中的保险数额' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (parseInt(this.arguments(this.finance.purchaseTax)) < parseInt(this.arguments(this.finance.offsetPurchasetax)) && this.finance.purchaseTaxCb) { |
|
|
|
if (parseInt(this.arguments(this.finance.purchaseTax)) < parseInt(this.arguments(this.finance.offsetPurchasetax))) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '抵顶购置税数额不能大于融资项目中的购置税数额' }) |
|
|
|
return |
|
|
|
} |
|
|
|