From c1c67ae4aa54d8eda1e2e4dd58f289899fe514a4 Mon Sep 17 00:00:00 2001 From: DXC Date: Thu, 19 Mar 2026 16:27:33 +0800 Subject: [PATCH] refactor: extract stocktake and adjustment routes into a standalone top-level menu category --- inventory-web/src/router/index.ts | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/inventory-web/src/router/index.ts b/inventory-web/src/router/index.ts index 43a9f16..c234bf1 100644 --- a/inventory-web/src/router/index.ts +++ b/inventory-web/src/router/index.ts @@ -92,20 +92,28 @@ const routes: Array = [ name: 'InventorySummary', component: () => import('@/views/stock/inbound/inbound_summary.vue'), meta: { title: '入库记录' } - }, - // ★ [新增] 库存盘点页面 (查库/消除) + } + ] + }, + + // 4.1 盘点管理 (独立顶级菜单) + { + path: '/stocktake', + component: Layout, + redirect: '/stocktake/operation', + meta: { title: '盘点管理', icon: 'DataBoard' }, + children: [ { - path: 'stocktake', + path: 'operation', name: 'InventoryStocktake', component: () => import('@/views/stock/stocktake/index.vue'), - meta: { title: '库存盘点' } + meta: { title: '盲盘作业' } }, - // ★ [新增] 盘盈盘亏管理页面 { path: 'adjustment', name: 'StockAdjustment', component: () => import('@/views/stock/adjustment/index.vue'), - meta: { title: '盘盈盘亏管理' } + meta: { title: '盈亏调整' } } ] },