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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'pkid',
    label: '序号'
  },
  {
    field: 'taskType',
    label: '类别： 0自动，1手动'
  },
  {
    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: '督办类型'
  }
])

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

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