

import BasicLayout from '@/layouts/basic-layout';
import Setting from "@/setting";

const pre = 'staff_';

export default {
    path: `${Setting.routePre}/staff/`,
    name: 'staff',
    header: 'staff',
    meta: {
        // 授权标识
        auth: ['store-staff']
    },
    redirect: {
        name: `${pre}clerkList`
    },
    component: BasicLayout,
    children: [
        {
            path: 'index',
            name: `${pre}clerkList`,
            meta: {
                auth: ['store-staff-index'],
                title: '店员列表'
            },
            component: () => import('@/pages/staff/clerkList')
        },
        {
            path: 'statistics',
            name: `${pre}achievement`,
            meta: {
                auth: ['store-staff-statistics'],
                title: '业绩统计'
            },
            component: () => import('@/pages/staff/achievement')
        },
		{
		    path: `${Setting.routePre}/delivery/index`,
		    name: `${pre}deliveryClerk`,
		    meta: {
		        auth: ['store-delivery-index'],
		        title: '配送员列表'
		    },
		    component: () => import('@/pages/staff/deliveryClerk')
		},
		{
		    path: `${Setting.routePre}/delivery/statistics`,
		    name: `${pre}statistics`,
		    meta: {
		        auth: ['store-delivery-statistics'],
		        title: '账单统计'
		    },
		    component: () => import('@/pages/staff/bill')
		},
    ]
};
