import type { AppRouteRecordRaw } from '/@/router/types';
import { t } from '/@/hooks/web/useI18n';
import { LAYOUT } from '/@/router/constant';

export const Spares: AppRouteRecordRaw = {
  path: '/work',
  name: 'Work',
  redirect: '/work/index',
  component: LAYOUT,
  meta: {
    title: '工单管理',
    icon: 'codicon:device-camera',
    orderNo: 4,
    // hideChildrenInMenu: true,
  },
  children: [
    {
      path: 'index',
      name: 'WorkIndex',
      component: () => import('/@/views/spares/list.vue'),
      meta: {
        title: '工单跟进',
        hideBreadcrumb: true,
        // icon: 'codicon:device-camera',
      },
    },{
      path: 'repairspares',
      name: 'RepairSpares',
      component: () => import('/@/views/spares/list.vue'),
      meta: {
        title: '维修备件管理',
        hideBreadcrumb: true,
        // icon: 'codicon:device-camera',
      },
    },{
      path: 'repair',
      name: 'RepairList',
      component: () => import('/@/views/spares/list.vue'),
      meta: {
        title: '维修测试',
        hideBreadcrumb: true,
        // icon: 'codicon:device-camera',
      },
    },{
      path: 'detail/:id',
      name: 'DetailIndex',
      component: () => import('/@/views/spares/detail.vue'),
      meta: {
        title: '工单详情',
        hideBreadcrumb: true,
        hideMenu: true,
        // icon: 'codicon:device-camera',
      },
    },{
      path: 'query',
      name: 'WorkQuery',
      component: () => import('/@/views/work/query.vue'),
      meta: {
        title: '工单查询',
        hideBreadcrumb: true,
        // icon: 'codicon:device-camera',
      },
    },{
      path: 'aftermarket',
      name: 'WorkAftermarket',
      component: () => import('/@/views/work/aftermarket.vue'),
      meta: {
        title: '售后工单',
        hideBreadcrumb: true,
        // icon: 'codicon:device-camera',
      },
    },
  ],
};
export default Spares;