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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'custpptype',
    label: '客户类型'
  },
  {
    field: 'currencycode',
    label: '币种'
  },
  {
    field: 'debgbs',
    label: '可疑报告笔数'
  },
  {
    field: 'debgfs',
    label: '可疑报告份数'
  },
  {
    field: 'debgje',
    label: '可疑报告金额(万元)'
  },
  {
    field: 'urgency',
    label: '可疑程度'
  }
])

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

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