|
|
@ -4,6 +4,7 @@ |
|
|
|
<div class="tab-header webtop"> |
|
|
|
<div>{{ viewTitle }}</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" v-if="settleVisible" size="small" @click="settleByConfirm()">确认客户结清</el-button> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -267,6 +268,7 @@ export default { |
|
|
|
viewState: 1, |
|
|
|
tableKey: 1, |
|
|
|
index: 0, |
|
|
|
settleVisible: false, // 确认客户结清按钮是否显示 |
|
|
|
formobj: { |
|
|
|
bankContractNo: '', |
|
|
|
bankName: '', |
|
|
@ -345,6 +347,12 @@ export default { |
|
|
|
req.fetchBySid({ busVinSid: '', orgPath: '', sid: row.sid, userSid: '' }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.formobj = res.data |
|
|
|
// 结清申请已通过且公司减免后结清合计大于0时显示确认客户结清按钮 |
|
|
|
if (row.nodeState === '已办结' && parseFloat(this.formobj.loanSettleCompanyReductionVo.amountTo) > 0) { |
|
|
|
this.settleVisible = true |
|
|
|
} else { |
|
|
|
this.settleVisible = false |
|
|
|
} |
|
|
|
if (this.formobj.loanSettleBankCostVo.filesList.length > 0) { |
|
|
|
const aa = [] |
|
|
|
this.formobj.loanSettleBankCostVo.filesList.forEach((e) => { |
|
|
@ -379,6 +387,13 @@ export default { |
|
|
|
resetState() { |
|
|
|
this.viewState = 1 |
|
|
|
}, |
|
|
|
settleByConfirm() { |
|
|
|
req.confirmAtn({ sid: this.formobj.sid }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '操作成功' }) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleReturn() { |
|
|
|
this.formobj = { |
|
|
|
bankContractNo: '', |
|
|
@ -446,6 +461,7 @@ export default { |
|
|
|
vehMark: '', |
|
|
|
vinNo: '' |
|
|
|
} |
|
|
|
this.settleVisible = false |
|
|
|
this.$emit('doback') |
|
|
|
} |
|
|
|
} |
|
|
|