Browse Source

完善车辆结清管理

master
yunuo970428 8 months ago
parent
commit
d89804d590
  1. 28
      anrui-riskcenter-ui/src/views/settle/settleInfo.vue

28
anrui-riskcenter-ui/src/views/settle/settleInfo.vue

@ -4,7 +4,7 @@
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>{{ viewTitle }}</div> <div>{{ viewTitle }}</div>
<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> <el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div> </div>
</div> </div>
@ -268,7 +268,6 @@ export default {
viewState: 1, viewState: 1,
tableKey: 1, tableKey: 1,
index: 0, index: 0,
settleVisible: false, //
formobj: { formobj: {
bankContractNo: '', bankContractNo: '',
bankName: '', bankName: '',
@ -347,12 +346,6 @@ export default {
req.fetchBySid({ busVinSid: '', orgPath: '', sid: row.sid, userSid: '' }).then((res) => { req.fetchBySid({ busVinSid: '', orgPath: '', sid: row.sid, userSid: '' }).then((res) => {
if (res.success) { if (res.success) {
this.formobj = res.data 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) { if (this.formobj.loanSettleBankCostVo.filesList.length > 0) {
const aa = [] const aa = []
this.formobj.loanSettleBankCostVo.filesList.forEach((e) => { this.formobj.loanSettleBankCostVo.filesList.forEach((e) => {
@ -388,11 +381,29 @@ export default {
this.viewState = 1 this.viewState = 1
}, },
settleByConfirm() { settleByConfirm() {
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) => { req.confirmAtn({ sid: this.formobj.sid }).then((res) => {
if (res.success) { if (res.success) {
this.$message({ showClose: true, type: 'success', message: '操作成功' }) this.$message({ showClose: true, type: 'success', message: '操作成功' })
loading.close()
} }
}).catch(e => {
loading.close()
}) })
}).catch(() => {
})
}, },
handleReturn() { handleReturn() {
this.formobj = { this.formobj = {
@ -461,7 +472,6 @@ export default {
vehMark: '', vehMark: '',
vinNo: '' vinNo: ''
} }
this.settleVisible = false
this.$emit('doback') this.$emit('doback')
} }
} }

Loading…
Cancel
Save