| | |
| | | // 动态路由,基于用户权限动态去加载 |
| | | export const dynamicRoutes = [ |
| | | { |
| | | // 原材料下单 |
| | | // 原辅料下单 |
| | | path: "/materialOrder", |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ["business:order"], |
| | | children: [ |
| | | { |
| | | // 原材料下单 |
| | | // 原辅料下单 |
| | | path: "customsInspection", |
| | | component: () => |
| | | import("@/views/business/materialOrder/customsInspection"), |
| | | name: "CustomsInspection", |
| | | meta: { |
| | | title: "原材料下单详情", |
| | | title: "原辅料下单详情", |
| | | activeMenu: "/business/materialOrder", |
| | | keepAlive: true |
| | | keepAlive: true, |
| | | }, |
| | | }, |
| | | { |
| | |
| | | path: "copperOrder", |
| | | component: () => import("@/views/business/materialOrder/copperOrder"), |
| | | name: "CopperOrder", |
| | | meta: { title: "铜材料下单", activeMenu: "/business/materialOrder",keepAlive: true }, |
| | | meta: { |
| | | title: "铜材料下单", |
| | | activeMenu: "/business/materialOrder", |
| | | keepAlive: true, |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | component: () => |
| | | import("@/views/business/productOrder/components/add.vue"), |
| | | name: "Add", |
| | | meta: { title: "成品下单详情", activeMenu: "/business/productOrder",keepAlive: true }, |
| | | meta: { |
| | | title: "成品下单详情", |
| | | activeMenu: "/business/productOrder", |
| | | keepAlive: true, |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | path: "inspection", |
| | | component: () => import("@/views/business/inspectionTask/inspection"), |
| | | name: "inspection", |
| | | meta: { title: "检验单详情", activeMenu: "/business/inspectionTask", keepAlive: false }, |
| | | meta: { |
| | | title: "检验单详情", |
| | | activeMenu: "/business/inspectionTask", |
| | | keepAlive: false, |
| | | }, |
| | | }, |
| | | ], |
| | | }, |