From a793a82b2d9ab8c383145db7fad57c26541b097a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 11 二月 2025 21:01:32 +0800
Subject: [PATCH] 铜材料下单子页面路由配置
---
src/router/index.js | 22 ++++++++++++----------
src/views/business/materialOrder/index.vue | 2 +-
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index ff5cbc1..59e6be2 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -94,21 +94,23 @@
export const dynamicRoutes = [
{
// 鍘熸潗鏂欐姤妫�
- path: '/business/rawMaterialInspection',
- component: Layout,
- },
- {
- // 鍘熸潗鏂欐楠屼笅鍗�
- path: '/business/materialOrder',
+ path: '/rawMaterialInspection',
component: Layout,
hidden: true,
+ },
+ {
+ // 鍘熸潗鏂欎笅鍗�
+ path: '/materialOrder',
+ component: Layout,
+ hidden: true,
+ permissions: ['business:order'],
children: [
{
- // 閾滃崟涓濅笅鍗�
- path: '/customsInspection',
+ // 閾滄潗鏂欎笅鍗�
+ path: 'customsInspection',
component: () => import('@/views/business/materialOrder/customsInspection'),
- name: '閾滃崟涓濅笅鍗�',
- meta: { title: '閾滃崟涓濅笅鍗�', activeMenu: '/business/materialOrder' }
+ name: 'customsInspection',
+ meta: { title: '閾滄潗鏂欎笅鍗�', activeMenu: '/business/materialOrder' }
}
]
},
diff --git a/src/views/business/materialOrder/index.vue b/src/views/business/materialOrder/index.vue
index 6d2c997..835a8c9 100644
--- a/src/views/business/materialOrder/index.vue
+++ b/src/views/business/materialOrder/index.vue
@@ -900,7 +900,7 @@
},
// 閾滄潗鏂欎笅鍗�
copper () {
- this.$router.push({ path: "/business/materialOrder/customsInspection" });
+ this.$router.push("/materialOrder/customsInspection");
},
// 鎵撳紑鏍囩鎵撳嵃寮规
openPrint () {
--
Gitblit v1.9.3