/**
 * 业务表单组件统一导出
 * 
 * 这里包含所有业务类型的表单组件：
 * - 报销申请
 * - 采购申请
 * - 请假申请
 * - 合同审批
 * 
 * 每个业务类型包含三类组件：
 * 1. *-form.tsx: 表单编辑组件（用于提交页）
 * 2. *-view.tsx: 表单展示组件（用于审批详情页，只读）
 * 3. *-stats.tsx: 统计展示组件（用于数据管理页）
 */

// 报销申请（待实现）
// export * from './expense';

// 采购申请（待实现）
// export * from './purchase';

// 请假申请（待实现）
// export * from './leave';

// 合同审批（待实现）
// export * from './contract';

/**
 * 业务表单类型枚举
 */
export enum BusinessFormType {
  EXPENSE = 'expense',
  PURCHASE = 'purchase',
  LEAVE = 'leave',
  CONTRACT = 'contract',
}

/**
 * 业务表单配置
 */
export interface BusinessFormConfig {
  type: BusinessFormType;
  name: string;
  nameEn: string;
  icon: string;
  color: string;
}

/**
 * 业务表单配置映射
 */
export const BUSINESS_FORM_CONFIGS: Record<BusinessFormType, BusinessFormConfig> = {
  [BusinessFormType.EXPENSE]: {
    type: BusinessFormType.EXPENSE,
    name: '报销申请',
    nameEn: 'Expense',
    icon: '💰',
    color: '#52c41a',
  },
  [BusinessFormType.PURCHASE]: {
    type: BusinessFormType.PURCHASE,
    name: '采购申请',
    nameEn: 'Purchase',
    icon: '🛒',
    color: '#faad14',
  },
  [BusinessFormType.LEAVE]: {
    type: BusinessFormType.LEAVE,
    name: '请假申请',
    nameEn: 'Leave',
    icon: '🏖️',
    color: '#13c2c2',
  },
  [BusinessFormType.CONTRACT]: {
    type: BusinessFormType.CONTRACT,
    name: '合同审批',
    nameEn: 'Contract',
    icon: '📄',
    color: '#722ed1',
  },
};

