<script setup lang="tsx">
import { PropType, ref } from 'vue'
import { TableData } from '@/api/amld/BlacklistsScreen/BlacklistsScreen/types'
import { Descriptions, DescriptionsSchema } from '@/components/Descriptions'

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'custCode',
    label: '客户号'
  },
  {
    field: 'custName',
    label: '黑名单客户名称'
  },
  {
    field: 'custCardno',
    label: '客户证件号'
  },
  {
    field: 'matchingtype',
    label: '匹配类型'
  },
  {
    field: 'matchingscore',
    label: '匹配度'
  },
  {
    field: 'custCode1',
    label: '存量客户号'
  },
  {
    field: 'attribute5',
    label: '客户账号'
  },
  {
    field: 'custName1',
    label: '存量客户名称'
  },
  {
    field: 'createDate',
    label: '客户号开立时间'
  },
  {
    field: 'tranDate',
    label: '交易时间'
  },
  {
    field: 'oppName',
    label: '交易对手名称'
  },
  {
    field: 'oppPapersno',
    label: '交易对手证件号码'
  },
  {
    field: 'warnCode',
    label: '生成可疑案例编号'
  },
  {
    field: 'exportDate',
    label: '匹配日期'
  },
  {
    field: 'blackNum',
    label: '黑名单编号'
  },
  {
    field: 'custOrgancode',
    label: '客户归属机构'
  },
  {
    field: 'acctOrgancode',
    label: '账号开立机构'
  },
  {
    field: 'tranOrgancode',
    label: '交易机构'
  },
  {
    field: 'plResult',
    label: '匹配结果'
  },
  {
    field: 'custCardtype',
    label: '证件类型'
  },
  {
    field: 'recordId',
    label: '道琼斯黑名单记录id'
  }
])

defineProps({
  currentRow: {
    type: Object as PropType<TableData>,
    default: () => {}
  }
})
</script>

<template>
  <Descriptions :schema="detailSchema" :data="currentRow || {}" />
</template>
