refactor: extract stocktake and adjustment routes into a standalone top-level menu category

This commit is contained in:
DXC
2026-03-19 16:27:33 +08:00
parent 53c198f363
commit c1c67ae4aa

View File

@ -92,20 +92,28 @@ const routes: Array<RouteRecordRaw> = [
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: '盈亏调整' }
}
]
},