import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    name: 'FinanceDashboard',
    path: '/dashboard-finance',
    alias: ['/finance/dashboard'],
    component: () => import('#/views/finance/dashboard/index.vue'),
    meta: {
      affixTab: true,
      icon: 'mdi:chart-box',
      order: 1,
      title: '📊 财务仪表板',
    },
  },
  {
    name: 'FinanceTransactions',
    path: '/transactions',
    alias: ['/finance/transactions'],
    component: () => import('#/views/finance/transactions/index.vue'),
    meta: {
      icon: 'mdi:swap-horizontal',
      order: 2,
      title: '💰 交易管理',
    },
  },
  {
    name: 'FinanceAccounts',
    path: '/accounts',
    alias: ['/finance/accounts'],
    component: () => import('#/views/finance/accounts/index.vue'),
    meta: {
      icon: 'mdi:account-multiple',
      order: 3,
      title: '🏦 账户管理',
    },
  },
  {
    name: 'FinanceCategories',
    path: '/categories',
    alias: ['/finance/categories'],
    component: () => import('#/views/finance/categories/index.vue'),
    meta: {
      icon: 'mdi:tag-multiple',
      order: 4,
      title: '🏷️ 分类管理',
    },
  },
  {
    name: 'FinanceBudgets',
    path: '/budgets',
    alias: ['/finance/budgets'],
    component: () => import('#/views/finance/budgets/index.vue'),
    meta: {
      icon: 'mdi:target',
      order: 5,
      title: '🎯 预算管理',
    },
  },
  {
    name: 'FinanceStatistics',
    path: '/statistics',
    alias: ['/finance/statistics'],
    component: () => import('#/views/finance/statistics/index.vue'),
    meta: {
      icon: 'mdi:chart-box-outline',
      order: 6,
      title: '📊 财务统计',
    },
  },
  {
    name: 'FinanceReports',
    path: '/reports',
    alias: ['/finance/reports'],
    component: () => import('#/views/finance/reports/index.vue'),
    meta: {
      icon: 'mdi:chart-line',
      order: 7,
      title: '📈 报表分析',
    },
  },
  {
    name: 'FinanceReimbursement',
    path: '/reimbursement',
    alias: ['/finance/reimbursement'],
    component: () => import('#/views/finance/reimbursement/index.vue'),
    meta: {
      icon: 'mdi:file-document-outline',
      order: 8,
      title: '💼 报销管理',
    },
  },
  {
    name: 'ReimbursementDetail',
    path: '/reimbursement/detail/:id',
    component: () => import('#/views/finance/reimbursement/detail.vue'),
    meta: {
      hideInMenu: true,
      icon: 'mdi:file-document',
      title: '报销详情',
    },
  },
  {
    name: 'ReimbursementCreate',
    path: '/reimbursement/create',
    component: () => import('#/views/finance/reimbursement/create.vue'),
    meta: {
      hideInMenu: true,
      icon: 'mdi:plus-circle',
      title: '创建报销单',
    },
  },
  {
    name: 'ReimbursementApproval',
    path: '/reimbursement/approval',
    component: () => import('#/views/finance/reimbursement/approval.vue'),
    meta: {
      icon: 'mdi:checkbox-marked-circle-outline',
      order: 9,
      title: '📋 待审批',
    },
  },
  {
    name: 'ReimbursementStatistics',
    path: '/reimbursement/statistics',
    component: () => import('#/views/finance/reimbursement/statistics.vue'),
    meta: {
      icon: 'mdi:chart-bar',
      order: 10,
      title: '📊 报销统计',
    },
  },
  {
    name: 'FinanceTools',
    path: '/tools',
    alias: ['/finance/tools'],
    component: () => import('#/views/finance/tools/index.vue'),
    meta: {
      icon: 'mdi:tools',
      order: 11,
      title: '🛠️ 财务工具',
    },
  },
  {
    name: 'FinanceMedia',
    path: '/media',
    alias: ['/finance/media'],
    component: () => import('#/views/finance/media/index.vue'),
    meta: {
      icon: 'mdi:folder-multiple-image',
      order: 12,
      title: '🖼️ 媒体中心',
    },
  },
  {
    name: 'FinanceSettings',
    path: '/fin-settings',
    alias: ['/finance/settings'],
    component: () => import('#/views/finance/settings/index.vue'),
    meta: {
      icon: 'mdi:cog',
      order: 13,
      title: '⚙️ 系统设置',
    },
  },
];

export default routes;
