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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'custpptype',
    label: '客户类型'
  },
  {
    field: 'rulecode',
    label: '预警规则'
  },
  {
    field: 'currencycode',
    label: '币种'
  },
  {
    field: 'debgbs',
    label: '大额报告笔数'
  },
  {
    field: 'debgfs',
    label: '大额报告份数'
  },
  {
    field: 'debgje',
    label: '大额报告金额(万元)'
  }
])

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

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