diff --git a/inventory-web/src/router/index.ts b/inventory-web/src/router/index.ts index 00cf5cf..c0ee141 100644 --- a/inventory-web/src/router/index.ts +++ b/inventory-web/src/router/index.ts @@ -148,7 +148,7 @@ const routes: Array = [ ] }, - // 6. 业务操作 + // 6. 借库管理 { path: '/operation', component: Layout, @@ -172,18 +172,27 @@ const routes: Array = [ 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: '新建报废' } } ] diff --git a/inventory-web/src/views/operation/scrap/create.vue b/inventory-web/src/views/operation/scrap/create.vue new file mode 100644 index 0000000..caf83e3 --- /dev/null +++ b/inventory-web/src/views/operation/scrap/create.vue @@ -0,0 +1,492 @@ + + + + +