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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'organname',
    label: '报送机构'
  },
  {
    field: 'custpptype',
    label: '客户类型'
  },
  {
    field: 'suscrimtypes',
    label: '可疑交易特征'
  },
  {
    field: 'yjbgbs',
    label: '预警报告笔数'
  },
  {
    field: 'yjbgfs',
    label: '预警报告份数'
  },
  {
    field: 'yjbgje',
    label: '预警报告金额(万元)'
  }
])

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

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