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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'custCode',
    label: '客户号'
  },
  {
    field: 'createOrgancode',
    label: '创建机构'
  },
  {
    field: 'createReason',
    label: '创建原因'
  },
  {
    field: 'opBy',
    label: '操作员'
  },
  {
    field: 'opDate',
    label: '操作日期'
  },
  {
    field: 'unlockStatus',
    label: '解除状态'
  },
  {
    field: 'unlockReason',
    label: '解除原因'
  },
  {
    field: 'unlockBy',
    label: '解除人'
  },
  {
    field: 'unlockDate',
    label: '解除日期'
  },
  {
    field: 'statusNo',
    label: '状态'
  },
  {
    field: 'custName',
    label: '客户名称'
  },
  {
    field: 'custType',
    label: '客户类型'
  }
])

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

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