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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'taskType',
    label: '类别'
  },
  {
    field: 'initOrganId',
    label: '发起督办机构id'
  },
  {
    field: 'accpetOrganId',
    label: '接受督办机构id'
  },
  {
    field: 'initDate',
    label: '发起督办时间'
  },
  {
    field: 'replyDate',
    label: '回复时间'
  },
  {
    field: 'status',
    label: '督办状态'
  },
  {
    field: 'taskContent',
    label: '督办内容'
  },
  {
    field: 'replyContent',
    label: '恢复内容'
  },
  {
    field: 'dgType',
    label: '任务类型'
  },
  {
    field: 'accpetOrganname',
    label: '督办机构'
  }
])

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

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