/**
 * 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/bom',
        component: './database/bom',
        access: 'k7',
      },
      {
        name: '物料管理',
        icon: 'smile',
        path: '/database/basic/batching',
        component: './database/basic/batching',
        access: 'k7',
      },
      {
        name: '配方管理',
        icon: 'smile',
        path: '/database/bom',
        component: './database/bom',
        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: 'smile',
            path: '/database/goods/goodsbom',
            component: './database/goods/goodsbom',
            access: 'k7',
          },
          {
            name: '商品工艺',
            icon: 'smile',
            path: '/database/goods/goodstechnology',
            component: './database/goods/goodstechnology',
            access: 'k7',
          },
          {
            name: '商品属性配置',
            icon: 'smile',
            path: '/database/goods/goodsattributeprice',
            component: './database/goods/goodsattributeprice',
            access: 'k7',
          },
          {
            name: '商品能量配置',
            icon: 'smile',
            path: '/database/goods/energyconfig',
            component: './database/goods/energyconfig',
            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/warehousepostion',
        component: './device/warehousepostion',
        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/technology',
        component: './device/technology',
        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: '/push',
    routes: [
      {
        name: '商品数据下发',
        icon: 'smile',
        path: '/push/goodspush',
        component: './push/goodspush',
        access: 'k12',
      },
      {
        name: '工艺数据下发',
        icon: 'smile',
        path: '/push/technologypush',
        component: './push/technologypush',
        access: 'k14',
      },
      {
        name: '物料数据下发',
        icon: 'smile',
        path: '/push/batchingpush',
        component: './push/batchingpush',
        access: 'k14',
      },
      {
        name: '配方数据下发',
        icon: 'smile',
        path: '/push/bompush',
        component: './push/bompush',
        access: 'k14',
      },
    ],
  },
  {
    path: '/groupMeal/shop',
    icon: 'SettingOutlined',
    name: '团餐场景管理',
    routes: [
      {
        name: '会员信息',
        icon: 'smile',
        path: '/groupMeal/shop',
        component: './groupMeal/shop',
      }]
  },
  {
    name: '团餐会员管理',
    icon: 'BankFilled',
    path: '/groupMeal/member',
    routes: [
      {
        name: '会员信息',
        icon: 'smile',
        path: '/groupMeal/member/memberInfo',
        component: './groupMeal/member/memberInfo',
      },
      {
        name: '会员标签',
        icon: 'smile',
        path: '/groupMeal/member/membertag',
        component: './groupMeal/member/membertag',
      },
    ]},
  {
    name: '团餐一卡通管理',
    icon: 'BankFilled',
    path: '/groupMeal/oneCard',
    routes: [
      {
        name: '档口管理',
        icon: 'smile',
        path: '/groupMeal/oneCard/gate',
        component: './groupMeal/oneCard/gate',
      },
      {
        name: '刷卡机管理',
        icon: 'smile',
        path: '/groupMeal/oneCard/machine',
        component: './groupMeal/oneCard/machine',
      },
      {
        name: '储值卡管理',
        icon: 'smile',
        path: '/groupMeal/oneCard/storedValueCard',
        component: './groupMeal/oneCard/storedValueCard',
      },
      {
        name: '账号管理',
        icon: 'smile',
        path: '/groupMeal/oneCard/memberAccount',
        component: './groupMeal/oneCard/memberAccount',
      },
      {
        name: '报表统计',
        icon: 'BankFilled',
        path: '/groupMeal/oneCard/ReportStatistics',
        routes: [
          {
            name: '用餐汇总表',
            icon: 'smile',
            path: '/groupMeal/oneCard/ReportStatistics/reservation',
            component: './groupMeal/oneCard/ReportStatistics/reservation',
          },
          {
            name: '计次就餐天消费',
            icon: 'smile',
            path: '/groupMeal/oneCard/ReportStatistics/dayConsumption',
            component: './groupMeal/oneCard/ReportStatistics/dayConsumption',
          },
          {
            name: '月餐段汇总',
            icon: 'smile',
            path: '/groupMeal/oneCard/ReportStatistics/monthSummary',
            component: './groupMeal/oneCard/ReportStatistics/monthSummary',
          },
          {
            name: '月餐段消费',
            icon: 'smile',
            path: '/groupMeal/oneCard/ReportStatistics/monthTimeSlot',
            component: './groupMeal/oneCard/ReportStatistics/monthTimeSlot',
          },
        ],
      },
    ],
  },
  {
    name: '团餐小程序管理',
    icon: 'BankFilled',
    path: 'applet',
    routes: [
      {
        name: '页面管理',
        icon: 'smile',
        path: '/applet/paytemplate',
        component: './applet/paytemplate',
      },
      {
        name: '素材管理',
        icon: 'smile',
        path: '/applet/basicconfiguration',
        component: './applet/basicconfiguration',
      },
      {
        name: '小程序基础配置',
        icon: 'smile',
        path: '/applet/appidmanager',
        routes: [
          {
            name: '支付配置',
            icon: 'smile',
            path: '/applet/appidmanager/payment',
            component: './applet/appidmanager/payment',
          },
          {
            name: 'APPID',
            icon: 'smile',
            path: '/applet/appidmanager/appid',
            component: './applet/appidmanager/appid',
          },
        ],
      },
    ],
  },
  {
    name: '订单管理',
    icon: 'BankFilled',
    path: '/order',
    routes: [
      {
        name: '称重订单',
        icon: 'smile',
        path: '/order/weighOrder',
        component: './order/weighOrder',
      },
      {
        name: '订单流水',
        icon: 'smile',
        path: '/order/orderflow',
        component: './order/orderflow',
      },
      {
        name: '第三方订单',
        icon: 'smile',
        path: '/order/thirdOrder',
        component: './order/thirdOrder',
      },
      {
        name: '授权管理',
        icon: 'smile',
        path: '/order/thirdAuthorize',
        component: './order/thirdAuthorize',
      },
    ],
  },
  {
    name: '产盘管理',
    icon: 'BankFilled',
    path: '/groupMeal/diningPlate',
    routes: [
      {
        name: '产盘管理',
        icon: 'smile',
        path: '/groupMeal/diningPlate',
        component: './groupMeal/diningPlate',
      },
    ],
  },
  {
    name: '授权管理',
    icon: 'BankFilled',
    path: '/authorization',
    routes: [
      {
        name: '平台授权',
        icon: 'smile',
        path: '/authorization/platformAuthorization',
        component: './authorization/platformAuthorization',
        access: 'k12',
      },
      {
        name: '店铺授权',
        icon: 'smile',
        path: '/authorization/storeAuthorization',
        component: './authorization/storeAuthorization',
        access: 'k12',
      }
    ],
  },
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    path: '/welcome',
    name: 'welcome',
    icon: 'smile',
    component: './Welcome',
  },

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