lisenzhou 2 年 前
コミット
f43d9b9ee1
共有1 個のファイルを変更した75 個の追加37 個の削除を含む
  1. 75
    37
      src/routes/routes.jsx

+ 75
- 37
src/routes/routes.jsx ファイルの表示

@@ -1,36 +1,3 @@
1
-
2
-首页
3
-探索
4
-帮助
5
-注册
6
-登录
7
- jgz / admin
8
-关注
9
-3
10
- 
11
-点赞
12
-0
13
- 
14
-派生
15
-0
16
-代码
17
-工单
18
-0
19
-合并请求
20
-0
21
-版本发布
22
-0
23
-百科
24
-动态
25
- 55 提交
26
- 2 分支
27
- 分支: dev 
28
-admin/src/routes/routes.jsx
29
-routes.jsx 7.5KB
30
-永久链接
31
-文件历史
32
-原始文件
33
-  
34 1
 import {
35 2
   AppstoreOutlined,
36 3
   ContainerOutlined,
@@ -66,7 +33,12 @@ import RotationChartIntroduction from '@/pages/rotationChart/introduction';
66 33
 import Roles from '@/pages/roles/index';
67 34
 import UserList from '@/pages/user';
68 35
 import UserEdit from '@/pages/user/Edit';
69
-
36
+import PurchasePlanList from "@/pages/purchase/plan/list";
37
+import PurchasePlanEdit from "@/pages/purchase/plan/edit";
38
+import PurchaseBillEdit from "@/pages/purchase/bill/edit";
39
+import PurchaseInStoreEdit from "@/pages/purchase/inStore/edit";
40
+import EmergencyPlanList from "@/pages/cms/emergencyPlan/list";
41
+import EmergencyPlanEdit from "@/pages/cms/emergencyPlan/edit";
70 42
 /**
71 43
  * meta 用来扩展自定义数据数据
72 44
  * {
@@ -227,10 +199,18 @@ export const authRoutes = [
227 199
         },
228 200
       },
229 201
       {
230
-        path: 'emergency-plan',
231
-        element: null,
202
+        path: "emergency-plan",
203
+        element: <EmergencyPlanList />,
204
+        meta: {
205
+          title: "应急预案",
206
+        },
207
+      },
208
+      {
209
+        path: "emergency-plan/edit",
210
+        element: <EmergencyPlanEdit />,
232 211
         meta: {
233
-          title: '应急预案',
212
+          title: "应急预案维护",
213
+          hideInMenu: true,
234 214
         },
235 215
       },
236 216
       {
@@ -306,6 +286,64 @@ export const authRoutes = [
306 286
       }
307 287
     ],
308 288
   },
289
+  {
290
+    path: "purchase",
291
+    element: <Container />,
292
+    meta: {
293
+      title: "采购管理",
294
+    },
295
+    children: [
296
+      {
297
+        index: true,
298
+        element: <Navigate to="plan/list" replace />,
299
+      },
300
+      {
301
+        path: "plan/list",
302
+        element: <PurchasePlanList type="plan" />,
303
+        meta: {
304
+          title: "采购计划",
305
+        },
306
+      },
307
+      {
308
+        path: "plan/edit",
309
+        element: <PurchasePlanEdit />,
310
+        meta: {
311
+          title: "采购计划维护",
312
+          hideInMenu: true,
313
+        },
314
+      },
315
+      {
316
+        path: "bill/list",
317
+        element: <PurchasePlanList type="bill" />,
318
+        meta: {
319
+          title: "采购账单",
320
+        },
321
+      },
322
+      {
323
+        path: "bill/edit",
324
+        element: <PurchaseBillEdit />,
325
+        meta: {
326
+          title: "采购账单维护",
327
+          hideInMenu: true,
328
+        },
329
+      },
330
+      {
331
+        path: "inStore/list",
332
+        element: <PurchasePlanList type="inStore" />,
333
+        meta: {
334
+          title: "采购入库",
335
+        },
336
+      },
337
+      {
338
+        path: "inStore/edit",
339
+        element: <PurchaseInStoreEdit  />,
340
+        meta: {
341
+          title: "采购入库维护",
342
+          hideInMenu: true,
343
+        },
344
+      },
345
+    ],
346
+  },
309 347
 ]
310 348
 
311 349
 export const defaultRoutes = [