101 lines
3.2 KiB
JavaScript
101 lines
3.2 KiB
JavaScript
import { RouterView } from 'vue-router';
|
|
|
|
export default {
|
|
name: 'Claim',
|
|
path: '/claim',
|
|
meta: {
|
|
title: 'claims',
|
|
icon: 'vn:claims',
|
|
},
|
|
component: RouterView,
|
|
redirect: { name: 'ClaimMain' },
|
|
menus: {
|
|
main: ['ClaimList', 'ClaimRmaList'],
|
|
card: ['ClaimBasicData', 'ClaimRma', 'ClaimPhotos', 'ClaimLog'],
|
|
},
|
|
children: [
|
|
{
|
|
name: 'ClaimMain',
|
|
path: '',
|
|
component: () => import('src/pages/Claim/ClaimMain.vue'),
|
|
redirect: { name: 'ClaimList' },
|
|
children: [
|
|
{
|
|
name: 'ClaimList',
|
|
path: 'list',
|
|
meta: {
|
|
title: 'list',
|
|
icon: 'view_list',
|
|
},
|
|
component: () => import('src/pages/Claim/ClaimList.vue'),
|
|
},
|
|
{
|
|
name: 'ClaimRmaList',
|
|
path: 'rma',
|
|
meta: {
|
|
title: 'rmaList',
|
|
icon: 'vn:barcode',
|
|
roles: ['claimManager'],
|
|
},
|
|
component: () => import('src/pages/Claim/ClaimRmaList.vue'),
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'ClaimCard',
|
|
path: ':id',
|
|
component: () => import('src/pages/Claim/Card/ClaimCard.vue'),
|
|
redirect: { name: 'ClaimSummary' },
|
|
children: [
|
|
{
|
|
name: 'ClaimSummary',
|
|
path: 'summary',
|
|
meta: {
|
|
title: 'summary',
|
|
icon: 'launch',
|
|
},
|
|
component: () => import('src/pages/Claim/Card/ClaimSummary.vue'),
|
|
},
|
|
{
|
|
name: 'ClaimBasicData',
|
|
path: 'basic-data',
|
|
meta: {
|
|
title: 'basicData',
|
|
icon: 'vn:settings',
|
|
roles: ['salesPerson'],
|
|
},
|
|
component: () => import('src/pages/Claim/Card/ClaimBasicData.vue'),
|
|
},
|
|
{
|
|
name: 'ClaimRma',
|
|
path: 'rma',
|
|
meta: {
|
|
title: 'rma',
|
|
icon: 'vn:barcode',
|
|
roles: ['claimManager'],
|
|
},
|
|
component: () => import('src/pages/Claim/Card/ClaimRma.vue'),
|
|
},
|
|
{
|
|
name: 'ClaimPhotos',
|
|
path: 'photos',
|
|
meta: {
|
|
title: 'photos',
|
|
icon: 'image',
|
|
},
|
|
component: () => import('src/pages/Claim/Card/ClaimPhoto.vue'),
|
|
},
|
|
{
|
|
name: 'ClaimLog',
|
|
path: 'log',
|
|
meta: {
|
|
title: 'log',
|
|
icon: 'history',
|
|
},
|
|
component: () => import('src/pages/Claim/Card/ClaimLog.vue'),
|
|
},
|
|
],
|
|
},
|
|
],
|
|
};
|