<template>
|
<div class="loan"
|
element-loading-background="transparent">
|
<el-row v-if="putoutList"
|
class="info-block"
|
:gutter="20">
|
<el-col :span="12"><span class="label">申请编号:</span>{{putoutList.serialNo || '-'}}</el-col>
|
<el-col :span="12"><span class="label">客户名称:</span>{{putoutList.customerName || '-'}}</el-col>
|
<el-col :span="12"><span class="label">产品:</span>{{putoutList.productName || '-'}}</el-col>
|
<el-col :span="12"><span class="label">借款金额:</span>{{putoutList.amountloan || '-'}}</el-col>
|
<template v-if="isCurErr">
|
<el-col :span="12"><span class="label">当前放款资金单元:</span>{{curErr.fundunitname || '-'}}</el-col>
|
<el-col :span="12"><span class="label">资方放款失败原因:</span>{{curErr.dealDesc || '-'}}</el-col>
|
</template>
|
</el-row>
|
<el-table :data="failList"
|
:header-cell-style="{background:'#FAFAFA',color:'#222222'}"
|
:max-height='480'>
|
<el-table-column prop="fundunitname"
|
label="放款失败资金单元">
|
</el-table-column>
|
<el-table-column prop="dealDesc"
|
label="资方放款失败原因"
|
width="200">
|
</el-table-column>
|
<el-table-column prop="manualdeltime"
|
label="处理为放款失败时间"
|
width="200">
|
</el-table-column>
|
<el-table-column prop="manualdeluserid"
|
label="处理人"
|
width="200">
|
</el-table-column>
|
</el-table>
|
<div class="btn" v-if="isCurErr">
|
<el-button size="medium"
|
type="primary"
|
@click="confirm">确认放款失败</el-button>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
// 确认资方放款失败处理
|
import {
|
flagPutoutFail,
|
} from '@comprehensive/serve/public'
|
export default {
|
props: ['loanStatus', 'putoutCheckInfoList', 'failList'],
|
data() {
|
return {}
|
},
|
computed: {
|
putoutList() {
|
return this.putoutCheckInfoList ? this.putoutCheckInfoList[0] : []
|
},
|
curErr() {
|
const errInfo = this.failList.find((item) => {
|
return item.cur
|
})
|
return errInfo
|
},
|
isCurErr() {
|
const errInfo = this.failList.find((item) => {
|
return item.cur
|
})
|
return !!errInfo
|
},
|
},
|
methods: {
|
async confirm() {
|
const res = await flagPutoutFail({
|
fundunitno: this.curErr.fundunitno,
|
serialNo: this.putoutList.serialNo
|
})
|
if(res.code == '00'){
|
this.$message.success('确认资方放款失败处理成功')
|
this.$emit('close',true)
|
}
|
},
|
},
|
}
|
</script>
|
<style lang="stylus">
|
.loan {
|
.info-block {
|
padding: 10px;
|
.el-col{
|
color: #333;
|
padding-bottom: 10px;
|
}
|
.label {
|
color: #888;
|
}
|
}
|
|
.btn {
|
margin-top: 20px;
|
text-align: center;
|
|
.el-button {
|
width: 120px;
|
font-size: 14px;
|
line-height: 20px;
|
padding: 5px 0;
|
}
|
}
|
}
|
</style>
|