/*
 * @Author: liuJie
 * @Date: 2026-01-28 11:03:32
 * @LastEditors: liuJie
 * @LastEditTime: 2026-02-09 14:30:47
 * @Describe: file describe
 */
import type { TableColumnProps } from '@/types/basic-table';

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

// 状态选项
export const WORK_PLAN_STATUS_OPTIONS = [
  { label: '全部', value: '' },
  { label: '未下发', value: 1 },
  { label: '进行中', value: 2 },
  { label: '已完成', value: 3 },
  { label: '已作废', value: 4 },
];

// 状态标签映射
export const WORK_PLAN_STATUS_LABEL: Record<string, string> = {
  '1': '未下发',
  '2': '进行中',
  '3': '已完成',
  '4': '已作废',
};

export const WORK_PLAN_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '编号',
    type: 'index',
    align: 'center',
    width: '80px',
  },
  {
    label: '工作内容',
    prop: 'workContent',
    align: 'left',
    minWidth: '150px',
    showOverflowTooltip: true,
  },
  {
    label: '状态',
    prop: 'statusName',
    align: 'center',
    minWidth: '100px',
  },
  {
    label: '分类名称',
    prop: 'categoryName',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '培训计划名称',
    prop: 'trainingPlanName',
    align: 'left',
    minWidth: '150px',
    showOverflowTooltip: true,
  },
  {
    label: '责任部门',
    prop: 'responsibleDeptNames',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '配合部门',
    prop: 'cooperateDeptNames',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '计划完成时间',
    prop: 'plannedComplateTime',
    align: 'left',
    minWidth: '160px',
  },
  {
    label: '操作',
    prop: 'action',
    slot: 'action',
    fixed: 'right',
    width: '280px',
    align: 'left',
  },
];
