/**
 * SYS 系统设置
 * admin 系统用户
 * erp 供应链管理
 *    basic 基础信息管理
 *    bill  单据管理
 * crm crm会员管理
 * franchisee 加盟商
 * srd 店铺管理
 **/
export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        name: '系统登录',
        path: '/user/login',
        component: './user/login',
        access: 'k1',
      },
    ],
  },
  {
    name: '系统管理',
    icon: 'SettingOutlined',
    path: '/sys',
    routes: [
      {
        name: '系统菜单',
        icon: 'smile',
        path: '/sys/menus',
        component: './sys/menus',
        access: 'k6',
      },
      // {
      //   name: '字典信息',
      //   icon: 'smile',
      //   path: '/sys/dictionary/dictdata',
      //   component: './sys/dictionary/dictdata',
      //   access: 'k6',
      // },
      {
        name: '字典类型',
        icon: 'smile',
        path: '/sys/dictionary/dicttype',
        component: './sys/dictionary/dicttype',
        access: 'k6',
      },
      // {
      //   name: '操作日志',
      //   icon: 'smile',
      //   path: '/sys/log',
      //   component: './sys/log',
      //   access: 'k3',
      // },
      // {
      //   name: '错误日志',
      //   icon: 'smile',
      //   path: '/sys/log',
      //   component: './sys/log',
      //   access: 'k3',
      // },
      
    ],
  },
  {
    name: '加盟商管理',
    icon: 'SettingOutlined',
    path: '/company',
    routes: [
      {
        name: '账号管理',
        icon: 'smile',
        path: '/company/account',
        component: './company/account',
        access: 'k2',
      },
    ]
  },
  {
    name: '组织管理',
    icon: 'SettingOutlined',
    path: '/org',
    routes: [
      {
        name: '机构管理',
        icon: 'smile',
        path: '/org/orgamange',
        component: './org/orgamange',
        access: 'k2',
      },
      {
        name: '角色管理',
        icon: 'smile',
        path: '/org/roles',
        component: './org/roles',
        access: 'k5',
      },
      {
        name: '用户账号管理',
        icon: 'smile',
        path: '/org/users',
        component: './org/users',
        access: 'k5',
      },
    ]
  },
  {
    name: '元数据管理',
    icon: 'DropboxSquareFilled',
    path: '/database',
    routes: [
      {
        name: '物料管理',
        icon: 'smile',
        path: '/database/basic/batching',
        component: './database/basic/batching',
        access: 'k7',
      },
     
      {
        name: '商品管理',
        icon: 'smile',
        path: '/database',
        routes: [
          {
            name: '商品类型',
            icon: 'smile',
            path: '/database/goods/goodstypemanage',
            component: './database/goods/goodstypemanage',
            access: 'k7',
          },
          {
            name: '商品多属性',
            icon: 'smile',
            path: '/database/goods/goodsattribute',
            component: './database/goods/goodsattribute',
            access: 'k7',
          },
          {
            name: '商品基础信息',
            icon: 'smile',
            path: '/database/goods/newgoods',
            component: './database/goods/newgoods',
            access: 'k7',
          },
          {
            name: '添加商品基础信息',
            icon: 'smile',
            path: '/database/goods/goodsInfo',
            component: './database/goods/goodsInfo',
            access: 'k7',
          },
        ]
      },
    ],
  },

  {
    name: '设备管理',
    icon: 'BankFilled',
    path: '/device',
    routes: [
      {
        name: '产品管理',
        icon: 'smile',
        path: '/device/product',
        component: './device/product',
        access: 'k12',
      },
      {
        name: '设备信息',
        icon: 'smile',
        path: '/device/deviceInfo',
        component: './device/deviceInfo',
        access: 'k14',
      },
      {
        name: '版本管理',
        icon: 'smile',
        path: '/device/deviceVesion',
        component: './device/deviceVesion',
        access: 'k14',
      },
      {
        name: '产品功能',
        icon: 'smile',
        path: '/device/productmanage',
        component: './device/productmanage',
        access: 'k14',
      },
      // {
      //   name: '设备工艺信息',
      //   icon: 'smile',
      //   path: '/device/devicetechnology',
      //   component: './device/devicetechnology',
      //   access: 'k9',
      // },
      // {
      //   name: '设备商品管理',
      //   icon: 'smile',
      //   path: '/device/deviceFood',
      //   component: './device/deviceFood',
      //   access: 'k14',
      // },
    ],
  },
  {
    name: '场景管理',
    icon: 'BankFilled',
    path: '/scene',
    routes: [
      {
        name: '场景基础信息',
        icon: 'smile',
        path: '/scene/store',
        component: './scene/store',
        access: 'k12',
      },
      {
        name: '场景菜谱信息',
        icon: 'smile',
        path: '/scene/foodmenu',
        component: './scene/foodmenu',
        access: 'k14',
      },
    ],
  },
  {
    name: '订单管理',
    icon: 'BankFilled',
    path: '/order',
    routes: [
      {
        name: '订单流水',
        icon: 'smile',
        path: '/order/orderflow',
        component: './order/orderflow',
        access: 'k12',
      },
      {
        name: '订单授权',
        icon: 'smile',
        path: '/order/thirdAuthorize',
        component: './order/thirdAuthorize',
        access: 'k12',
      },
      {
        name: '第三方订单',
        icon: 'smile',
        path: '/order/thirdOrder',
        component: './order/thirdOrder',
        access: 'k12',
      },
    ],
  },
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    path: '/welcome',
    name: 'welcome',
    icon: 'smile',
    component: './Welcome',
  },

  //什么都不要想404直接放最后
  {
    component: './404',
  },
];
