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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'a010001',
    label: '机构ID'
  },
  {
    field: 'a010002',
    label: '内部机构号'
  },
  {
    field: 'a010003',
    label: '金融许可证号'
  },
  {
    field: 'a010004',
    label: '统一社会信用代码'
  },
  {
    field: 'a010005',
    label: '银行机构名称'
  },
  {
    field: 'a010006',
    label: '支付行号'
  },
  {
    field: 'a010007',
    label: '机构类型'
  },
  {
    field: 'a010008',
    label: '机构类别'
  },
  {
    field: 'a010009',
    label: '县域机构标识'
  },
  {
    field: 'a010010',
    label: '科技支行标识'
  },
  {
    field: 'a010011',
    label: '科技特色支行标识'
  },
  {
    field: 'a010012',
    label: '科技金融专营机构标识'
  },
  {
    field: 'a010013',
    label: '行政区划'
  },
  {
    field: 'a010014',
    label: '运营状态'
  },
  {
    field: 'a010015',
    label: '成立日期'
  },
  {
    field: 'a010016',
    label: '机构地址'
  },
  {
    field: 'a010017',
    label: '负责人姓名'
  },
  {
    field: 'a010018',
    label: '负责人工号'
  },
  {
    field: 'a010019',
    label: '负责人联系电话'
  },
  {
    field: 'a010020',
    label: '采集日期'
  }
])

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

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