/**
 * 审批管理表格配置
 */
import type { TableColumnProps } from '@/types/basic-table';

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

export const NODE_TABLE_OPTIONS = {
  emptyText: '暂无数据',
  loading: true,
  height: 'calc(70vh - 220px)',
};

export const APPROVAL_TABLE_COLUMNS: TableColumnProps[] = [
  {
    prop: 'id',
    label: '序号',
    align: 'center',
    width: '150px',
  },
  {
    prop: 'templateName',
    label: '审批流程名称',
    minWidth: '200px',
    align: 'center',
  },
  {
    prop: 'description',
    label: '审批流程描述',
    align: 'center',
    minWidth: '800px',
  },
  {
    prop: 'action',
    label: '操作',
    slot: 'action',
    fixed: 'right',
    width: '200px',
    align: 'center',
  },
];

export const APPROVAL_NODE_TABLE_COLUMNS: TableColumnProps[] = [
  {
    prop: 'approvalOrder',
    label: '审批顺序',
    width: '100px',
    align: 'center',
  },
  {
    prop: 'nodeDescription',
    label: '节点描述',
    minWidth: '200px',
    align: 'center',
  },
  {
    prop: 'approverType',
    label: '审批人选择方式',
    width: '100px',
    align: 'center',
    slot: 'approverType',
  },
  {
    prop: 'approverNameList',
    label: '审批人',
    align: 'center',
  },
  {
    prop: 'approvalType',
    label: '审批方式',
    width: '100px',
    align: 'center',
    slot: 'approvalType',
  },
  {
    prop: 'action',
    label: '操作',
    slot: 'action',
    fixed: 'right',
    width: '200px',
    align: 'center',
  },
];
