recordLendingDetailModal.vue 4.3 KB
<template>
  <a-modal title="放款记录详情" :width="800" :centered="true" :visible="visible" @cancel="handleCancel" :footer="null" :maskClosable="false" style="top:20px;" class="scope-record">
    <a-card title="放款基本信息" :bordered="false">
      <a-row :gutter="24">
        <a-col :span="12">
          <a-form-item label="借款订单编号" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.orderNo}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item label="申请时间" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.applyDate}}</div>
          </a-form-item>
        </a-col>
      </a-row>
      <a-row :gutter="24">
        <a-col :span="12">
          <a-form-item label="放款编号" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.remitNo}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item label="放款时间" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.loanTime}}</div>
          </a-form-item>
        </a-col>
      </a-row>
      <a-row :gutter="24">
        <a-col :span="12">
          <a-form-item label="放款金额(元)" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.remitPrincipal}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item label="放款状态" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div class="c189" v-for="(item,index) in dbRemitApplyStatus" :key="index" v-if="detailData.loanStatus==item.name">{{item.title}}</div>
          </a-form-item>
        </a-col>
      </a-row>
      <a-row :gutter="24">
        <a-col :span="12">
          <a-form-item label="放款方式" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div v-for="(item,index) in dbPaymentWay" :key="index" v-if="detailData.paymentWay==item.name">{{item.title}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item label="放款失败原因" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.failDesc}}</div>
          </a-form-item>
        </a-col>
      </a-row>
    </a-card>
    <a-card title="资金方信息" :bordered="false">
      <a-row :gutter="24">
        <a-col :span="12">
          <a-form-item label="金融机构编号" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.fundNo}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item label="金融机构名称" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.fundName}}</div>
          </a-form-item>
        </a-col>
      </a-row>
    </a-card>
    <a-card title="收款账户信息" :bordered="false">
      <a-row :gutter="24">
        <a-col :span="12">
          <a-form-item label="收款账户名称" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.bankName}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item label="收款账户号" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.loanAccountNoView}}</div>
          </a-form-item>
        </a-col>
      </a-row>
    </a-card>
  </a-modal>
</template>

<script>
import { deleteCusExtAttachment } from '@/api/configApi'

export default {
  name: 'recordLendingDetailModal',
  components: {
  },
  data () {
    return {
      dbPaymentWay: JSON.parse(sessionStorage.getItem('DB_PAYMENT_WAY')), // 放款方式
      dbRemitApplyStatus: JSON.parse(sessionStorage.getItem('DB_REMIT_APPLY_STATUS')), // 放款状态
      detailData: {},
      loading: false,
      visible: false,
    }
  },
  created () {
    console.log(this.dbPaymentWay)
  },
  methods: {
    edit (record) {
      this.detailData = record
      this.visible = true;
      this.$parent.visible = false;
    },
    handleDetailLook () {

    },
    handleCancel () {
      this.close()
    },
    close () {
      this.$emit('close')
      this.visible = false
    },
  }
}
</script>
<style>
.scope-record .ant-form-item {
  margin-bottom: 12px;
}
.scope-record .ant-card-body {
  padding: 20px 24px 0;
}
.scope-record .c189 {
  color: #1890ff;
}
.scope-record .fw {
  font-weight: bold;
}
</style>