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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'pkid',
    label: '序列字段'
  },
  {
    field: 'pkgCode',
    label: '数据包编号'
  },
  {
    field: 'pkgType',
    label: '数据包类型'
  },
  {
    field: 'repType',
    label: '交易类型'
  },
  {
    field: 'sendSeq',
    label: '当日报送的批次'
  },
  {
    field: 'pkgName',
    label: '数据包文件名'
  },
  {
    field: 'status',
    label: '数据包状态'
  },
  {
    field: 'createDate',
    label: '生成时间'
  },
  {
    field: 'pkgContent',
    label: '数据包实体'
  },
  {
    field: 'organCode',
    label: '机构代码'
  },
  {
    field: 'isuploadf',
    label: '有无附件'
  },
  {
    field: 'trantdate',
    label: '数据交易日期'
  }
])

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

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