backMsg.vue 4.74 KB
<template>
  <div>
    <a-card title="客户信息" :bordered="false">
      <a-row :gutter="24">
        <a-col :span="8">
          <a-form-item v-if="userType==1 || userType==3" label="客户名称" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.idcardName}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="8">
          <a-form-item v-if="userType==1 || userType==3" label="身份证号码" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.idcardNoView}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="8">
          <a-form-item v-if="userType==1 || userType==3" label="客户手机号" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.mobilePhoneView}}</div>
          </a-form-item>
        </a-col>
      </a-row>
      <a-row :gutter="24">
        <a-col :span="8">
          <a-form-item v-if="userType==2 || userType==3" label="企业名称" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.idcardName}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="8">
          <a-form-item v-if="userType==2 || userType==3" label="统一社会信用代码" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.orgCode}}</div>
          </a-form-item>
        </a-col>
      </a-row>
    </a-card>
    <a-card title="账单信息" :bordered="false">
      <a-row :gutter="24">
        <a-col :span="8">
          <a-form-item label="产品分类名称" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.idcardName}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="8">
          <a-form-item label="子账单编号" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.idcardNoView}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="8">
          <a-form-item label="期数" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.mobilePhoneView}}</div>
          </a-form-item>
        </a-col>
      </a-row>
      <a-row :gutter="24">
        <a-col :span="8">
          <a-form-item label="计划应还日期" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.idcardName}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="8">
          <a-form-item label="计划应还总额" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.orgCode}}</div>
          </a-form-item>
        </a-col>
        <a-col :span="8">
          <a-form-item label="还款状态" :labelCol="{span:8}" :wrapperCol="{span:16}">
            <div>{{detailData.orgCode}}</div>
          </a-form-item>
        </a-col>
      </a-row>
    </a-card>
    <a-card title="回购记录" :bordered="false">
      <a-table ref="table" size="middle" bordered :columns="columns" :rowKey="record => record.id" :dataSource="dataList" :pagination="false" :loading="loading" style="padding-bottom:30px;">
        <!-- 字符串超长截取省略号显示-->
        <span slot="esContent" slot-scope="text">
          <j-ellipsis :value="text" :length="10" />
        </span>
        <span slot="action" slot-scope="text, record">
          <a @click="handleDetailLook(record)">查看</a>
        </span>
      </a-table>
    </a-card>
  </div>
</template>

<script>
import { queryRepayPlan, queryFeeBillList } from '@/api/makeLoan'

export default {
  name: 'backMsg',
  props: {
    billNo: {
      type: String,
      default: null
    },
    userType: {
      type: Number,
      default: null
    }
  },
  data () {
    return {
      dataList: [],
      dataListFee: [],
      loading: false,
      visible: false,
      detailData: '',
      dbTimePoint: JSON.parse(sessionStorage.getItem('DB_TIME_POINT')), // 收费模式
      columns: [
        {
          title: '原资金方名称',
          align: 'center',
          dataIndex: 'planDate'
        },
        {
          title: '回购资金方名称',
          align: 'center',
          dataIndex: 'duePrincipalMoney'
        },
        {
          title: '回购日期',
          align: 'center',
          dataIndex: 'dueInterestMoney'
        },
        {
          title: '回购金额',
          align: 'center',
          dataIndex: 'dueSumMoney'
        },
        {
          title: '放款流水号',
          align: 'center',
          dataIndex: 'remark'
        },
      ],
    }
  },
  created () {

  },
  methods: {
    loadData () {
      let _p = { "billNo": this.billNo }
      queryRepayPlan(_p).then(res => {
        if (res.status.statusCode == 0) {
          this.dataList = res.result
        } else {
          this.$message.warning(res.status.statusReason)
        }
      })
    },
  }
}
</script>
<style>
</style>