repayMsgDetailModal.vue 4.45 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.repaymentFlowNo}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item label="还款时间" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.actualTime}}</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.userActualSumMoney?detailData.userActualSumMoney:detailData.actualSumMoney}}</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 class="c189" v-for="(item,index) in dbRepayChannel" :key="index" v-if="detailData.repayChannel==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 class="c189" v-if="detailData.paymentChannel=='OFFLINE'">线下</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 dbRepayPayStatus" :key="index" v-if="detailData.payStatus==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.failReason}}</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.remark}}</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.bindAccountName}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item label="还款账户号" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.bindAccountNoView}}</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.fundNo}}</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.receiptAccount}}</div>
          </a-form-item>
        </a-col>
      </a-row>
    </a-card>
  </a-modal>
</template>

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

export default {
  name: 'repayMsgDetailModal',
  components: {
  },
  data () {
    return {
      dbRepayChannel: JSON.parse(sessionStorage.getItem('DB_REPAY_CHANNEL')), // 还款方式 
      dbRepayPayStatus: JSON.parse(sessionStorage.getItem('DB_REPAY_PAY_STATUS')), // 还款状态
      detailData: {},
      loading: false,
      visible: false,
    }
  },
  created () {
  },
  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>