import Layout from '@/page/index/index.vue'; import Store from '@/store/'; export default [ { path: '/wel', component: () => Store.getters.isMacOs ? import('@/mac/index.vue') : import('@/page/index/index.vue'), redirect: '/wel/index', children: [ { path: 'index', name: '首页', meta: { i18n: 'dashboard', }, component: () => import(/* webpackChunkName: "views" */ '@/views/wel/index.vue'), }, { path: 'dashboard', name: '控制台', meta: { i18n: 'dashboard', menu: false, }, component: () => import(/* webpackChunkName: "views" */ '@/views/wel/dashboard.vue'), }, ], }, { path: '/test', component: Layout, redirect: '/test/index', children: [ { path: 'index', name: '测试页', meta: { i18n: 'test', }, component: () => import(/* webpackChunkName: "views" */ '@/views/util/test.vue'), }, ], }, { path: '/dict-horizontal', component: Layout, redirect: '/dict-horizontal/index', children: [ { path: 'index', name: '字典管理', meta: { i18n: 'dict', }, component: () => import(/* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal.vue'), }, ], }, { path: '/dict-vertical', component: Layout, redirect: '/dict-vertical/index', children: [ { path: 'index', name: '字典管理', meta: { i18n: 'dict', }, component: () => import(/* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical.vue'), }, ], }, { path: '/info', component: Layout, redirect: '/info/index', children: [ { path: 'index', name: '个人信息', meta: { i18n: 'info', }, component: () => import(/* webpackChunkName: "views" */ '@/views/system/userinfo.vue'), }, ], }, { path: '/work/process/leave', component: Layout, redirect: '/work/process/leave/form', children: [ { path: 'form/:processDefinitionId', name: '请假流程', meta: { i18n: 'work', }, component: () => import(/* webpackChunkName: "views" */ '@/views/work/process/leave/form.vue'), }, { path: 'handle/:taskId/:processInstanceId/:businessId', name: '处理请假流程', meta: { i18n: 'work', }, component: () => import(/* webpackChunkName: "views" */ '@/views/work/process/leave/handle.vue'), }, { path: 'detail/:processInstanceId/:businessId', name: '请假流程详情', meta: { i18n: 'work', }, component: () => import(/* webpackChunkName: "views" */ '@/views/work/process/leave/detail.vue'), }, ], }, // { // path: '/basic/pdarecords/basicPdarecords', // name:'pda维修记录', // meta:{ // i18n:'work' // }, // component: () => import(/* webpackChunkName: "views" */ '@/views/basic/pdarecords/basicPdarecords.vue'), // }, { path: '/basic/pdarecords/basicPdarecords', component: Layout, key:'fullPath', redirect: '/basic/pdarecords', children: [ { path: '/basic/pdarecords/basicPdarecords', name: 'pad编辑', meta: { data: 'data', }, component: () => import(/* webpackChunkName: "views" */ '@/views/basic/pdarecords/basicPdarecords.vue'), }, ], }, { path: '/basic/pdarecords/basicPdarecordslist', component: Layout, key:'fullPath', redirect: '/basic/pdarecords', children: [ { path: '/basic/pdarecords/basicPdarecordslist', name: '维修总记录', meta: { data: 'data', }, component: () => import(/* webpackChunkName: "views" */ '@/views/basic/pdarecords/basicPdarecordslist.vue'), }, ], }, { path: '/basic/delinenode/basicDelineNode', component: Layout, redirect: '/basic/delinenode', children: [ { path: '/basic/delinenode/basicDelineNode', name: '提货线路节点', meta: { data: 'data', }, component: () => import('@/views/basic/delinenode/basicDelineNode.vue'), }, ], }, { path: '/factory/snm/staorderPackages', component: Layout, redirect: '/factory/snm', children: [ { path: '/factory/snm/staorderPackages', name: '运单包件信息', meta: { data: 'data', }, component: () => import('@/views/factory/snm/staorderPackages.vue'), }, ], }, { path: '/basicdata/brand/basicHistoricalContract', component: Layout, redirect: '/brand/basicHistoricalContract', children: [ { path: '/basicdata/brand/basicHistoricalContract', name: '历史记录', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id}), component: () => import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicHistoricalContract.vue'), }, ], }, { path: '/basicdata/brand/basicStorageServices', component: Layout, redirect: '/brand/basicStorageServices', children: [ { path: '/basicdata/brand/basicStorageServices', name: '服务仓', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id,type: route.query.type}), component: () => import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicStorageServices.vue'), }, ], }, { path: '/basicdata/brand/basicdataStoreBrand', component: Layout, redirect: '/brand/basicdataStoreBrand', children: [ { path: '/basicdata/brand/basicdataStoreBrand', name: '品牌', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id}), component: () => import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicdataStoreBrand.vue'), }, ], }, { path: '/basicdata/brand/basicZonePriceFrom', component: Layout, redirect: '/brand/basicZonePriceFrom', children: [ { path: '/basicdata/brand/basicZonePriceFrom', name: '区域价格新增', meta: { i18n: 'dict', }, props: route => ( { name: route.query.name, id: route.query.id , type: route.query.type } ), component: () => import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicZonePriceFrom.vue'), }, ], }, { path: '/basicdata/brand/basicdataFreightFrom', component: Layout, redirect: '/brand/basicdataFreightFrom', children: [ { path: '/basicdata/brand/basicdataFreightFrom', name: '基础价格新增', meta: { i18n: 'dict', }, props: route => ( { name: route.query.name, id: route.query.id , type: route.query.type } ), component: () => import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicdataFreightFrom.vue'), }, ], }, { path: '/basicdata/brand/basicStoreContact', component: Layout, redirect: '/brand/basicStoreContact', children: [ { path: '/basicdata/brand/basicStoreContact', name: '联系人', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id, type: route.query.type }), component: () => import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicStoreContact.vue'), }, ], }, { path: '/basicdata/brand/basicdataCustomerBase', component: Layout, redirect: '/brand/basicdataCustomerBase', children: [ { path: '/basicdata/brand/basicdataCustomerBase', name: '基地', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicdataCustomerBase.vue'), }, ], }, { path: '/basicdata/brand/basicdataCustomerStore', component: Layout, redirect: '/brand/basicdataCustomerStore', children: [ { path: '/basicdata/brand/basicdataCustomerStore', name: '商场', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicdataCustomerStore.vue'), }, ], }, { path: '/basic/printTemplate/basicPrintTemplateFrom', component: Layout, redirect: '/basic/printTemplate', children: [ { path: '/basic/printTemplate/basicPrintTemplateFrom', name: 'name', meta: { data: 'data', }, component: () => import('@/views/basic/printTemplate/basicPrintTemplateFrom.vue'), }, ], }, { path: '/basic/pda/basicPdaform', component: Layout, redirect: '/basic/pda', children: [ { path: '/basic/pda/basicPdaform', name: 'pad信息', meta: { }, component: () => import('@/views/basic/pda/basicPdaform.vue'), }, ], }, { path: '/basic/property/basicPropertyform', component: Layout, redirect: '/basic/property', children: [ { path: '/basic/property/basicPropertyform', name: '编辑字段', meta: { data: 'data', }, component: () => import('@/views/basic/property/basicPropertyform.vue'), }, ], }, { path: '/distribution/reservation/reservationFrom', component: Layout, redirect: '/distribution/reservation/reservationFrom', children: [ { path: '/distribution/reservation/reservationFrom', name: '添加预约', component: () => import('@/views/distribution/reservation/reservationFrom.vue'), }, ], }, { path: '/distribution/reservation/atlas', component: Layout, redirect: '/distribution/reservation/atlas', children: [ { path: '/distribution/reservation/atlas', name: '地图展示', id:'id', component: () => import('@/views/distribution/reservation/atlas.vue'), }, ], }, { path: '/distribution/reservation/reservationDetails', component: Layout, redirect: '/distribution/reservation/reservationDetails', children: [ { path: '/distribution/reservation/reservationDetails', name: '预约单详情', id:'id', component: () => import('@/views/distribution/reservation/reservationDetails.vue'), }, ], }, // { // path: '/distribution/deliverylist/distributionDeliveryList', // component: Layout, // redirect: '/distribution/deliverylist/distributionDeliveryList', // children: [ // { // path: '/distribution/deliverylist/distributionDeliveryList', // id:'id', // name:'name', // component: () => import('@/views/distribution/deliverylist/distributionDeliveryList.vue'), // }, // ], // }, { path: '/distribution/turndelivery/deliveryMarket', component: Layout, redirect: '/distribution/turndelivery/deliveryMarket', children: [ { path: '/distribution/turndelivery/deliveryMarket', name: 'name', id:'id', component: () => import('@/views/distribution/turndelivery/deliveryMarket.vue'), }, ], }, { path: '/distribution/turndelivery/deliveryDiscuss', component: Layout, redirect: '/distribution/turndelivery/deliveryDiscuss', children: [ { path: '/distribution/turndelivery/deliveryDiscuss', name: '商配计划', component: () => import('@/views/distribution/turndelivery/deliveryDiscuss.vue'), }, ], }, { path: '/basic/property/basicrecordslist', component: Layout, key:'fullPath', redirect: '/basic/property', children: [ { path: '/basic/property/basicrecordslist', name: '维修总记录', meta: { data: 'data', }, component: () => import(/* webpackChunkName: "views" */ '@/views/basic/property/basicrecordslist.vue'), }, ], }, { path: '/distribution/inventory/distrilbutionBillLading', component: Layout, redirect: '/distribution/inventory', children: [ { path: '/distribution/inventory/distrilbutionBillLading', name: '创建提货单', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import('@/views/distribution/inventory/distrilbutionBillLading.vue'), }, ], } ,{ path: '/basicdata/brand/basicShopFrom', component: Layout, redirect: '/basicdata/brand/basicShopFrom', children: [ { path: '/basicdata/brand/basicShopFrom', name: '创建门店', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import('@/views/basicdata/brand/basicShopFrom.vue'), }, ], }, { path: '/distribution/deliverylist/distributionDeliveryListedt', component: Layout, redirect: '/deliverylist/distributionDeliveryListedt', children: [ { path: '/distribution/deliverylist/distributionDeliveryListedt', name: '配送查看', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import('@/views/distribution/deliverylist/distributionDeliveryListedt.vue'), }, ], }, // { // path: '/distribution/turndelivery/deliveryDiscuss', // component: Layout, // redirect: '/distribution/turndelivery/deliveryDiscuss', // children: [ // { // path: '/distribution/turndelivery/deliveryDiscuss', // name: '配送编辑', // meta: { // i18n: 'dict', // }, // props: route => ({ // name: route.query.name, // id: route.query.id // }), // component: () => import('@/views/turndelivery/deliverylist/deliveryDiscuss.vue'), // }, // ], // }, { path: '/basicdata/brand/basicdataTripartiteMall', component: Layout, redirect: '/brand/basicdataTripartiteMall', children: [ { path: '/basicdata/brand/basicdataTripartiteMall', name: '三方商城', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import('@/views/basicdata/brand/basicdataTripartiteMall.vue'), }, ], }, { path: '/basicdata/brand/basicClientFrom', component: Layout, redirect: '/brand/basicClientFrom', children: [ { path: '/basicdata/brand/basicClientFrom', name: '新增', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import('@/views/basicdata/brand/basicClientFrom.vue'), }, ], }, { path: '/distribution/inventory/distributionStockArticleFrom', component: Layout, redirect: '/inventory/distributionStockArticleFrom', children: [ { path: '/distribution/inventory/distributionStockArticleFrom', name: '转库存品', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import('@/views/distribution/inventory/distributionStockArticleFrom.vue'), }, ], }, { path: '/distribution/inventory/distributionStockArticleDetails', component: Layout, redirect: '/inventory/distributionStockArticleDetails', children: [ { path: '/distribution/inventory/distributionStockArticleDetails', name: '查询订单详情', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import('@/views/distribution/inventory/distributionStockArticleDetails.vue'), }, ], }, { path: '/distribution/inventory/distributionStockListDetails', component: Layout, redirect: '/inventory/distributionStockListDetails', children: [ { path: '/distribution/inventory/distributionStockListDetails', name: '查询库存品详情', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import('@/views/distribution/inventory/distributionStockListDetails.vue'), }, ], }, { path: '/distribution/signfor/distributionSignforedt', component: Layout, redirect: '/distribution/distributionSignforedt', children: [ { path: '/distribution/signfor/distributionSignforedt', name: '签收查看', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import('@/views/distribution/signfor/distributionSignforedt.vue'), }, ], }, { path: '/distribution/stockup/distributionStockupDetails', component: Layout, redirect: '/stockup/distributionStockupDetails', children: [ { path: '/distribution/stockup/distributionStockupDetails', name: '备货明细', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import('@/views/distribution/stockup/distributionStockupDetails.vue'), }, ], }, { path: '/distribution/stockup/distributionStockupDetailsSelf', component: Layout, redirect: '/stockup/distributionStockupDetailsSelf', children: [ { path: '/distribution/stockup/distributionStockupDetailsSelf', name: '自提明细', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import('@/views/distribution/stockup/distributionStockupDetailsSelf.vue'), }, ], }, { path: '/reservation/order_listFrom', component: Layout, redirect: '/reservation/order_listFrom', children: [ { path: '/distribution/reservation/order_listFrom', name: '自提明细', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import('@/views/reservation/order_listFrom.vue'), }, ], }, // { // path: '/distribution/inventory/distributionPrints', // component: Layout, // redirect: '/distribution/inventory', // children: [ // { // path: '/distribution/inventory/distributionPrints', // name: '创建提货单', // meta: { // i18n: 'dict', // }, // props: route => ({ // name: route.query.name, // id: route.query.id // }), // component: () => import('@/views/distribution/inventory/distributionPrints.vue'), // children:[ // { // path: '/distribution/inventory/distributionPrints', // name: '创建提货单', // meta: { // i18n: 'dict', // }, // props: route => ({ // name: route.query.name, // id: route.query.id // }), // component: () => import('@/views/distribution/inventory/distributionStockArticle.vue'), // }, // ] // }, // ], // } ];