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

const routes: RouteRecordRaw[] = [
  {
    path: '/mes',
    name: 'MesCenter',
    meta: {
      title: 'MES 制造执行',
      icon: 'lucide:factory',
      keepAlive: true,
      hideInMenu: true,
    },
    children: [
      {
        path: 'pro/task/gantt-edit',
        name: 'MesProTaskGanttEdit',
        meta: {
          title: '甘特图编辑',
          activePath: '/mes/pro/task',
        },
        component: () => import('#/views/mes/pro/task/edit/index.vue'),
      },
      {
        path: 'pd/project/detail/:id',
        name: 'MesPdProjectDetail',
        meta: {
          title: '设计任务详情',
          activePath: '/mes/pd/project',
        },
        component: () => import('#/views/mes/pd/project/detail/index.vue'),
      },
    ],
  },
];

export default routes;
