// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import Layout from '@/layout'
import { roterPre } from '@/settings'
const orderRouter =
  {
    path: `${roterPre}/order`,
    name: 'order',
    meta: {
      icon: 'dashboard',
      title: '订单'
    },
    alwaysShow: true,
    component: Layout,
    redirect: `${roterPre}/order`,
    children: [
      {
        path: 'list',
        name: 'OrderList',
        meta: {
          title: '订单管理'
        },
        component: () => import('@/views/order/list/index')
      },
      {
        path: 'refund',
        name: 'OrderRefund',
        meta: {
          title: '退款单'
        },
        component: () => import('@/views/order/refund/index')
      },
      {
        path: 'cancellation',
        name: 'OrderCancellation',
        meta: {
          title: '核销订单'
        },
        component: () => import('@/views/order/orderCancellate/index')
      },
      {
        path: 'release',
        name: 'OrderRelease',
        meta: {
          title: '释放订单'
        },
        component: () => import('@/views/order/release/index')
      },
      {
        path: 'healthy',
        name: 'HealthyRelease',
        meta: {
          title: '健康订单'
        },
        component: () => import('@/views/order/healthy/index')
      },
      {
        path: 'purchase',
        name: 'OrderPurchase',
        meta: {
          title: '采购审核'
        },
        component: () => import('@/views/order/purchase/index')
      },
      {
        path: 'technology',
        name: 'OrderTechnology',
        meta: {
          title: '技术审核'
        },
        component: () => import('@/views/order/technology/index')
      },
      {
        path: 'accounting',
        name: 'OrderAccounting',
        meta: {
          title: '会计审核'
        },
        component: () => import('@/views/order/accounting/index')
      }
    ]
  }

export default orderRouter
