zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<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>