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

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

export const INVENTORY_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '编号',
    type: 'index',
    align: 'center',
    width: '80px',
  },
  {
    label: '申请单号',
    prop: 'applyNo',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '工号',
    prop: 'applicantCode',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '姓名',
    prop: 'applicantName',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '所属部门',
    prop: 'departmentName',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '受伤原因',
    prop: 'injuryReason',
    align: 'left',
    minWidth: '150px',
  },
  {
    label: '受伤时间',
    prop: 'injuryTime',
    align: 'left',
    minWidth: '150px',
  },
  {
    label: '工伤类别',
    prop: 'injuryCategoryName',
    slot: 'injuryCategoryCode',
  },
  // {
  //   label: '备注',
  //   prop: 'remark',
  //   align: 'left',
  //   minWidth: '150px',
  // },
  {
    label: '状态',
    prop: 'status',
    slot: 'status',
    align: 'center',
    minWidth: '100px',
  },
  {
    label: '操作',
    prop: 'action',
    slot: 'action',
    fixed: 'right',
    width: '180px',
    align: 'left',
  },
];
