index.js 6.26 KB
Newer Older
godwithdh's avatar
godwithdh 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 31 32 33 34 35 36
import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

let routes = [
  {
    path:'/me',
    name:'me',
    component: () => import('@/view/me/index.vue'),
    meta: {
      title: '我的'
    },
    redirect:'/me/info',
    children:[
      {
        path:'/me/info',
        name:'我的信息',
        component: () => import('@/view/me/info.vue'),
        meta: {
          title: '我的信息'
        }
      },
      {
        path:'/me/help',
        name:'帮助',
        component: () => import('@/view/me/help.vue'),
        meta: {
          title: '帮助'
        }
      }
    ]
  },
  {
    name:'main',
    component: () => import('@/view/main.vue'),
godwithdh's avatar
1  
godwithdh committed
37
    path:'/main',
godwithdh's avatar
godwithdh committed
38 39
    children:[
      {
张锡奇's avatar
张锡奇 committed
40
        path:'/sales/:iProjectId',
godwithdh's avatar
godwithdh committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
        name:'chartMmcolorsale',
        component:()=> import('@/view/chart/sales/index.vue'),
        meta:{
          title: '图表'
        }
      },
      {
        path:'/salesDetail',
        name:'chartMmcolorsaleDetail',
        component:()=> import('@/view/chart/sales/detail.vue'),
        meta:{
          title: '图表'
        }
      },
      {
张锡奇's avatar
张锡奇 committed
56
        path:'/custom/:iProjectId',
godwithdh's avatar
godwithdh committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
        name:'chartCustom',
        component:()=> import('@/view/chart/custom/index.vue'),
        meta:{
          title: '图表'
        }
      },
      {
        path:'/customDetail',
        name:'chartCustomDetail',
        component:()=> import('@/view/chart/custom/detail.vue'),
        meta:{
          title: '图表'
        }
      },
      {
张锡奇's avatar
张锡奇 committed
72
        path:'/income/:iProjectId',
godwithdh's avatar
godwithdh committed
73 74 75 76 77 78 79
        name:'chartIncome',
        component:()=> import('@/view/chart/income/index.vue'),
        meta:{
          title: '图表'
        }
      },
      {
张锡奇's avatar
张锡奇 committed
80
        path:'/salesStatistics/:iProjectId',
godwithdh's avatar
godwithdh committed
81 82 83 84 85
        name:'chartStatistics',
        component:()=> import('@/view/chart/sales/statistics.vue'),
        meta:{
          title: '销售统计'
        }
godwithdh's avatar
1  
godwithdh committed
86 87 88 89 90 91 92 93 94
      },
    ]
  },
  {
    name:'main',
    component: () => import('@/view/main.vue'),
    path:'/main',
    children:[
      {
张锡奇's avatar
张锡奇 committed
95 96
        path:'/specimen/:iProjectId/:sMaterialNo',
        name:'specimen',
godwithdh's avatar
1  
godwithdh committed
97 98 99 100
        component:()=> import('@/view/specimen/index.vue'),
        meta:{
          title: '样品信息'
        }
godwithdh's avatar
godwithdh committed
101 102
      }
    ]
godwithdh's avatar
godwithdh committed
103 104 105 106 107 108 109
  },
  {
    name:"main",
    component:()=>import("@/view/main.vue"),
    path:"/main",
    children:[
      {
godwithdh's avatar
godwithdh committed
110
        path:"/kanban/:userId",
godwithdh's avatar
godwithdh committed
111
        name:"kanban",
godwithdh's avatar
godwithdh committed
112
        component:()=>import("@/view/tiip/kanban/index.vue"),
godwithdh's avatar
godwithdh committed
113 114 115
        meta:{
          title:"老板看板"
        }
张锡奇's avatar
张锡奇 committed
116 117 118 119
      },
      {
        path:"/kanbanOperateDetail",
        name:"tiipOperateDetail",
张锡奇's avatar
张锡奇 committed
120
        component:()=>import("@/view/tiip/kanban/operateDetail.vue"),
张锡奇's avatar
张锡奇 committed
121 122 123 124 125
        meta:{
          title:"接单详情"
        }
      },
      {
张锡奇's avatar
张锡奇 committed
126
        path:"/kanbanOperateCustomDetail/:type",
张锡奇's avatar
张锡奇 committed
127
        name:"tiipOperateCustomDetail",
张锡奇's avatar
张锡奇 committed
128
        component:()=>import("@/view/tiip/kanban/operateCustomDetail.vue"),
张锡奇's avatar
张锡奇 committed
129 130 131 132 133 134 135
        meta:{
          title:"客户订单列表"
        }
      },
      {
        path:"/kanbanOperateSaleDetail",
        name:"tiipOperateSaleDetail",
张锡奇's avatar
张锡奇 committed
136
        component:()=>import("@/view/tiip/kanban/operateSaleDetail.vue"),
张锡奇's avatar
张锡奇 committed
137 138 139
        meta:{
          title:"销售员接单情况"
        }
godwithdh's avatar
godwithdh committed
140 141
      }
    ]
godwithdh's avatar
godwithdh committed
142
  },
张锡奇's avatar
张锡奇 committed
143 144 145 146 147 148 149 150 151 152 153 154 155 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 185 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 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 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
  {
    name:'main',
    component: () => import('@/view/main.vue'),
    path:'/main',
    children:[
      {
        path:'/tiip/specimen/:userId/:uGuid',
        name:'specimen',
        component:()=> import('@/view/tiip/specimen/index.vue'),
        meta:{
          title: '样品信息'
        }
      }
    ]
  },
  {
    name:'main',
    component: () => import('@/view/main.vue'),
    path:'/main',
    children:[
      {
        path:'/tiip/searchOrder/list/:userId',
        name:'searchOrderList',
        component:()=> import('@/view/tiip/searchOrder/index.vue'),
        meta:{
          title: '订单查询'
        }
      },
      {
        path:'/tiip/searchOrder/detail',
        name:'searchOrderDetail',
        component:()=> import('@/view/tiip/searchOrder/detail.vue'),
        meta:{
          title: '订单详情'
        }
      },
      {
        path:'/tiip/searchOrder/materialDetail',
        name:'searchOrderMaterialDetail',
        component:()=> import('@/view/tiip/searchOrder/materialDetail.vue'),
        meta:{
          title: '产品详情'
        }
      },
      {
        path:'/tiip/searchOrder/track',
        name:'searchOrderTrack',
        component:()=> import('@/view/tiip/searchOrder/track.vue'),
        meta:{
          title: '订单全程跟踪'
        }
      }
    ]
  },
  {
    name:'main',
    component: () => import('@/view/main.vue'),
    path:'/main',
    children:[
      {
        path:'/tiip/profitAnalysis/list/:userId',
        name:'profitAnalysisList',
        component:()=> import('@/view/tiip/profitAnalysis/index.vue'),
        meta:{
          title: '订单利润分析'
        }
      },
      {
        path:'/tiip/profitAnalysis/detail',
        name:'profitAnalysisDetail',
        component:()=> import('@/view/tiip/profitAnalysis/detail.vue'),
        meta:{
          title: '订单明细'
        }
      },
      {
        path:'/tiip/profitAnalysis/track',
        name:'profitAnalysisTrack',
        component:()=> import('@/view/tiip/profitAnalysis/track.vue'),
        meta:{
          title: '订单全程跟踪'
        }
      }
    ]
  },
  {
    name:'main',
    component: () => import('@/view/main.vue'),
    path:'/main',
    children:[
      {
        path:'/tiip/orderDetails/list/:type',
        name:'orderDetailsIndex',
        component:()=> import('@/view/tiip/orderDetails/index.vue'),
        meta:{
          title: '采购信息'
        }
      },
    ]
  },
  {
    name:'main',
    component: () => import('@/view/main.vue'),
    path:'/main',
    children:[
      {
        path:'/common/customField',
        name:'customField',
        component:()=> import('@/view/common/customField.vue'),
        meta:{
          title: '自定义列表'
        }
      },
    ]
  },
  {
    name:'main',
    component: () => import('@/view/main.vue'),
    path:'/main',
    children:[
      {
        path:'/tiip/chart/inventory/:userId',
        name:'tiipChartInventory',
        component:()=> import('@/view/tiip/chart/inventory.vue'),
        meta:{
          title: '库存金额分析'
        }
      },
    ]
godwithdh's avatar
godwithdh committed
272 273 274 275
  }
];

export default routes;