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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'dataDate',
    label: '数据日期'
  },
  {
    field: 'orgNo',
    label: '金融许可证号'
  },
  {
    field: 'checkObj',
    label: '校验对象'
  },
  {
    field: 'orgName',
    label: '机构名称'
  },
  {
    field: 'dicCode',
    label: '关键基础数据编码'
  },
  {
    field: 'checkTotalNum',
    label: '校验总记录数'
  },
  {
    field: 'checkPassNum',
    label: '校验通过记录数'
  },
  {
    field: 'checkPassPer',
    label: '通过率（%）'
  },
  {
    field: 'checkPassResult',
    label: '校验通过情况'
  },
  {
    field: 'checkTs',
    label: '校验时间'
  }
])

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

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