refactor(scrap): 报废管理子菜单按业务流排序

顺序调整为:报废申请 → 按单报废 → 报废记录 → 报废审批。

侧边栏由 layout/components/Sidebar/index.vue 的 v-for="child in
route.children" 直接按路由数组顺序渲染,无排序逻辑,故仅需调整数组元素。
原「按单报废执行」标题缩短为「按单报废」(四字,与同级菜单一致)。

注:父菜单 redirect 仍指向 /scrap/index(报废记录),与出库模块
redirect 指向「出库记录」的既有惯例保持一致,未改动。
This commit is contained in:
yueli
2026-09-10 11:33:01 +08:00
parent 1aa31334b1
commit 3cadd42338

View File

@ -252,22 +252,22 @@ const routes: Array<RouteRecordRaw> = [
redirect: '/scrap/index', redirect: '/scrap/index',
children: [ children: [
{ {
path: 'index', path: 'apply',
name: 'ScrapList', name: 'ScrapApply',
component: () => import('@/views/operation/scrap/index.vue'), component: () => import('@/views/operation/scrap/apply/index.vue'),
meta: { title: '报废记录' } meta: { title: '报废申请' }
}, },
{ {
path: 'create', path: 'create',
name: 'ScrapCreate', name: 'ScrapCreate',
component: () => import('@/views/operation/scrap/create.vue'), component: () => import('@/views/operation/scrap/create.vue'),
meta: { title: '按单报废执行' } meta: { title: '按单报废' }
}, },
{ {
path: 'apply', path: 'index',
name: 'ScrapApply', name: 'ScrapList',
component: () => import('@/views/operation/scrap/apply/index.vue'), component: () => import('@/views/operation/scrap/index.vue'),
meta: { title: '报废申请' } meta: { title: '报废记录' }
}, },
{ {
path: 'approval', path: 'approval',