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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'dataDate',
    label: '数据日期'
  },
  {
    field: 'createTime',
    label: '生成时间'
  },
  {
    field: 'tId',
    label: '模板表id'
  },
  {
    field: 'tName',
    label: '报告名称'
  },
  {
    field: 'tCategory',
    label: '报告分类'
  },
  {
    field: 'organCode',
    label: '所属机构'
  }
])

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

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