routes.js 6.32 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",
krysent's avatar
krysent committed
38
        name: "来料入库",
wuhao's avatar
wuhao committed
39 40
        component: "./insertstore/Instore",
      },
krysent's avatar
krysent committed
41 42 43 44 45
      {
        path: "/wms/otherInstore",
        name: "其他入库管理",
        component: "./insertstore/Otherinstore",
      },
krysent's avatar
krysent committed
46 47
      {
        path: "/wms/otherOutstore",
krysent's avatar
krysent committed
48
        name: "其他出库管理",
krysent's avatar
krysent committed
49 50
        component: "./outsetstore/Otheroutstore",
      },
wuhao's avatar
wuhao committed
51
      {
左玲玲's avatar
左玲玲 committed
52
        path: "/wms/outstore",
krysent's avatar
krysent committed
53
        name: "生产叫料出库",
wuhao's avatar
wuhao committed
54 55 56
        component: "./outsetstore/Outstore",
      },
      {
左玲玲's avatar
左玲玲 committed
57 58 59
        path: "/wms/stock",
        name: "库存查询",
        component: "./findstore/Storesearch",
wuhao's avatar
wuhao committed
60
      },
krysent's avatar
krysent committed
61 62 63 64 65
      {
        path: "/wms/label",
        name: "来料标签打印",
        component: "./Printer",
      },
wuhao's avatar
wuhao committed
66
      {
左玲玲's avatar
左玲玲 committed
67 68
        path: "/wms/record",
        name: "出入库记录",
wuhao's avatar
wuhao committed
69 70
        component: "./historystore/Histore",
      },
krysent's avatar
krysent committed
71 72 73 74 75
      {
        path: "/wms/task",
        name: "任务单管理",
        component: "./Task",
      },
krysent's avatar
krysent committed
76 77 78 79 80
      {
        path: "/wms/move",
        name: "移库单管理",
        component: "./Movestore",
      },
wuhao's avatar
wuhao committed
81 82 83 84 85
      {
        component: "./404",
      },
    ],
  },
wuhao's avatar
wuhao committed
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
  {
    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
115

wuhao's avatar
wuhao committed
116 117 118 119 120 121 122 123 124 125
      // {
      //   path: "/system/productionline",
      //   name: "产线管理",
      //   component: "./system/Productionline",
      // },
      // {
      //   path: "/system/section",
      //   name: "工段管理",
      //   component: "./system/Section",
      // },
wuhao's avatar
wuhao committed
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
      {
        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
155

wuhao's avatar
wuhao committed
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
      {
        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
185
      {
wuhao's avatar
wuhao committed
186
        path: "/platform/msgoption",
wuhao's avatar
wuhao committed
187 188 189 190
        name: "推送配置",
        component: "./platform/Sendset",
      },
      {
wuhao's avatar
wuhao committed
191
        path: "/platform/msgrecord",
wuhao's avatar
wuhao committed
192 193 194
        name: "推送记录",
        component: "./platform/Sendlist",
      },
wuhao's avatar
wuhao committed
195
      {
左玲玲's avatar
左玲玲 committed
196
        path: "/platform/norule",
wuhao's avatar
wuhao committed
197 198 199 200 201 202 203 204 205 206 207 208 209
        name: "编号规则",
        component: "./platform/Rule",
      },
      {
        path: "/platform/specialproperties",
        name: "特殊属性",
        component: "./platform/Specialproperties",
      },
      {
        path: "/platform/labeltemplate",
        name: "标签模板",
        component: "./platform/Labeltemplate",
      },
wuhao's avatar
wuhao committed
210
      {
wuhao's avatar
wuhao committed
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
        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
236 237 238
        name: '供应商管理',
        component: './platform/Provide',
      },
krysent's avatar
krysent committed
239 240 241 242 243
      // {
      //   path: '/store/customer',
      //   name: '客户管理',
      //   component: './platform/Custom',
      // },
krysent's avatar
krysent committed
244
      {
krysent's avatar
krysent committed
245 246 247 248 249 250 251 252
        path: '/store/location',
        name: '库位管理',
        component: './system/Reservoir',
      },
      {
        path: '/store/area',
        name: '库区管理',
        component: './system/Area',
krysent's avatar
krysent committed
253
      },
wuhao's avatar
wuhao committed
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
      {
        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",
  },
];