refactor: extract scrap to top-level menu and rebuild create UI using immersive scanner layout

This commit is contained in:
DXC
2026-03-12 13:00:09 +08:00
parent c482aa3ba7
commit 3afcf1434c
2 changed files with 508 additions and 7 deletions

View File

@ -148,7 +148,7 @@ const routes: Array<RouteRecordRaw> = [
]
},
// 6. 业务操作
// 6. 借库管理
{
path: '/operation',
component: Layout,
@ -172,18 +172,27 @@ const routes: Array<RouteRecordRaw> = [
name: 'OpRecords',
component: () => import('@/views/transaction/records.vue'),
meta: { title: '借还记录' }
},
// ★ [新增] 报废管理
}
]
},
// 6.1 报废管理 (独立一级菜单)
{
path: '/scrap',
component: Layout,
meta: { title: '报废管理', icon: 'Delete' },
redirect: '/scrap/index',
children: [
{
path: 'scrap/index',
path: 'index',
name: 'ScrapList',
component: () => import('@/views/operation/scrap/index.vue'), // ✅ 正确路径
component: () => import('@/views/operation/scrap/index.vue'),
meta: { title: '报废记录' }
},
{
path: 'scrap/create',
path: 'create',
name: 'ScrapCreate',
component: () => import('@/views/operation/scrap/create.vue'), // ✅ 正确路径
component: () => import('@/views/operation/scrap/create.vue'),
meta: { title: '新建报废' }
}
]