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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'pkid',
    label: '主键'
  },
  {
    field: 'organcode',
    label: '归属机构'
  },
  {
    field: 'startDate',
    label: '申请查询的数据的开始日期'
  },
  {
    field: 'endDate',
    label: '申请查询的数据的结束日期'
  },
  {
    field: 'status',
    label: '申请状态'
  },
  {
    field: 'taskStartTime',
    label: '任务开始时间 '
  },
  {
    field: 'taskEndTime',
    label: '任务结束时间'
  },
  {
    field: 'proposer',
    label: '申请人'
  },
  {
    field: 'applydate',
    label: '申请日期'
  },
  {
    field: 'tableName',
    label: '申请生成的表'
  },
  {
    field: 'checkdepartment',
    label: '检验部门'
  },
  {
    field: 'organName',
    label: '机构名称'
  }
])

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

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