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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'bankco',
    label: '金融机构网点代码'
  },
  {
    field: 'bankna',
    label: '金融机构网点名称'
  },
  {
    field: 'bantyp',
    label: '行别代码'
  },
  {
    field: 'bankType',
    label: '联行类别'
  },
  {
    field: 'area',
    label: '地区代码'
  },
  {
    field: 'status',
    label: '联行状态'
  },
  {
    field: 'cnapsc',
    label: '清算行行号'
  },
  {
    field: 'rmbnkc',
    label: '所属人行代码'
  },
  {
    field: 'addres',
    label: '联系地址'
  },
  {
    field: 'tel',
    label: '联系电话'
  },
  {
    field: 'email',
    label: '电子邮件'
  },
  {
    field: 'post',
    label: '邮编'
  },
  {
    field: 'updtun',
    label: '更新序号'
  },
  {
    field: 'updtat',
    label: '更新日期'
  },
  {
    field: 'upoper',
    label: '最近更新操作'
  },
  {
    field: 'nodenu',
    label: '节点代码'
  },
  {
    field: 'usedat',
    label: '有效日期'
  },
  {
    field: 'inused',
    label: '失效日期'
  },
  {
    field: 'districts',
    label: '金融机构网点行政区划代码'
  },
  {
    field: 'lockStatus',
    label: '锁定状态'
  }
])

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

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