refactor(scrap): 报废管理子菜单按业务流排序
顺序调整为:报废申请 → 按单报废 → 报废记录 → 报废审批。 侧边栏由 layout/components/Sidebar/index.vue 的 v-for="child in route.children" 直接按路由数组顺序渲染,无排序逻辑,故仅需调整数组元素。 原「按单报废执行」标题缩短为「按单报废」(四字,与同级菜单一致)。 注:父菜单 redirect 仍指向 /scrap/index(报废记录),与出库模块 redirect 指向「出库记录」的既有惯例保持一致,未改动。
This commit is contained in:
@ -252,22 +252,22 @@ const routes: Array<RouteRecordRaw> = [
|
||||
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',
|
||||
|
||||
Reference in New Issue
Block a user