/*
 * @Author: liuJie
 * @Date: 2026-01-28 11:03:32
 * @LastEditors: liuJie
 * @LastEditTime: 2026-03-01 20:07:59
 * @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 VIEW_SENDER_WORK_PLAN_STATUS_OPTIONS = [
  { label: '全部', value: '' },
  { 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: '200px',
  },
  {
    label: '培训计划名称',
    prop: 'trainingPlanName',
    align: 'left',
    minWidth: '200px',
    showOverflowTooltip: true,
  },
  {
    label: '责任部门',
    prop: 'responsibleDeptNames',
    align: 'left',
    minWidth: '200px',
  },
  {
    label: '配合部门',
    prop: 'cooperateDeptNames',
    align: 'left',
    minWidth: '200px',
  },
  {
    label: '下发数',
    prop: 'issuedCount',
    minWidth: '150px',
    slot: 'issuedCount',
  },
  {
    label: '反馈数',
    minWidth: '150px',
    prop: 'feedbackCount',
    slot: 'feedbackCount',
  },
  {
    label: '反馈比例',
    prop: 'feedbackRatio',
    minWidth: '150px',
    slot: 'feedbackRatio',
  },
  {
    label: '计划完成时间',
    prop: 'plannedEndTime',
    minWidth: '150px',
    slot: 'plannedEndTime',
  },
  {
    label: '操作',
    prop: 'action',
    slot: 'action',
    fixed: 'right',
    width: '280px',
    align: 'left',
  },
];

// 查看发送对象列表
export const VIEW_SENDS_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: 'executGroupNames',
    align: 'left',
    minWidth: '130px',
  },
  {
    label: '下发责任人',
    prop: 'employeeName',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '计划完成时间',
    prop: 'plannedEndTime',
    align: 'left',
    minWidth: '160px',
  },
  {
    label: '操作',
    prop: 'action',
    slot: 'action',
    fixed: 'right',
    width: '280px',
    align: 'left',
  },
];
