import Vue from 'vue'
import Router from 'vue-router'

import routerBefore from '@/config/routerBefore.js'
// 主要
import main from '@/components/main.vue'
// 系统配置管理
import addqueueFCancel from '../components/qmsEnFacotory/addqueueFCancel.vue'
import addqueueFJumpLine from '../components/qmsEnFacotory/addqueueFJumpLine.vue'
import addqueueFTransfer from '../components/qmsEnFacotory/addqueueFTransfer.vue'
import queueFApply from '../components/qmsEnFacotory/queueFApply.vue'
import queueFCancel from '../components/qmsEnFacotory/queueFCancel.vue'
import queueFDetails from '../components/qmsEnFacotory/queueFDetails.vue'
import queueFEnd from '../components/qmsEnFacotory/queueFEnd.vue'
import queueFInstructionReceive from '../components/qmsEnFacotory/queueFInstructionReceive.vue'
import queueFIssue from '../components/qmsEnFacotory/queueFIssue.vue'
import queueFJumpLine from '../components/qmsEnFacotory/queueFJumpLine.vue'
import queueFListMonitor from '../components/qmsEnFacotory/queueFListMonitor.vue'
import queueFStart from '../components/qmsEnFacotory/queueFStart.vue'
import queueFTransfer from '../components/qmsEnFacotory/queueFTransfer.vue'
import queueFTruckMonitor from '../components/qmsEnFacotory/queueFTruckMonitor.vue'
import addqueueWTransfer from '../components/qmsWarehouse/addqueueWTransfer.vue'
import queueWApply from '../components/qmsWarehouse/queueWApply.vue'
import queueWDetails from '../components/qmsWarehouse/queueWDetails.vue'
import queueWEnd from '../components/qmsWarehouse/queueWEnd.vue'
import queueWInstructionReceive from '../components/qmsWarehouse/queueWInstructionReceive.vue'
import queueWIssue from '../components/qmsWarehouse/queueWIssue.vue'
import queueWListMonitor from '../components/qmsWarehouse/queueWListMonitor.vue'
import queueWStart from '../components/qmsWarehouse/queueWStart.vue'
import queueWTransfer from '../components/qmsWarehouse/queueWTransfer.vue'
import queueWTruckMonitor from '../components/qmsWarehouse/queueWTruckMonitor.vue'
Vue.use(Router)
const constantRouterMap = [
	{
	  path: '/',
	  name: 'main',
	  meta: {title: '首页', code: 'xtpzgl'},
	  component: main,
	  redirect: {name: 'addqueueFCancel'},
	  children: [
		{path: 'addqueueFCancel', name: 'addqueueFCancel', meta: {code: 'xtpzgl-jggl'}, component: addqueueFCancel},
		{path: 'addqueueFJumpLine', name: 'addqueueFJumpLine', meta: {code: 'xtpzgl-yhgl'}, component: addqueueFJumpLine},
		{path: 'addqueueFTransfer', name: 'addqueueFTransfer', meta: {code: 'xtpzgl-yhgl'}, component: addqueueFTransfer},
		{path: 'queueFApply', name: 'queueFApply', meta: {code: 'xtpzgl-yhgl'}, component: queueFApply},
		{path: 'queueFCancel', name: 'queueFCancel', meta: {code: 'xtpzgl-yhgl'}, component: queueFCancel},
		{path: 'queueFDetails', name: 'queueFDetails', meta: {code: 'xtpzgl-yhgl'}, component: queueFDetails},
		{path: 'queueFEnd', name: 'queueFEnd', meta: {code: 'xtpzgl-yhgl'}, component: queueFEnd},
		{path: 'queueFInstructionReceive', name: 'queueFInstructionReceive', meta: {code: 'xtpzgl-yhgl'}, component: queueFInstructionReceive},
		{path: 'queueFIssue', name: 'queueFIssue', meta: {code: 'xtpzgl-yhgl'}, component: queueFIssue},
		{path: 'queueFJumpLine', name: 'queueFJumpLine', meta: {code: 'xtpzgl-yhgl'}, component: queueFJumpLine},
		{path: 'queueFListMonitor', name: 'queueFListMonitor', meta: {code: 'xtpzgl-yhgl'}, component: queueFListMonitor},
		{path: 'queueFStart', name: 'queueFStart', meta: {code: 'xtpzgl-yhgl'}, component: queueFStart},
		{path: 'queueFTransfer', name: 'queueFTransfer', meta: {code: 'xtpzgl-yhgl'}, component: queueFTransfer},
		{path: 'queueFTruckMonitor', name: 'queueFTruckMonitor', meta: {code: 'xtpzgl-yhgl'}, component: queueFTruckMonitor},
		{path: 'addqueueWTransfer', name: 'addqueueWTransfer', meta: {code: 'xtpzgl-yhgl'}, component: addqueueWTransfer},
		{path: 'queueWApply', name: 'queueWApply', meta: {code: 'xtpzgl-yhgl'}, component: queueWApply},
		{path: 'queueWDetails', name: 'queueWDetails', meta: {code: 'xtpzgl-yhgl'}, component: queueWDetails},
		{path: 'queueWEnd', name: 'queueWEnd', meta: {code: 'xtpzgl-yhgl'}, component: queueWEnd},
		{path: 'queueWInstructionReceive', name: 'queueWInstructionReceive', meta: {code: 'xtpzgl-yhgl'}, component: queueWInstructionReceive},
		{path: 'queueWIssue', name: 'queueWIssue', meta: {code: 'xtpzgl-yhgl'}, component: queueWIssue},
		{path: 'queueWListMonitor', name: 'queueWListMonitor', meta: {code: 'xtpzgl-yhgl'}, component: queueWListMonitor},
		{path: 'queueWStart', name: 'queueWStart', meta: {code: 'xtpzgl-yhgl'}, component: queueWStart},
		{path: 'queueWTransfer', name: 'queueWTransfer', meta: {code: 'xtpzgl-yhgl'}, component: queueWTransfer},
		{path: 'queueWTruckMonitor', name: 'queueWTruckMonitor', meta: {code: 'xtpzgl-yhgl'}, component: queueWTruckMonitor},
	  ]
	}
  ];
  
  const router = new Router({
	routes: constantRouterMap
  })
  //  before
  routerBefore(router, constantRouterMap);
  
  export default router;
  //  constantRouterMap
  export const routes = constantRouterMap;
  