|
@@ -29,48 +29,51 @@ export const asyncRouterMap = [
|
|
{
|
|
{
|
|
path: '/home',
|
|
path: '/home',
|
|
name: 'home',
|
|
name: 'home',
|
|
- component: () => import( '@/views/Home'),
|
|
+ redirect: '/home',
|
|
|
|
+ name: 'home',
|
|
|
|
+ component: BlankLayout,
|
|
meta: {
|
|
meta: {
|
|
title: '首页',
|
|
title: '首页',
|
|
icon: 'home',
|
|
icon: 'home',
|
|
- hide: true
|
|
+ hidden: true
|
|
- }
|
|
+ },
|
|
|
|
+ hideChildrenInMenu: true,
|
|
|
|
+ children:[
|
|
|
|
+ {
|
|
|
|
+ path: '/home',
|
|
|
|
+ name: 'home',
|
|
|
|
+ component: () => import( '@/views/Home'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: '首页',
|
|
|
|
+ icon: 'home',
|
|
|
|
+ hidden: true
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/changePwd',
|
|
|
|
+ name: 'changePwd',
|
|
|
|
+ component: () => import( '@/views/user/ChangePwd'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: '修改密码',
|
|
|
|
+ icon: 'home'
|
|
|
|
+ },
|
|
|
|
+ hidden: true
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ {
|
|
|
|
+ path: '/notice',
|
|
|
|
+ name: 'notice',
|
|
|
|
+ component: () => import( '@/views/notice/list'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: '公告',
|
|
|
|
+ icon: 'bell',
|
|
|
|
+ hidden: true
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
- {
|
|
|
|
- path: '/changePwd',
|
|
|
|
- name: 'changePwd',
|
|
|
|
- component: () => import( '@/views/user/ChangePwd'),
|
|
|
|
- meta: {
|
|
|
|
- title: '修改密码',
|
|
|
|
- icon: 'home'
|
|
|
|
- },
|
|
|
|
- hidden: true
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- {
|
|
|
|
- path: '/newProduct/list/:onlineFalg',
|
|
|
|
- name: 'newProductList',
|
|
|
|
- component: () => import( '@/views/productManagement/newProduct/list'),
|
|
|
|
- meta: {
|
|
|
|
- title: '新品信息',
|
|
|
|
- icon: 'home'
|
|
|
|
- },
|
|
|
|
- hidden: true
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- {
|
|
|
|
- path: '/viewProduct/:sn',
|
|
|
|
- name: 'viewProduct',
|
|
|
|
- component: () => import( '@/views/productManagement/newProduct/detail'),
|
|
|
|
- meta: {
|
|
|
|
- title: '产品详情',
|
|
|
|
- icon: 'home',
|
|
|
|
- replaceTab: true
|
|
|
|
- },
|
|
|
|
- hidden: true
|
|
|
|
- },
|
|
|
|
|
|
|
|
{
|
|
{
|
|
path: '/numsGoodsShelves',
|
|
path: '/numsGoodsShelves',
|
|
@@ -524,6 +527,7 @@ export const asyncRouterMap = [
|
|
title: '采购单详情',
|
|
title: '采购单详情',
|
|
icon: 'money-collect',
|
|
icon: 'money-collect',
|
|
hidden: true,
|
|
hidden: true,
|
|
|
|
+ replaceTab: true,
|
|
permission: 'B_purchaseDetail'
|
|
permission: 'B_purchaseDetail'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1276,23 +1280,51 @@ export const asyncRouterMap = [
|
|
},
|
|
},
|
|
{
|
|
{
|
|
path: '/inventoryManagement/inventoryWarning',
|
|
path: '/inventoryManagement/inventoryWarning',
|
|
- name: 'inventoryWarningList',
|
|
+ name: 'inventoryWarning',
|
|
- component: () => import( '@/views/inventoryManagement/inventoryWarning/list.vue'),
|
|
+ redirect: '/inventoryManagement/inventoryWarning/list',
|
|
|
|
+ component: BlankLayout,
|
|
meta: {
|
|
meta: {
|
|
title: '库存预警',
|
|
title: '库存预警',
|
|
icon: 'alert',
|
|
icon: 'alert',
|
|
permission: 'M_inventoryWarningList'
|
|
permission: 'M_inventoryWarningList'
|
|
- }
|
|
+ },
|
|
|
|
+ hideChildrenInMenu: true,
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ path: 'list',
|
|
|
|
+ name: 'inventoryWarningList',
|
|
|
|
+ component: () => import( '@/views/inventoryManagement/inventoryWarning/list.vue'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: '库存预警',
|
|
|
|
+ icon: 'alert',
|
|
|
|
+ permission: 'M_inventoryWarningList'
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
path: '/inventoryManagement/satelliteWarehouseInventory',
|
|
path: '/inventoryManagement/satelliteWarehouseInventory',
|
|
- name: 'satelliteWarehouseInventoryList',
|
|
+ name: 'satelliteWarehouseInventory',
|
|
- component: () => import( '@/views/inventoryManagement/satelliteWarehouseInventory/list.vue'),
|
|
+ redirect: '/inventoryManagement/satelliteWarehouseInventory/list',
|
|
|
|
+ component: BlankLayout,
|
|
meta: {
|
|
meta: {
|
|
title: '卫星仓库存',
|
|
title: '卫星仓库存',
|
|
icon: 'flag',
|
|
icon: 'flag',
|
|
permission: 'M_satelliteWarehouseInventoryList'
|
|
permission: 'M_satelliteWarehouseInventoryList'
|
|
- }
|
|
+ },
|
|
|
|
+ hideChildrenInMenu: true,
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ path: 'list',
|
|
|
|
+ name: 'satelliteWarehouseInventoryList',
|
|
|
|
+ component: () => import( '@/views/inventoryManagement/satelliteWarehouseInventory/list.vue'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: '卫星仓库存',
|
|
|
|
+ icon: 'flag',
|
|
|
|
+ permission: 'M_satelliteWarehouseInventoryList'
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
path: '/inventoryManagement/inventoryChecking',
|
|
path: '/inventoryManagement/inventoryChecking',
|
|
@@ -2088,7 +2120,7 @@ export const asyncRouterMap = [
|
|
hidden: true,
|
|
hidden: true,
|
|
permission: 'B_product_dealerProduct_edit'
|
|
permission: 'B_product_dealerProduct_edit'
|
|
}
|
|
}
|
|
- }
|
|
+ },
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -2138,7 +2170,44 @@ export const asyncRouterMap = [
|
|
hidden: true,
|
|
hidden: true,
|
|
permission: 'M_productOnlineInfoList'
|
|
permission: 'M_productOnlineInfoList'
|
|
}
|
|
}
|
|
- }
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/productManagement/newProductList',
|
|
|
|
+ redirect: '/newProduct/list/:onlineFalg',
|
|
|
|
+ name: 'newProductList',
|
|
|
|
+ component: BlankLayout,
|
|
|
|
+ meta: {
|
|
|
|
+ title: '产品信息',
|
|
|
|
+ icon: 'sketch',
|
|
|
|
+ permission: 'M_newProductList'
|
|
|
|
+ },
|
|
|
|
+ hideChildrenInMenu: true,
|
|
|
|
+ children: [
|
|
|
|
+
|
|
|
|
+ {
|
|
|
|
+ path: '/newProduct/list/:onlineFalg',
|
|
|
|
+ name: 'newProductList',
|
|
|
|
+ component: () => import( '@/views/productManagement/newProduct/list'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: '新品信息',
|
|
|
|
+ icon: 'file-text',
|
|
|
|
+ hidden: true,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ {
|
|
|
|
+ path: '/viewProduct/:sn',
|
|
|
|
+ name: 'viewProduct',
|
|
|
|
+ component: () => import( '@/views/productManagement/newProduct/detail'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: '产品详情',
|
|
|
|
+ icon: 'file-text',
|
|
|
|
+ replaceTab: true,
|
|
|
|
+ hidden: true
|
|
|
|
+ },
|
|
|
|
+ },
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -2470,82 +2539,54 @@ export const asyncRouterMap = [
|
|
children: [
|
|
children: [
|
|
{
|
|
{
|
|
path: '/auth/userList',
|
|
path: '/auth/userList',
|
|
- name: 'powerUserList',
|
|
+ name: 'powerUser',
|
|
- component: () => import( '@/views/power/user/userList.vue'),
|
|
+ redirect: '/auth/userList/list',
|
|
|
|
+ component: BlankLayout,
|
|
meta: {
|
|
meta: {
|
|
title: '用户管理',
|
|
title: '用户管理',
|
|
icon: 'user',
|
|
icon: 'user',
|
|
permission: 'M_powerMD_user_list'
|
|
permission: 'M_powerMD_user_list'
|
|
- }
|
|
+ },
|
|
|
|
+ hideChildrenInMenu: true,
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ path: 'list',
|
|
|
|
+ name: 'powerUserList',
|
|
|
|
+ component: () => import( '@/views/power/user/userList.vue'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: '用户管理',
|
|
|
|
+ icon: 'user',
|
|
|
|
+ permission: 'M_powerMD_user_list'
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
path: '/auth/roleList',
|
|
path: '/auth/roleList',
|
|
- name: 'powerRoleList',
|
|
+ name: 'powerRole',
|
|
- component: () => import( '@/views/power/role/roleList.vue'),
|
|
+ redirect: '/auth/roleList/list',
|
|
|
|
+ component: BlankLayout,
|
|
meta: {
|
|
meta: {
|
|
title: '角色管理',
|
|
title: '角色管理',
|
|
icon: 'solution',
|
|
icon: 'solution',
|
|
permission: 'M_powerMD_role_list'
|
|
permission: 'M_powerMD_role_list'
|
|
- }
|
|
+ },
|
|
|
|
+ hideChildrenInMenu: true,
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ path: 'list',
|
|
|
|
+ name: 'powerRoleList',
|
|
|
|
+ component: () => import( '@/views/power/role/roleList.vue'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: '角色管理',
|
|
|
|
+ icon: 'solution',
|
|
|
|
+ permission: 'M_powerMD_role_list'
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- {
|
|
|
|
- path: '/notice',
|
|
|
|
- name: 'notice',
|
|
|
|
- component: () => import( '@/views/notice/list'),
|
|
|
|
- meta: {
|
|
|
|
- title: '公告',
|
|
|
|
- icon: 'bell'
|
|
|
|
- },
|
|
|
|
- hidden: true
|
|
|
|
- }
|
|
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|