//销售管理路由模块
const home = r => require.ensure([], () => r(require('@/views/Home.vue')), 'Home'); //主页

export default [
    /* 销售管理 */
	{
		path: '/',
		component: home,
		name: '销售管理',
		hidden: false,
		icon_path: require('@/assets/img/home/saller_ico.png'),
		children: [
            {
				path: "sellerStatisticSeller",
				name: "销售路演统计",
				component: () => import('@/views/roadshow_manage/statistics/seller.vue')
			},
			{
				path: "sellerSpecialSeller",
				name: "专项路演统计",
				component: () => import('@/views/roadshow_manage/statistics/specialSeller.vue')
			},
			{
				path: 'sellerStatisticNewcustom',
				component: () => import('@/views/dataReport_manage/statistic/newCustom.vue'),
				name: '新增客户统计',
				hidden: false
			},
			{
				path: 'sellerStatisticStockcustom',
				component: () => import('@/views/dataReport_manage/statistic/stockCustom.vue'),
				name: '存量客户统计',
				hidden: false
			},
			{
				path: 'sellerStatisticContractcustom',
				component: () => import('@/views/dataReport_manage/statistic/contractCustom.vue'),
				name: '续约客户统计',
				hidden: false
			},
			{
				path: 'newCustomlist',
				component: () => import('@/views/dataReport_manage/statistic/newCustomlist.vue'),
				name: '新增客户列表',
				meta: {
					pathFrom: 'sellerStatisticNewcustom',
					pathName: '新增客户统计'
				},
				hidden: true
			},
			{
				path: 'contractCustomlist',
				component: () => import('@/views/dataReport_manage/statistic/newCustomlist.vue'),
				name: '续约客户列表',
				meta: {
					pathFrom: 'sellerStatisticContractcustom',
					pathName: '续约客户统计'
				},
				hidden: true
			},
			{
				path: 'sellerTodoTask',
				component: () => import('@/views/dataReport_manage/statistic/todoTask.vue'),
				name: '销售To Do统计',
				hidden: false
			},
			{
				path: 'todoTaskList',
				component: () => import('@/views/dataReport_manage/statistic/todoTaskList.vue'),
				name: '客户任务列表',
				meta: {
					pathFrom: 'sellerTodoTask',
					pathName: '销售To Do统计'
				},
				hidden: true
			},
			{
				path: 'undoneTaskList',
				/* component: () => import('@/views/dataReport_manage/statistic/undoneTaskList.vue'), */
				component: () => import('@/views/dataReport_manage/statistic/todoTaskList.vue'),
				name: '未完成任务列表',
				meta: {
					pathFrom: 'sellerTodoTask',
					pathName: '销售To Do统计'
				},
				hidden: true
			},
			{
				path: 'doingTaskList',
				component: () => import('@/views/dataReport_manage/statistic/todoTaskList.vue'),
				name: '进行中任务列表',
				meta: {
					pathFrom: 'sellerTodoTask',
					pathName: '销售To Do统计'
				},
				hidden: true
			},
			{
				path: 'tryList',
				component: () => import('@/views/dataReport_manage/statistic/newCustomlist.vue'),
				name: '试用客户列表',
				meta: {
					pathFrom: 'sellerTodoTask',
					pathName: '销售To Do统计'
				},
				hidden: true
			},
			{
				path:"ficcProductStatistic",
				component: () => import('@/views/dataReport_manage/statistic/ficcProduct.vue'),
				name: '分产品阅读统计',
				hidden: false
			},
			{
				path: 'ficcProductlist',
				component: () => import('@/views/dataReport_manage/statistic/ficcProductList.vue'),
				name: '分产品阅读客户列表',
				meta: {
					pathFrom: 'ficcProductStatistic',
					pathName: '分产品阅读统计'
				},
				hidden: true
			},
			{
				path:"receiveCompanyPermission",
				name: '添加客户权限',
				component: () => import('@/views/custom_manage/saleAuthManage.vue'),
				hidden: false,
			},
			{
				path:"abnormalRenewal",
				name: '续约异常统计',
				component: () => import('@/views/dataReport_manage/statistic/abnormalRenewal.vue'),
				hidden: false,
			},
			{
				path: 'abnormalRenewalCustomlist',
				component: () => import('@/views/dataReport_manage/statistic/newCustomlist.vue'),
				name: '续约异常客户列表',
				meta: {
					pathFrom: 'abnormalRenewal',
					pathName: '续约异常统计' 
				},
				hidden: true
			},
		]
	},
]