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

export const ACTIVITY_REGISTRATION_TARGET_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '考核表名称',
    prop: 'evaluationTableName',
    align: 'left',
    minWidth: '150px',
  },
  {
    label: '状态',
    prop: 'status',
    slot: 'status',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '下发部门',
    prop: 'issueDepartment',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '部门负责人',
    prop: 'departmentLeader',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '联系方式',
    prop: 'contactPhone',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '考核文档',
    prop: 'evaluationDocument',
    slot: 'evaluationDocument',
    align: 'left',
    minWidth: '150px',
  },
  {
    label: '计划完成时间',
    prop: 'plannedCompletionTime',
    align: 'left',
    minWidth: '150px',
  },
  {
    label: '操作',
    // prop: 'action',
    slot: 'action',
    fixed: 'right',
    minWidth: '300px',
    align: 'left',
  },
];

// 先进集体排名表格列
export const ACTIVITY_REGISTRATION_ADVANCED_GROUP_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '编号',
    type: 'index',
    align: 'center',
    width: '80px',
  },
  {
    label: '部门名称',
    prop: 'departmentName',
    align: 'left',
    minWidth: '150px',
  },
  {
    label: '是否先进集体',
    prop: 'isAdvancedGroup',
    slot: 'isAdvancedGroup',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '部门排序',
    prop: 'departmentSort',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '部门负责人',
    prop: 'departmentLeader',
    align: 'left',
    minWidth: '140px',
  },
  {
    label: '基础分',
    prop: 'baseScore',
    align: 'center',
    minWidth: '100px',
  },
  {
    label: '总分数',
    prop: 'totalScore',
    align: 'center',
    minWidth: '100px',
  },
  {
    label: '加分项分数',
    prop: 'addScore',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '减分项分数',
    prop: 'subtractScore',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '操作',
    slot: 'action',
    fixed: 'right',
    minWidth: '100px',
    align: 'left',
  },
];

// 先进个人信息表格列（部门端）
export const ACTIVITY_REGISTRATION_ADVANCED_PERSON_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '编号',
    type: 'index',
    align: 'left',
    width: '80px',
  },
  {
    label: '员工工号',
    prop: 'employeeId',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '员工姓名',
    prop: 'employeeName',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '员工联系方式',
    prop: 'employeeContact',
    align: 'left',
    minWidth: '140px',
  },
  {
    label: '所属部门',
    prop: 'deptName',
    align: 'left',
    minWidth: '150px',
  },
  // {
  //   label: '部门负责人',
  //   prop: 'departmentLeader',
  //   align: 'left',
  //   minWidth: '140px',
  // },
  {
    label: '先进个人描述',
    prop: 'remark',
    align: 'left',
    minWidth: '160px',
  },
  {
    label: '上报日期',
    prop: 'createdAt',
    align: 'left',
    minWidth: '150px',
  },
  {
    label: '操作',
    slot: 'action',
    fixed: 'right',
    minWidth: '150px',
    align: 'left',
  },
];