From 3cadd423382798928ea490fcff4f304bc1e37028 Mon Sep 17 00:00:00 2001 From: yueli Date: Thu, 10 Sep 2026 11:33:01 +0800 Subject: [PATCH] =?UTF-8?q?refactor(scrap):=20=E6=8A=A5=E5=BA=9F=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=AD=90=E8=8F=9C=E5=8D=95=E6=8C=89=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E6=B5=81=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 顺序调整为:报废申请 → 按单报废 → 报废记录 → 报废审批。 侧边栏由 layout/components/Sidebar/index.vue 的 v-for="child in route.children" 直接按路由数组顺序渲染,无排序逻辑,故仅需调整数组元素。 原「按单报废执行」标题缩短为「按单报废」(四字,与同级菜单一致)。 注:父菜单 redirect 仍指向 /scrap/index(报废记录),与出库模块 redirect 指向「出库记录」的既有惯例保持一致,未改动。 --- inventory-web/src/router/index.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/inventory-web/src/router/index.ts b/inventory-web/src/router/index.ts index 2257144..a3ad2ed 100644 --- a/inventory-web/src/router/index.ts +++ b/inventory-web/src/router/index.ts @@ -252,22 +252,22 @@ const routes: Array = [ redirect: '/scrap/index', children: [ { - path: 'index', - name: 'ScrapList', - component: () => import('@/views/operation/scrap/index.vue'), - meta: { title: '报废记录' } + path: 'apply', + name: 'ScrapApply', + component: () => import('@/views/operation/scrap/apply/index.vue'), + meta: { title: '报废申请' } }, { path: 'create', name: 'ScrapCreate', component: () => import('@/views/operation/scrap/create.vue'), - meta: { title: '按单报废执行' } + meta: { title: '按单报废' } }, { - path: 'apply', - name: 'ScrapApply', - component: () => import('@/views/operation/scrap/apply/index.vue'), - meta: { title: '报废申请' } + path: 'index', + name: 'ScrapList', + component: () => import('@/views/operation/scrap/index.vue'), + meta: { title: '报废记录' } }, { path: 'approval',