fix: 将商户订单菜单移到现有"订单"目录下 & 修复打印路径
- 将商户订单、商户退款、商户预约路由从独立顶级菜单移入orderRouter.children - 移除merchantOrderRouter独立注册,改为在order.js中直接添加子路由 - 修正订单打印路径从/merchantOrder/print/改为/order/merchantPrint/ - 修正index.vue中打印跳转路径引用 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,7 @@ import operationRouter from './modules/operation';
|
||||
import merchant from './modules/merchant';
|
||||
import pagediy from '@/router/modules/pagediy';
|
||||
import areaRouter from './modules/area';
|
||||
import merchantOrderRouter from './modules/merchantOrder';
|
||||
// merchantOrderRouter 已合并到 orderRouter 中,不再独立注册
|
||||
/**
|
||||
* Note: sub-menu only appear when route children.length >= 1
|
||||
* Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
|
||||
@@ -78,8 +78,6 @@ export const constantRoutes = [
|
||||
pagediy,
|
||||
// 圈层管理
|
||||
areaRouter,
|
||||
// 商户订单管理(从商户端移植)
|
||||
merchantOrderRouter,
|
||||
{
|
||||
path: '/404',
|
||||
component: () => import('@/views/error-page/404'),
|
||||
@@ -180,7 +178,7 @@ export const constantRoutes = [
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/merchantOrder/print/:orderNo',
|
||||
path: '/order/merchantPrint/:orderNo',
|
||||
component: () => import('@/views/merchantOrder/orderPrint'),
|
||||
name: 'MerchantOrderPrint',
|
||||
hidden: true,
|
||||
|
||||
@@ -33,6 +33,38 @@ const orderRouter = {
|
||||
name: 'refund',
|
||||
meta: { title: '退款单' },
|
||||
},
|
||||
{
|
||||
path: 'merchantList',
|
||||
component: () => import('@/views/merchantOrder/index'),
|
||||
name: 'MerchantOrderIndex',
|
||||
meta: { title: '商户订单' },
|
||||
},
|
||||
{
|
||||
path: 'merchantRefund',
|
||||
component: () => import('@/views/merchantOrder/refund/index'),
|
||||
name: 'MerchantRefund',
|
||||
meta: { title: '商户退款订单' },
|
||||
},
|
||||
{
|
||||
path: 'merchantReservation',
|
||||
component: () => import('@/views/merchantOrder/reservation/index'),
|
||||
name: 'MerchantOrderReservation',
|
||||
meta: { title: '商户预约', icon: '' },
|
||||
children: [
|
||||
{
|
||||
path: 'service',
|
||||
component: () => import('@/views/merchantOrder/reservation/service'),
|
||||
name: 'MerchantService',
|
||||
meta: { title: '商户预约看板', icon: '' },
|
||||
},
|
||||
{
|
||||
path: 'workOrder',
|
||||
component: () => import('@/views/merchantOrder/reservation/workOrder'),
|
||||
name: 'MerchantWorkOrder',
|
||||
meta: { title: '商户工单管理', icon: '' },
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
@@ -662,7 +662,7 @@ export default {
|
||||
// 订单打印(新窗口打开打印页)
|
||||
handleOrderPrint(row) {
|
||||
const routeData = this.$router.resolve({
|
||||
path: `/merchantOrder/print/${row.orderNo}`,
|
||||
path: `/order/merchantPrint/${row.orderNo}`,
|
||||
});
|
||||
window.open(routeData.href, '_blank');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user