wanshenmean
2026-02-09 ae9517420d848e215a9eb807270d5ef6fbe92ae9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
import type { RouteRecordRaw } from 'vue-router';
 
export const routes: RouteRecordRaw[] = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/login/index.vue'),
    meta: {
      title: '登录',
      requiresAuth: false,
    },
  },
  {
    path: '/',
    name: 'Layout',
    component: () => import('../layouts/BasicLayout.vue'),
    redirect: '/dashboard',
    meta: {
      requiresAuth: true,
    },
    children: [
      {
        path: '/dashboard',
        name: 'Dashboard',
        component: () => import('../views/dashboard/index.vue'),
        meta: {
          title: '首页',
          icon: 'HomeOutlined',
        },
      },
      // 系统管理
      {
        path: '/system',
        name: 'System',
        meta: {
          title: '系统管理',
          icon: 'SettingOutlined',
        },
        children: [
          {
            path: '/system/user',
            name: 'SystemUser',
            component: () => import('../views/system/user/index.vue'),
            meta: {
              title: '用户管理',
              icon: 'UserOutlined',
            },
          },
          {
            path: '/system/role',
            name: 'SystemRole',
            component: () => import('../views/system/role/index.vue'),
            meta: {
              title: '角色管理',
              icon: 'TeamOutlined',
            },
          },
          {
            path: '/system/menu',
            name: 'SystemMenu',
            component: () => import('../views/system/menu/index.vue'),
            meta: {
              title: '菜单管理',
              icon: 'MenuOutlined',
            },
          },
        ],
      },
      // 基础信息
      {
        path: '/basic',
        name: 'Basic',
        meta: {
          title: '基础信息',
          icon: 'DatabaseOutlined',
        },
        children: [
          {
            path: '/basic/warehouse',
            name: 'BasicWarehouse',
            component: () => import('../views/basic/warehouse/index.vue'),
            meta: {
              title: '仓库管理',
              icon: 'ShopOutlined',
            },
          },
          {
            path: '/basic/location',
            name: 'BasicLocation',
            component: () => import('../views/basic/location/index.vue'),
            meta: {
              title: '货位管理',
              icon: 'AppstoreOutlined',
            },
          },
          {
            path: '/basic/materiel',
            name: 'BasicMateriel',
            component: () => import('../views/basic/materiel/index.vue'),
            meta: {
              title: '物料管理',
              icon: 'InboxOutlined',
            },
          },
        ],
      },
      // 入库管理
      {
        path: '/inbound',
        name: 'Inbound',
        meta: {
          title: '入库管理',
          icon: 'ImportOutlined',
        },
        children: [
          {
            path: '/inbound/order',
            name: 'InboundOrder',
            component: () => import('../views/inbound/order/index.vue'),
            meta: {
              title: '入库单管理',
              icon: 'FileTextOutlined',
            },
          },
        ],
      },
      // 出库管理
      {
        path: '/outbound',
        name: 'Outbound',
        meta: {
          title: '出库管理',
          icon: 'ExportOutlined',
        },
        children: [
          {
            path: '/outbound/order',
            name: 'OutboundOrder',
            component: () => import('../views/outbound/order/index.vue'),
            meta: {
              title: '出库单管理',
              icon: 'FileTextOutlined',
            },
          },
        ],
      },
      // 库存管理
      {
        path: '/stock',
        name: 'Stock',
        meta: {
          title: '库存管理',
          icon: 'ContainerOutlined',
        },
        children: [
          {
            path: '/stock/info',
            name: 'StockInfo',
            component: () => import('../views/stock/info/index.vue'),
            meta: {
              title: '库存信息',
              icon: 'UnorderedListOutlined',
            },
          },
        ],
      },
      // 盘点管理
      {
        path: '/check',
        name: 'Check',
        meta: {
          title: '盘点管理',
          icon: 'AuditOutlined',
        },
        children: [
          {
            path: '/check/order',
            name: 'CheckOrder',
            component: () => import('../views/check/order/index.vue'),
            meta: {
              title: '盘点单管理',
              icon: 'FileTextOutlined',
            },
          },
        ],
      },
      // 任务管理
      {
        path: '/task',
        name: 'Task',
        meta: {
          title: '任务管理',
          icon: 'CarryOutOutlined',
        },
        children: [
          {
            path: '/task/info',
            name: 'TaskInfo',
            component: () => import('../views/task/info/index.vue'),
            meta: {
              title: '任务信息',
              icon: 'UnorderedListOutlined',
            },
          },
        ],
      },
    ],
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'NotFound',
    component: () => import('../views/error/404.vue'),
    meta: {
      title: '404',
      requiresAuth: false,
    },
  },
];