|
|
@ -4,7 +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="primary" v-if="formobj.confirmAtn" size="small" @click="settleByConfirm()">确认客户结清</el-button> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -268,7 +268,6 @@ export default { |
|
|
|
viewState: 1, |
|
|
|
tableKey: 1, |
|
|
|
index: 0, |
|
|
|
settleVisible: false, // 确认客户结清按钮是否显示 |
|
|
|
formobj: { |
|
|
|
bankContractNo: '', |
|
|
|
bankName: '', |
|
|
@ -347,12 +346,6 @@ 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) => { |
|
|
@ -388,11 +381,29 @@ export default { |
|
|
|
this.viewState = 1 |
|
|
|
}, |
|
|
|
settleByConfirm() { |
|
|
|
req.confirmAtn({ sid: this.formobj.sid }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '操作成功' }) |
|
|
|
} |
|
|
|
const tip = '请再次确认客户已交清所有结清款,确认后将生成结清应收!' |
|
|
|
this.$confirm(tip, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
const loading = this.$loading({ |
|
|
|
lock: true, |
|
|
|
text: 'Loading', |
|
|
|
spinner: 'el-icon-loading', |
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
}) |
|
|
|
req.confirmAtn({ sid: this.formobj.sid }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '操作成功' }) |
|
|
|
loading.close() |
|
|
|
} |
|
|
|
}).catch(e => { |
|
|
|
loading.close() |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
handleReturn() { |
|
|
|
this.formobj = { |
|
|
@ -461,7 +472,6 @@ export default { |
|
|
|
vehMark: '', |
|
|
|
vinNo: '' |
|
|
|
} |
|
|
|
this.settleVisible = false |
|
|
|
this.$emit('doback') |
|
|
|
} |
|
|
|
} |
|
|
|