export default [ { path: '/', name: 'Login', component: () => import('@/views/login/index.vue'), meta: { hideHeader: true } }, { path: '/platform', name: 'platform', component: () => import('@/views/platform/index.vue'), meta: { hideHeader: true } }, { path: '/accountManage', name: 'accountManage', meta: { hideHeader: true }, component: () => import('@/views/platform/accountManage/index.vue') }, { path: '/dash', name: 'dash', // redirect: '/dash/product/list', component: () => import('@/views/layout/index.vue'), meta: { auth: true }, children: [{ path: 'product/list', name: 'productList', component: () => import('@/views/product/list.vue'), meta: { history: true, title: '商品列表', parentName: 'product', keepAlive: true // 需要缓存 } }, { path: 'product/edit', name: 'productEdit', component: () => import('@/views/product/info.vue'), meta: { parentName: 'product', menuPath: '/dash/product/list' } }, { path: 'product/info', name: 'productAdd', component: () => import('@/views/product/info.vue'), meta: { parentName: 'product', menuPath: '/dash/product/list' } }, { path: 'brandManagement/list', name: 'brandList', component: () => import('@/views/brandManagement/list.vue'), meta: { history: true, title: '品牌管理', parentName: 'product', keepAlive: true // 需要缓存 } }, { path: 'productPropMeta/list', name: 'propMetaList', component: () => import('@/views/productPropMeta/list.vue'), meta: { history: true, title: '属性管理', parentName: 'product', keepAlive: true // 需要缓存 } }, { path: 'productCategory/list', name: 'categoryList', component: () => import('@/views/productCategory/list.vue'), meta: { history: true, title: '商品分类', parentName: 'product' // keepAlive: true // 需要缓存 } }, { path: 'productExhibition/list', name: 'exhibitionList', component: () => import('@/views/productExhibition/list.vue'), meta: { history: true, title: '展示分类', parentName: 'product' // keepAlive: true // 需要缓存 } }, { path: '/404', name: '404', component: () => import('../views/404/index.vue') }, { path: '/abnormalPermissions', name: 'abnormalPermissions', component: () => import('../views/abnormalPermissions/index.vue') }, { path: 'orderMgt/list', name: 'orderMgtList', component: () => import('@/views/orderMgt/list.vue'), meta: { history: true, title: '订单列表', parentName: 'order', keepAlive: true // 需要缓存 } }, { path: 'orderMgt/info', name: 'orderMgtInfo', component: () => import('@/views/orderMgt/info.vue'), meta: { title: '订单详情', parentName: 'order', menuPath: '/dash/orderMgt/list' } }, { path: 'distributionOrder/list', name: 'distribution', component: () => import('@/views/distributionOrder/list.vue'), meta: { history: true, title: '配货订单管理', parentName: 'order', keepAlive: true // 需要缓存 } }, { path: 'distribution/info', name: 'distributionAdd', component: () => import('@/views/distributionOrder/info.vue'), meta: { title: '配货单', parentName: 'order', menuPath: '/dash/distributionOrder/list' } }, { path: 'distribution/details', name: 'distributionInfo', component: () => import('@/views/orderMgt/info.vue'), meta: { title: '配货订单详情', parentName: 'order', menuPath: '/dash/distributionOrder/list' } }, { path: 'returnAddress/list', name: 'returnAddress', component: () => import('@/views/refundMgt/returnAddress/list.vue'), meta: { history: true, title: '退货地址管理', parentName: 'order' } }, { path: 'userAuthority/list', name: 'userAuthorityList', component: () => import('@/views/userAuthority/list.vue'), meta: { history: true, title: '权限管理', parentName: 'system', keepAlive: true // 需要缓存 } }, { path: 'evaluationMgt/list', name: 'evaluationList', component: () => import('@/views/evaluationMgt/list.vue'), meta: { history: true, title: '评价管理', parentName: 'order', keepAlive: true // 需要缓存 } }, { path: 'evaluationMgt/info', name: 'evaluationInfo', component: () => import('@/views/evaluationMgt/info.vue'), meta: { title: '评价回复', parentName: 'order', menuPath: '/dash/evaluationMgt/list' } }, { path: 'refundAfterSales/list', name: 'refundAfterList', component: () => import('@/views/refundMgt/refundAfterSales/list.vue'), meta: { history: true, title: '商户退款审核', parentName: 'order', keepAlive: true // 需要缓存 } }, { path: 'refundAfterSales/info', name: 'refundAfterInfo', component: () => import('@/views/refundMgt/refundAfterSales/info.vue'), meta: { title: '商户退款审核详情', parentName: 'order', menuPath: '/dash/refundAfterSales/list' } }, { path: 'refundAudit/list', name: 'refundAuditList', component: () => import('@/views/refundMgt/refundAudit/list.vue'), meta: { history: true, title: '平台退款审核', parentName: 'order', keepAlive: true // 需要缓存 } }, { path: 'refundAudit/info', name: 'refundAuditInfo', component: () => import('@/views/refundMgt/refundAudit/info.vue'), meta: { title: '平台退款审核详情', parentName: 'order', menuPath: '/dash/refundAudit/list' } }, { path: 'userSuggest/list', name: 'userSuggestList', component: () => import('@/views/userSuggest/list.vue'), meta: { history: true, title: '意见反馈', parentName: 'order', keepAlive: true // 需要缓存 } }, { path: 'userSuggest/info', name: 'userSuggestInfo', component: () => import('@/views/userSuggest/info.vue'), meta: { title: '反馈详情', parentName: 'order', menuPath: '/dash/userSuggest/list' } }, { path: 'version', name: 'version', component: () => import('@/views/version/index.vue'), meta: { history: true, title: '版本控制', parentName: 'system', menuPath: '/dash/version', keepAlive: true // 需要缓存 } }, { path: 'version/add', name: 'versionAdd', component: () => import('@/views/version/add.vue'), meta: { // history: true, title: '发布新版本', parentName: 'system', menuPath: '/dash/version' } }, { path: 'memberInfoList/list', name: 'memberInfoList', component: () => import('@/views/memberMgt/memberInfoList/list.vue'), meta: { history: true, title: '会员列表', parentName: 'member', keepAlive: true // 需要缓存 } }, { path: 'memberLevel/list', name: 'memberLevelList', component: () => import('@/views/memberMgt/memberLevel/list.vue'), meta: { history: true, title: '会员等级管理', parentName: 'member', keepAlive: true // 需要缓存 } }, { path: 'integralRule/list', name: 'integralRuleList', component: () => import('@/views/integralRule/list.vue'), meta: { history: true, title: '积分列表', parentName: 'member', keepAlive: true // 需要缓存 } }, { path: 'integralRule/info', name: 'addIntegralRule', component: () => import('@/views/integralRule/info.vue'), meta: { title: '新增积分', parentName: 'member', menuPath: '/dash/integralRule/list' } }, { path: 'integralRule/edit', name: 'editIntegralRule', component: () => import('@/views/integralRule/info.vue'), meta: { title: '编辑积分', parentName: 'member', menuPath: '/dash/integralRule/list' } }, { path: 'empiricalConfig/list', name: 'empiricalConfig', component: () => import('@/views/empiricalConfig/list.vue'), meta: { history: true, title: '经验值列表', parentName: 'member' } }, { path: 'couponMgt/list', name: 'couponMgtList', component: () => import('@/views/couponMgt/list.vue'), meta: { history: true, title: '优惠券', parentName: 'promotion', keepAlive: true // 需要缓存 } }, { path: 'couponMgt/info', name: 'addCouponMgtInfo', component: () => import('@/views/couponMgt/info.vue'), meta: { title: '新增优惠券', parentName: 'promotion', menuPath: '/dash/couponMgt/list' } }, { path: 'couponMgt/edit', name: 'editCouponMgt', component: () => import('@/views/couponMgt/info.vue'), meta: { title: '编辑优惠券', parentName: 'promotion', menuPath: '/dash/couponMgt/list' } }, { path: 'dealerMgt/list', name: 'dealerMgtList', component: () => import('@/views/MarketingMgt/dealerMgt/list.vue'), meta: { title: '经销商列表', parentName: 'member', history: true, keepAlive: true // 需要缓存 } }, { path: 'dealerMgt/add', name: 'dealerMgtAdd', component: () => import('@/views/MarketingMgt/dealerMgt/add.vue'), meta: { title: '添加经销商', parentName: 'member', menuPath: '/dash/dealerMgt/list' } }, { path: 'dealerMgt/edit', name: 'dealerMgtEdit', component: () => import('@/views/MarketingMgt/dealerMgt/add.vue'), meta: { title: '编辑经销商', parentName: 'member', menuPath: '/dash/dealerMgt/list' } }, { path: 'dealerMgt/review', name: 'dealerMgtReview', component: () => import('@/views/MarketingMgt/dealerMgt/add.vue'), meta: { title: '审核经销商', parentName: 'member', menuPath: '/dash/dealerMgt/list' } }, { path: 'dealerMgt/detail', name: 'dealerMgtDetail', component: () => import('@/views/MarketingMgt/dealerMgt/add.vue'), meta: { title: '查看经销商', parentName: 'member', menuPath: '/dash/dealerMgt/list' } }, { path: 'shopMgt/list', name: 'shopMgtList', component: () => import('@/views/MarketingMgt/shopMgt/list.vue'), meta: { title: '门店列表', parentName: 'member', history: true // keepAlive: true // 需要缓存 } }, { path: 'advertisingMgt/contentMgt', name: 'contentMgt', component: () => import('@/views/MarketingMgt/advertisingMgt/contentMgt.vue'), meta: { title: '内容管理', parentName: 'system', history: true, keepAlive: true // 需要缓存 } }, { path: 'advertisingMgt/pageMgt', name: 'pageMgt', component: () => import('@/views/MarketingMgt/advertisingMgt/pageMgt.vue'), meta: { title: '页面管理', parentName: 'system', history: true, keepAlive: true // 需要缓存 } }, { path: 'advertisingMgt/programMgt', name: 'programMgt', component: () => import('@/views/MarketingMgt/advertisingMgt/programMgt.vue'), meta: { title: '栏目管理', parentName: 'system', history: true, keepAlive: true // 需要缓存 } }, { path: 'fullReduce/list', name: 'fullReduceList', component: () => import('@/views/proActivity/fullReduce/list.vue'), meta: { history: true, title: '满减活动', parentName: 'promotion', keepAlive: true // 需要缓存 } }, { path: 'fullReduce/info', name: 'addFullReduce', component: () => import('@/views/proActivity/fullReduce/info.vue'), meta: { title: '新增满减活动', parentName: 'promotion', menuPath: '/dash/fullReduce/list' } }, { path: 'fullReduce/edit', name: 'editFullReduce', component: () => import('@/views/proActivity/fullReduce/info.vue'), meta: { title: '编辑满减活动', parentName: 'promotion', menuPath: '/dash/fullReduce/list' } }, { path: 'fullGift/list', name: 'fullGiftList', component: () => import('@/views/proActivity/fullGift/list.vue'), meta: { history: true, title: '满赠活动', parentName: 'promotion', keepAlive: true // 需要缓存 } }, { path: 'fullGift/info', name: 'addFullGiftInfo', component: () => import('@/views/proActivity/fullGift/info.vue'), meta: { title: '新增满赠活动', parentName: 'promotion', menuPath: '/dash/fullGift/list' } }, { path: 'fullGift/edit', name: 'editFullGiftInfo', component: () => import('@/views/proActivity/fullGift/info.vue'), meta: { title: '编辑满赠活动', parentName: 'promotion', menuPath: '/dash/fullGift/list' } }, { path: 'messagePush/list', name: 'messagePushList', component: () => import('@/views/messageMgt/messagePush/list.vue'), meta: { history: true, title: '消息列表', parentName: 'messageMgt', keepAlive: true // 需要缓存 } }, { path: 'messagePush/info', name: 'messagePushInfo', component: () => import('@/views/messageMgt/messagePush/info.vue'), meta: { title: '新增推送', parentName: 'messageMgt', menuPath: '/dash/messagePush/list' } }, { path: 'messagePush/edit', name: 'editMessagePush', component: () => import('@/views/messageMgt/messagePush/info.vue'), meta: { title: '编辑推送', parentName: 'messageMgt', menuPath: '/dash/messagePush/list' } }, { path: 'thirdPartySystem/list', name: ' thirdPartySystem', component: () => import('@/views/thirdPartySystem/list.vue'), meta: { title: '三方系统管理', parentName: 'system', history: true, keepAlive: true // 需要缓存 } }, { path: 'invoice/list', name: 'invoiceList', component: () => import('@/views/invoice/list.vue'), meta: { history: true, title: '开票中心', parentName: 'invoice', keepAlive: true // 需要缓存 } }, { path: 'invoice/info', name: 'invoiceInfo', component: () => import('@/views/invoice/info.vue'), meta: { title: '开票详情', parentName: 'invoice', menuPath: '/dash/invoice/list' } }, { path: 'invoice/audit', name: 'invoiceAudit', component: () => import('@/views/invoice/components/aduitForm.vue'), meta: { title: '开票审核', parentName: 'invoice', menuPath: '/dash/invoice/list' } }, { path: 'invoice/manualInvoice', name: 'manualInvoice', component: () => import('@/views/invoice/manualInvoice.vue'), meta: { title: '手动开票', parentName: 'invoice', menuPath: '/dash/invoice/list' } }, { path: 'proPublicity/list', name: 'proPublicity', component: () => import('@/views/proPublicityMgt/proPublicity/list.vue'), meta: { history: true, title: '文章管理', parentName: 'messageMgt', keepAlive: true // 需要缓存 } }, { path: 'proPublicity/add', name: 'proPublicityAdd', component: () => import('@/views/proPublicityMgt/proPublicity/info.vue'), meta: { title: '新增文章', parentName: 'messageMgt', menuPath: '/dash/proPublicity/list' } }, { path: 'proPublicity/edit', name: 'proPublicityEdit', component: () => import('@/views/proPublicityMgt/proPublicity/info.vue'), meta: { title: '编辑文章', parentName: 'messageMgt', menuPath: '/dash/proPublicity/list' } }, { path: 'proPublicity/info', name: 'proPublicityInfo', component: () => import('@/views/proPublicityMgt/proPublicity/info.vue'), meta: { title: '文章详情', parentName: 'messageMgt', menuPath: '/dash/proPublicity/list' } }, { path: 'catPublicity/list', name: 'catPublicity', component: () => import('@/views/proPublicityMgt/catPublicity/list.vue'), meta: { history: true, title: '文章分类', parentName: 'messageMgt', keepAlive: true // 需要缓存 } }, { path: 'giftMgt/list', name: 'giftMgtList', component: () => import('@/views/giftMgt/list.vue'), meta: { history: true, title: '赠品管理', parentName: 'promotion', keepAlive: true // 需要缓存 } }, { path: 'createOrder/list', name: 'createOrder', component: () => import('@/views/orderMgt/createOrder.vue'), meta: { history: true, title: '手动建单', parentName: 'order', // menuPath: '/dash/orderMgt/list', keepAlive: true // 需要缓存 } }, { path: 'submenuTactics/index', name: 'submenuTactics', component: () => import('@/views/submenuTactics/index.vue'), meta: { history: true, title: '分单策略', parentName: 'order', keepAlive: true // 需要缓存 } }, { path: 'createIntegralOrder/list', name: 'createIntegral', component: () => import('@/views/orderMgt/createIntegralOrder.vue'), meta: { title: '创建积分建单', parentName: 'order', menuPath: '/dash/orderMgt/list' } }, { path: 'thirdPartLog/list', name: 'thirdPartLogList', component: () => import('@/views/thirdPartLog/list.vue'), meta: { history: true, title: '三方日志', parentName: 'system', keepAlive: true // 需要缓存 } }, { path: 'thirdPartLog/info', name: 'thirdPartLogInfo', component: () => import('@/views/thirdPartLog/info.vue'), meta: { title: '三方日志详情', parentName: 'system', menuPath: '/dash/thirdPartLog/list' } }, { path: 'orderAuditConfig/list', name: 'orderAuditConfig', component: () => import('@/views/orderAuditConfig/list.vue'), meta: { history: true, title: '策略管理', parentName: 'system', keepAlive: true // 需要缓存 } }, { path: 'orderAuditConfig/add', name: 'auditConfigAdd', component: () => import('@/views/orderAuditConfig/info.vue'), meta: { title: '新增策略', parentName: 'system', menuPath: '/dash/orderAuditConfig/list' } }, { path: 'orderAuditConfig/edit', name: 'auditConfigEdit', component: () => import('@/views/orderAuditConfig/info.vue'), meta: { title: '编辑策略', parentName: 'system', menuPath: '/dash/orderAuditConfig/list' } }, { path: 'findMgt/list', name: 'findMgtList', component: () => import('@/views/findMgt/list.vue'), meta: { history: true, title: '发现管理', parentName: 'messageMgt', keepAlive: true // 需要缓存 } }, { path: 'findMgt/add', name: 'findMgtAdd', component: () => import('@/views/findMgt/info.vue'), meta: { title: '新增发现', parentName: 'messageMgt', menuPath: '/dash/findMgt/list' } }, { path: 'findMgt/edit', name: 'findMgtEdit', component: () => import('@/views/findMgt/info.vue'), meta: { title: '编辑发现', parentName: 'messageMgt', menuPath: '/dash/findMgt/list' } }, { path: 'integralProd/list', name: 'integralProdList', component: () => import('@/views/integralProd/list.vue'), meta: { history: true, parentName: 'member', keepAlive: true // 需要缓存 } }, { path: 'integralProd/add', name: 'integralProdAdd', component: () => import('@/views/integralProd/info.vue'), meta: { title: '新增积分商品', parentName: 'member', menuPath: '/dash/integralProd/list' } }, { path: 'integralProd/edit', name: 'integralProdEdit', component: () => import('@/views/integralProd/info.vue'), meta: { title: '编辑积分商品', parentName: 'member', menuPath: '/dash/integralProd/list' } }, { path: 'integralRecode/list', name: 'integralRecode', component: () => import('@/views/integralRecode/list.vue'), meta: { history: true, parentName: 'member', keepAlive: true // 需要缓存 } }, { path: 'integralControl/list', name: 'integralControl', component: () => import('@/views/integralControl/list.vue'), meta: { history: true, parentName: 'member', keepAlive: true // 需要缓存 } }, { path: 'invoiceProdInfo/list', name: 'invoiceProdInfo', component: () => import('@/views/invoiceProdInfo/list.vue'), meta: { history: true, title: '商品核算信息', parentName: 'invoice', keepAlive: true // 需要缓存 } }, { path: 'blindBoxActivity/list', name: 'blindBoxActList', component: () => import('@/views/blindBoxActivity/list.vue'), meta: { history: true, title: '盲盒抽奖', parentName: 'promotion', keepAlive: true // 需要缓存 } }, { path: 'blindBoxActivity/add', name: 'blindBoxActAdd', component: () => import('@/views/blindBoxActivity/info.vue'), meta: { title: '新增盲盒抽奖', parentName: 'promotion', menuPath: '/dash/blindBoxActivity/list' } }, { path: 'blindBoxActivity/edit', name: 'blindBoxActEdit', component: () => import('@/views/blindBoxActivity/info.vue'), meta: { title: '编辑盲盒抽奖', parentName: 'promotion', menuPath: '/dash/blindBoxActivity/list' } }, { path: 'blindBoxActivity/info', name: 'blindBoxActInfo', component: () => import('@/views/blindBoxActivity/info.vue'), meta: { title: '盲盒抽奖详情', parentName: 'promotion', menuPath: '/dash/blindBoxActivity/list' } }, { path: 'timeLimitBuy/list', name: 'timeLimitBuyList', component: () => import('@/views/timeLimitBuy/list.vue'), meta: { history: true, title: '限时抢购', parentName: 'promotion', keepAlive: true // 需要缓存 } }, { path: 'timeLimitBuy/add', name: 'timeLimitBuyAdd', component: () => import('@/views/timeLimitBuy/info.vue'), meta: { title: '新增限时抢购', parentName: 'promotion', menuPath: '/dash/timeLimitBuy/list' } }, { path: 'timeLimitBuy/edit', name: 'timeLimitBuyEdit', component: () => import('@/views/timeLimitBuy/info.vue'), meta: { title: '编辑限时抢购', parentName: 'promotion', menuPath: '/dash/timeLimitBuy/list' } }, { path: 'timeLimitBuy/info', name: 'timeLimitBuyInfo', component: () => import('@/views/timeLimitBuy/info.vue'), meta: { title: '限时抢购详情', parentName: 'promotion', menuPath: '/dash/timeLimitBuy/list' } }, { path: 'groupActivity/list', name: 'groupActList', component: () => import('@/views/groupActivity/list.vue'), meta: { history: true, title: '拼团活动', parentName: 'promotion', keepAlive: true // 需要缓存 } }, { path: 'groupActivity/add', name: 'groupActAdd', component: () => import('@/views/groupActivity/info.vue'), meta: { title: '新增拼团活动', parentName: 'promotion', menuPath: '/dash/groupActivity/list' } }, { path: 'groupActivity/edit', name: 'groupActEdit', component: () => import('@/views/groupActivity/info.vue'), meta: { title: '编辑拼团活动', parentName: 'promotion', menuPath: '/dash/groupActivity/list' } }, { path: 'groupActivity/info', name: 'groupActInfo', component: () => import('@/views/groupActivity/info.vue'), meta: { title: '拼团活动详情', parentName: 'promotion', menuPath: '/dash/groupActivity/list' } }, { path: 'platformPackage/list', name: 'platformPackage', component: () => import('@/views/platformPackage/list.vue'), meta: { history: true, title: '平台套餐', parentName: 'product', keepAlive: true // 需要缓存 } }, { path: 'platformPackage/add', name: 'platformPgAdd', component: () => import('@/views/platformPackage/info.vue'), meta: { title: '新增平台套餐', parentName: 'product', menuPath: '/dash/platformPackage/list' } }, { path: 'platformPackage/edit', name: 'platformPgEdit', component: () => import('@/views/platformPackage/info.vue'), meta: { title: '编辑平台套餐', parentName: 'product', menuPath: '/dash/platformPackage/list' } }, { path: 'platformPackage/info', name: 'platformPgInfo', component: () => import('@/views/platformPackage/info.vue'), meta: { title: '平台套餐详情', parentName: 'product', menuPath: '/dash/platformPackage/list' } }, { path: 'saleSummary/list', name: 'saleSummaryList', component: () => import('@/views/businessReport/saleSummary/list.vue'), meta: { history: true, title: 'C端自营店铺销售汇总', parentName: 'businessReport', keepAlive: true // 需要缓存 } }, { path: 'saleDetailed/list', name: 'saleDetailedList', component: () => import('@/views/businessReport/saleDetailed/list.vue'), meta: { history: true, title: 'C端自营店铺销售订单明细', parentName: 'businessReport', keepAlive: true // 需要缓存 } }, // 业务报表-业务销售账单确认 { path: 'salesBillsConfim/list', name: 'salesBillsConfimList', component: () => import('@/views/businessReport/salesBillsConfim/list.vue'), meta: { history: true, title: '业务销售账单确认', parentName: 'businessReport', keepAlive: true // 需要缓存 } }, // 业务报表-已确认发票状态变更 { path: 'confirmedBillingComp/list', name: 'confirmedBillingCompList', component: () => import('@/views/businessReport/confirmedBillingComp/list.vue'), meta: { history: true, title: '已确认发票状态变更', parentName: 'businessReport', keepAlive: true // 需要缓存 } }, // 库存管理-商品库存 { path: 'commodityStocks/list', name: 'commodityStocks', component: () => import('@/views/commodityStocks/list.vue'), meta: { history: true, title: '商品库存', parentName: 'commodityStocks', keepAlive: true // 需要缓存 } }, // 库存管理-渠道库存 { path: 'channelInventory/list', name: 'channelInventory', component: () => import('@/views/channelInventory/list.vue'), meta: { history: true, title: '渠道库存', parentName: 'channelInventory', keepAlive: true // 需要缓存 } }, // 库存管理-库存调拨 { path: 'inventoryAllocation/list', name: 'inventoryAllocationList', component: () => import('@/views/inventoryAllocation/list.vue'), meta: { history: true, title: '库存调拨', parentName: 'inventoryAllocation', keepAlive: true // 需要缓存 } }, { path: 'priceManagement/list', name: 'priceManagementList', component: () => import('@/views/priceManagement/list.vue'), meta: { history: true, title: '价格管理', parentName: 'product', keepAlive: true // 需要缓存 } }, { path: 'productMap/list', name: 'productMapList', component: () => import('@/views/productMap/list.vue'), meta: { history: true, title: '商品映射', parentName: 'product', keepAlive: true // 需要缓存 } } ] } // { // path: '*', // redirect: '/404' // } ]