| | |
| | | // prem: "sys:user:query", |
| | | // }, |
| | | { |
| | | icon: "/static/icons/user.png", |
| | | icon: "/static/icons/production.png", |
| | | title: "生产管理", |
| | | url: "/pages/production/index", |
| | | show: false, |
| | |
| | | // show: false, |
| | | // }, |
| | | { |
| | | icon: "/static/icons/routingInspection.png", |
| | | icon: "/static/icons/inspection.png", |
| | | title: "巡检", |
| | | url: "/pages/routingInspection/index", |
| | | show: false, |
| | | }, |
| | | { |
| | | icon: "/static/icons/log.png", |
| | | icon: "/static/icons/outbound.png", |
| | | title: "出库", |
| | | url: "/pages/outbound/index", |
| | | show: false, |
| | | }, |
| | | { |
| | | icon: "/static/icons/log.png", |
| | | icon: "/static/icons/inventoryOperation.png", |
| | | title: "库存操作", |
| | | url: "/pages/production/inventory/index", |
| | | show: false, |
| | | }, |
| | | { |
| | | icon: "/static/icons/timely.png", |
| | | title: "时效", |
| | | url: "/pages/timely/index", |
| | | show: false, |
| | |
| | | const canAccessTimely = deviceGroupName.includes("时效") || isAdmin.value; |
| | | const productionNav = navList.find((item) => item.url === "/pages/production/index"); |
| | | const timelyNav = navList.find((item) => item.url === "/pages/timely/index"); |
| | | // 库存操作(成品拆盘 / 绞线复绕):权限与「生产管理」一致 |
| | | const inventoryNav = navList.find( |
| | | (item) => item.url === "/pages/production/inventory/index" |
| | | ); |
| | | if (productionNav) productionNav.show = canAccessProduction; |
| | | if (timelyNav) timelyNav.show = canAccessTimely; |
| | | if (inventoryNav) { |
| | | inventoryNav.show = canAccessProduction; |
| | | } |
| | | console.log("isInspector.value", isInspector.value); |
| | | if (isInspector.value || isAdmin.value) { |
| | | // 如果是巡检员,显示巡检菜单 |