refactor: extract scrap to top-level menu and rebuild create UI using immersive scanner layout
This commit is contained in:
@ -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: '新建报废' }
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user