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

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

export const RECEIPT_RECORD_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '奖品名称',
    prop: 'itemName',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '出库日期',
    prop: 'outboundDate',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '取出数量',
    prop: 'outboundQuantity',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '结余数量',
    prop: 'remainingQuantity',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '单号',
    prop: 'receiptNumber',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '部门',
    prop: 'department',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '领取人',
    prop: 'recipient',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '状态',
    prop: 'status',
    slot: 'status',
    align: 'center',
    minWidth: '100px',
  },
  {
    label: '操作',
    prop: 'action',
    slot: 'action',
    fixed: 'right',
    width: '250px',
    align: 'left',
  },
];
export const ADMIN_RECEIPT_RECORD_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '奖品名称',
    prop: 'itemName',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '出库日期',
    prop: 'outboundDate',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '取出数量',
    prop: 'outboundQuantity',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '结余数量',
    prop: 'remainingQuantity',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '单号',
    prop: 'receiptNumber',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '部门',
    prop: 'department',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '领取人',
    prop: 'recipient',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '状态',
    prop: 'status',
    slot: 'status',
    align: 'center',
    minWidth: '100px',
  },
  {
    label: '操作',
    prop: 'action',
    slot: 'action',
    fixed: 'right',
    width: '180px',
    align: 'left',
  },
];
