138 lines
3.9 KiB
JavaScript
138 lines
3.9 KiB
JavaScript
import { RouterView } from 'vue-router';
|
|
|
|
const zoneCard = {
|
|
name: 'ZoneCard',
|
|
path: ':id',
|
|
component: () => import('src/pages/Zone/Card/ZoneCard.vue'),
|
|
redirect: { name: 'ZoneSummary' },
|
|
meta: {
|
|
menu: [
|
|
'ZoneBasicData',
|
|
'ZoneWarehouses',
|
|
'ZoneHistory',
|
|
'ZoneLocations',
|
|
'ZoneEvents',
|
|
],
|
|
},
|
|
children: [
|
|
{
|
|
name: 'ZoneSummary',
|
|
path: 'summary',
|
|
meta: {
|
|
title: 'summary',
|
|
icon: 'launch',
|
|
},
|
|
component: () => import('src/pages/Zone/Card/ZoneSummary.vue'),
|
|
},
|
|
{
|
|
path: 'basic-data',
|
|
name: 'ZoneBasicData',
|
|
meta: {
|
|
title: 'basicData',
|
|
icon: 'vn:settings',
|
|
},
|
|
component: () => import('src/pages/Zone/Card/ZoneBasicData.vue'),
|
|
},
|
|
{
|
|
path: 'location',
|
|
name: 'ZoneLocations',
|
|
meta: {
|
|
title: 'locations',
|
|
icon: 'my_location',
|
|
},
|
|
component: () => import('src/pages/Zone/Card/ZoneLocations.vue'),
|
|
},
|
|
{
|
|
path: 'warehouses',
|
|
name: 'ZoneWarehouses',
|
|
meta: {
|
|
title: 'warehouses',
|
|
icon: 'home',
|
|
},
|
|
component: () => import('src/pages/Zone/Card/ZoneWarehouses.vue'),
|
|
},
|
|
{
|
|
path: 'log',
|
|
name: 'ZoneHistory',
|
|
meta: {
|
|
title: 'log',
|
|
icon: 'history',
|
|
},
|
|
component: () => import('src/pages/Zone/Card/ZoneLog.vue'),
|
|
},
|
|
{
|
|
path: 'events',
|
|
name: 'ZoneEvents',
|
|
meta: {
|
|
title: 'calendar',
|
|
icon: 'vn:calendar',
|
|
},
|
|
component: () => import('src/pages/Zone/Card/ZoneEvents.vue'),
|
|
},
|
|
],
|
|
};
|
|
|
|
export default {
|
|
name: 'Zone',
|
|
path: '/zone',
|
|
meta: {
|
|
title: 'zones',
|
|
icon: 'vn:zone',
|
|
moduleName: 'Zone',
|
|
keyBinding: 'z',
|
|
menu: [
|
|
'ZoneList',
|
|
'ZoneDeliveryDays',
|
|
'ZoneUpcomingList',
|
|
'ZoneUpcomingDeliveries',
|
|
],
|
|
},
|
|
component: RouterView,
|
|
redirect: { name: 'ZoneMain' },
|
|
children: [
|
|
{
|
|
name: 'ZoneMain',
|
|
path: '',
|
|
component: () => import('src/components/common/VnModule.vue'),
|
|
redirect: { name: 'ZoneIndexMain' },
|
|
children: [
|
|
{
|
|
path: '',
|
|
name: 'ZoneIndexMain',
|
|
redirect: { name: 'ZoneList' },
|
|
component: () => import('src/pages/Zone/ZoneList.vue'),
|
|
children: [
|
|
{
|
|
name: 'ZoneList',
|
|
path: 'list',
|
|
meta: {
|
|
title: 'list',
|
|
icon: 'view_list',
|
|
},
|
|
},
|
|
zoneCard,
|
|
],
|
|
},
|
|
{
|
|
path: 'delivery-days',
|
|
name: 'ZoneDeliveryDays',
|
|
meta: {
|
|
title: 'deliveryDays',
|
|
icon: 'vn:calendar',
|
|
},
|
|
component: () => import('src/pages/Zone/ZoneDeliveryDays.vue'),
|
|
},
|
|
{
|
|
name: 'ZoneUpcomingDeliveries',
|
|
path: 'upcoming-deliveries',
|
|
meta: {
|
|
title: 'upcomingDeliveries',
|
|
icon: 'vn:calendar',
|
|
},
|
|
component: () => import('src/pages/Zone/ZoneUpcoming.vue'),
|
|
},
|
|
],
|
|
},
|
|
],
|
|
};
|