import type { TableColumnProps } from '@/types/basic-table';

// 基础表格样式配置
export const TABLE_OPTIONS = {
  emptyText: '暂无数据',
  loading: true,
  maxHeight: 'calc(70vh - 150px)',
};

export const OUTER_PERSON_BREAK_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '序号',
    align: 'center',
    width: '80px',
    type: 'index',
  },
  {
    prop: 'eventType',
    slot: 'eventType',
    label: '事件',
    align: 'center',
    minWidth: '120px',
  },
  {
    prop: 'captureLocation',
    slot: 'captureLocation',
    label: '抓拍地点',
    align: 'left',
    minWidth: '120px',
  },
  {
    prop: 'captureTime',
    slot: 'captureTime',
    label: '抓拍时间',
    align: 'left',
    minWidth: '120px',
  },
  {
    prop: 'capturePhotos',
    slot: 'capturePhotos',
    label: '抓拍图片',
    align: 'center',
    minWidth: '120px',
  },
  {
    prop: 'dataSource',
    slot: 'dataSource',
    label: '来源',
    align: 'center',
    minWidth: '120px',
  },
];

export const OUTER_PERSON_VISITOR_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '来访者',
    align: 'left',
    minWidth: '120px',
    prop: 'visitorName',
    slot: 'visitorName',
  },
  {
    label: '身份信息',
    align: 'left',
    minWidth: '240px',
    prop: 'identityInfor',
    slot: 'identityInfor',
  },
  {
    label: '手机号码',
    align: 'left',
    minWidth: '240px',
    prop: 'mobile',
    slot: 'mobile',
  },
  {
    label: '是否外籍',
    align: 'center',
    minWidth: '120px',
    prop: 'isForeigner',
    slot: 'isForeigner',
  },
  {
    label: '单位',
    align: 'left',
    minWidth: '360px',
    prop: 'company',
    slot: 'company',
  },
  {
    label: '来访事由',
    align: 'left',
    minWidth: '120px',
    prop: 'visitReason',
    slot: 'visitReason',
  },
  {
    label: '被访人',
    align: 'left',
    minWidth: '180px',
    prop: 'respondentName',
    slot: 'respondentName',
  },
  // {
  //   label: '访问状态',
  //   align: 'center',
  //   minWidth: '120px',
  //   prop: 'visitState',
  //   slot: 'visitState',
  // },

  {
    label: '到访时间',
    align: 'left',
    minWidth: '240px',
    prop: 'visitTime',
    slot: 'visitTime',
  },
  {
    label: '离开时间',
    align: 'left',
    minWidth: '240px',
    prop: 'leaveTime',
    slot: 'leaveTime',
  },
];
