routes.js 5.48 KB
Newer Older
wuhao's avatar
wuhao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
export default [
  {
    path: "/user",
    layout: false,
    routes: [
      {
        path: "/user",
        routes: [
          {
            name: "登录",
            path: "/user/login",
            component: "./user/Login",
          },
        ],
      },
      {
        component: "./404",
      },
    ],
  },
  {
    path: "/",
    redirect: "/welcome",
  },
  {
    path: "/welcome",
    name: "首页",
    icon: "smile",
    component: "./Welcome",
  },
wuhao's avatar
wuhao committed
31
  {
左玲玲's avatar
左玲玲 committed
32
    path: "/wms",
wuhao's avatar
wuhao committed
33 34 35 36
    name: "入库管理",
    icon: "search",
    routes: [
      {
左玲玲's avatar
左玲玲 committed
37
        path: "/wms/instore",
wuhao's avatar
wuhao committed
38 39 40 41
        name: "入库管理",
        component: "./insertstore/Instore",
      },
      {
左玲玲's avatar
左玲玲 committed
42
        path: "/wms/outstore",
wuhao's avatar
wuhao committed
43 44 45 46
        name: "出库管理",
        component: "./outsetstore/Outstore",
      },
      {
左玲玲's avatar
左玲玲 committed
47 48 49
        path: "/wms/stock",
        name: "库存查询",
        component: "./findstore/Storesearch",
wuhao's avatar
wuhao committed
50
      },
wuhao's avatar
wuhao committed
51
      {
左玲玲's avatar
左玲玲 committed
52 53
        path: "/wms/record",
        name: "出入库记录",
wuhao's avatar
wuhao committed
54 55 56 57 58 59 60
        component: "./historystore/Histore",
      },
      {
        component: "./404",
      },
    ],
  },
wuhao's avatar
wuhao committed
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
  {
    path: "/system",
    name: "系统基础管理",
    icon: "setting",
    routes: [
      {
        path: "/system",
        redirect: "/system/jiagou",
      },
      {
        path: "/system/staff",
        name: "用户管理",
        component: "./system/Staff",
      },
      {
        path: "/system/charactor",
        name: "角色管理",
        component: "./system/Charactor",
      },
      {
        path: "/system/jiagou",
        name: "组织管理",
        component: "./system/Jiagou",
      },
      {
        path: "/system/parts",
        name: "工厂管理",
        component: "./system/Parts",
      },
wuhao's avatar
wuhao committed
90

wuhao's avatar
wuhao committed
91 92 93 94 95 96 97 98 99 100
      // {
      //   path: "/system/productionline",
      //   name: "产线管理",
      //   component: "./system/Productionline",
      // },
      // {
      //   path: "/system/section",
      //   name: "工段管理",
      //   component: "./system/Section",
      // },
wuhao's avatar
wuhao committed
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
      {
        path: "/system/station",
        name: "工位管理",
        component: "./system/Station",
      },
      {
        component: "./404",
      },
    ],
  },
  {
    path: "/craft",
    name: "工艺设置",
    icon: "setting",
    routes: [
      {
        path: "/craft",
        redirect: "/craft/process",
      },
      {
        path: "/craft/process",
        name: "工序管理",
        component: "./craft/Process",
      },
      {
        path: "/craft/gongyi",
        name: "工艺路线",
        component: "./craft/Gongyi",
      },
wuhao's avatar
wuhao committed
130

wuhao's avatar
wuhao committed
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
      {
        path: "/craft/gather",
        name: "采集站点",
        component: "./craft/Gather",
      },
      {
        component: "./404",
      },
    ],
  },
  {
    path: "/platform",
    name: "系统管理",
    icon: "desktop",
    routes: [
      {
        path: "/platform",
        redirect: "/platform/dic",
      },
      {
        path: "/platform/dic",
        name: "数据字典",
        component: "./platform/Dic",
      },
      {
        path: "/platform/specialset",
        name: "特殊配置",
        component: "./platform/Specialset",
      },
wuhao's avatar
wuhao committed
160
      {
wuhao's avatar
wuhao committed
161
        path: "/platform/msgoption",
wuhao's avatar
wuhao committed
162 163 164 165
        name: "推送配置",
        component: "./platform/Sendset",
      },
      {
wuhao's avatar
wuhao committed
166
        path: "/platform/msgrecord",
wuhao's avatar
wuhao committed
167 168 169
        name: "推送记录",
        component: "./platform/Sendlist",
      },
wuhao's avatar
wuhao committed
170
      {
左玲玲's avatar
左玲玲 committed
171
        path: "/platform/norule",
wuhao's avatar
wuhao committed
172 173 174 175 176 177 178 179 180 181 182 183 184
        name: "编号规则",
        component: "./platform/Rule",
      },
      {
        path: "/platform/specialproperties",
        name: "特殊属性",
        component: "./platform/Specialproperties",
      },
      {
        path: "/platform/labeltemplate",
        name: "标签模板",
        component: "./platform/Labeltemplate",
      },
wuhao's avatar
wuhao committed
185
      {
wuhao's avatar
wuhao committed
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
        component: "./404",
      },
    ],
  },
  {
    path: "/store",
    name: "仓库基础数据",
    icon: "desktop",
    routes: [
      {
        path: "/store",
        redirect: "/store/materiel",
      },
      {
        path: "/store/material",
        name: "物料管理",
        component: "./craft/Materiel",
      },
      {
        path: "/store/position",
        name: "仓库管理",
        component: "./system/Store",
      },
      {
        path: '/store/supplier',
wuhao's avatar
wuhao committed
211 212 213
        name: '供应商管理',
        component: './platform/Provide',
      },
wuhao's avatar
wuhao committed
214
      {
wuhao's avatar
wuhao committed
215
        path: '/store/customer',
wuhao's avatar
wuhao committed
216 217 218
        name: '客户管理',
        component: './platform/Custom',
      },
wuhao's avatar
wuhao committed
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275
      {
        component: "./404",
      },
    ],
  },
  {
    path: "/prodplay",
    name: "排产管理",
    icon: "snippets",
    routes: [
      {
        path: "/prodplay",
        redirect: "/prodplay/prodorder",
      },
      {
        path: "/prodplay/prodorder",
        name: "生产订单",
        component: "./prodplay/Prodorder",
      },
      {
        path: "/prodplay/shopplan",
        name: "车间计划",
        component: "./prodplay/Shopplan",
      },
      {
        path: "/prodplay/dispatchorder",
        name: "派工单",
        component: "./prodplay/Dispatchorder",
      },
      {
        component: "./404",
      },
    ],
  },
  {
    path: "/gatherdata",
    name: "数据采集",
    icon: "usb",
    routes: [
      {
        path: "/gatherdata",
        redirect: "/gatherdata/gatherprocess",
      },
      {
        path: "/gatherdata/gatherprocess",
        name: "工序采集",
        component: "./gatherdata/Gatherprocess",
      },
      {
        component: "./404",
      },
    ],
  },
  {
    component: "./404",
  },
];