From 358377336e3e64e088d05bf67bd952bf4f25f419 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 28 一月 2026 15:06:42 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-VUEUI

---
 src/store/modules/permission.js |   86 ++++++++++++++++++++++++-------------------
 1 files changed, 48 insertions(+), 38 deletions(-)

diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js
index 32a61a6..c7d2e7a 100644
--- a/src/store/modules/permission.js
+++ b/src/store/modules/permission.js
@@ -4,7 +4,7 @@
 import Layout from "@/layout/index";
 import ParentView from "@/components/ParentView";
 import InnerLink from "@/layout/components/InnerLink";
-
+import { getLoginPageSource } from "@/utils/loginSource"; // 瀵煎叆鐧诲綍鏉ユ簮鍒ゆ柇宸ュ叿
 const permission = {
   state: {
     routes: [],
@@ -31,6 +31,15 @@
   actions: {
     // 鐢熸垚璺敱
     GenerateRoutes({ commit }) {
+      // 绀轰緥锛氭牴鎹櫥褰曟潵婧愭墽琛屼笉鍚岀殑閫昏緫
+      const loginSource = getLoginPageSource();
+      console.log(`鐢ㄦ埛浠� ${loginSource} 椤甸潰鐧诲綍`);
+
+      var HIsHide = false;
+      if(loginSource=="loginTMS"){
+        HIsHide = true;
+      }
+
       return new Promise((resolve) => {
         // 鍚戝悗绔姹傝矾鐢辨暟鎹�
         let data = [
@@ -83,26 +92,29 @@
                   noCache: false,
                   title: "杩愯緭瀹氫綅",
                 },
-                hidden: false,
+                hidden: HIsHide,
                 name: "WayBillPaymentBill",
                 path: "WayBillPaymentBill",
                 redirect: "noRedirect",
                 component: "Layout",
-                children: [{
-                  meta: {
-                    icon: "build",
-                    link: null,
-                    noCache: false,
-                    title: "杩愬崟璐圭敤缁撶畻鍗�",
+                children: [
+                  {
+                    meta: {
+                      icon: "build",
+                      link: null,
+                      noCache: false,
+                      title: "杩愬崟璐圭敤缁撶畻鍗�",
+                    },
+                    component: () =>
+                      import(
+                        "@/views/logistics/WayBillPaymentBill/Pay_WayBillPaymentBillList.vue"
+                      ),
+                    hidden: HIsHide,
+                    name: "payWayBillPaymentBillList",
+                    path: "PayWayBillPaymentBillList",
                   },
-                  component: () =>
-                    import("@/views/logistics/WayBillPaymentBill/YF_PayMentOtherBillTranList.vue"),
-                  hidden: false,
-                  name: "yfPayMentOtherBillTranList",
-                  path: "YFPayMentOtherBillTranList",
-                }
-                ]
-              }
+                ],
+              },
             ],
           },
           {
@@ -114,7 +126,7 @@
               noCache: false,
               title: "閿�鍞鐞�",
             },
-            hidden: false,
+            hidden: HIsHide,
             name: "Sell",
             path: "/sell",
             redirect: "noRedirect",
@@ -341,7 +353,7 @@
               noCache: false,
               title: "浠撳簱绠$悊",
             },
-            hidden: false,
+            hidden: HIsHide,
             name: "Warehouse",
             path: "/warehouse",
             redirect: "noRedirect",
@@ -549,7 +561,7 @@
                   noCache: false,
                   title: "鐢熶骇璧勬枡",
                 },
-                hidden: false,
+                hidden: HIsHide,
                 name: "Production",
                 path: "production",
                 redirect: "noRedirect",
@@ -577,7 +589,7 @@
                   noCache: false,
                   title: "鐗╂祦鍩虹璧勬枡",
                 },
-                hidden: false,
+                hidden: HIsHide,
                 name: "Transport",
                 path: "transport",
                 redirect: "noRedirect",
@@ -622,7 +634,7 @@
                     },
                     component: () =>
                       import("@/views/basic/gyWarehouse/gyWarehouse.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyWarehouse",
                     path: "gyWarehouse",
                   },
@@ -635,7 +647,7 @@
                     },
                     component: () =>
                       import("@/views/basic/gyStockPlace/gyStockPlace.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyStockPlace",
                     path: "gyStockPlace",
                   },
@@ -661,7 +673,7 @@
                     },
                     component: () =>
                       import("@/views/basic/gyItemMoney/gyItemMoney.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyItemMoney",
                     path: "gyItemMoney",
                   },
@@ -687,7 +699,7 @@
                     },
                     component: () =>
                       import("@/views/basic/gyEmployee/gyEmployee.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyEmployee",
                     path: "gyEmployee",
                   },
@@ -700,7 +712,7 @@
                     },
                     component: () =>
                       import("@/views/basic/gy/gyDepartment.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyDepartment",
                     path: "gyDepartment",
                   },
@@ -713,24 +725,22 @@
                     },
                     component: () =>
                       import("@/views/basic/gyCurrency/gyCurrency.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyCurrency",
                     path: "gyCurrency",
                   },
-
                   {
                     meta: {
                       icon: "build",
                       link: null,
-                      noCache: false,
+                      noCache: HIsHide,
                       title: "璁¢噺鍗曚綅鍒楄〃",
                     },
                     component: () => import("@/views/basic/gyUnit/gyUnit.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyUnit",
                     path: "gyUnit",
                   },
-
                   {
                     meta: {
                       icon: "build",
@@ -739,7 +749,7 @@
                       title: "渚涘簲鍟嗗垪琛�",
                     },
                     component: () => import("@/views/basic/gy/gySupplier.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GySupplier",
                     path: "gySupplier",
                   },
@@ -752,7 +762,7 @@
                     },
                     component: () =>
                       import("@/views/gyMaterial/GyMaterial.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyMaterial",
                     path: "GyMaterial",
                   },
@@ -764,7 +774,7 @@
                       title: "瀹㈡埛鍒楄〃",
                     },
                     component: () => import("@/views/GyCustomer/index.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyCustomer",
                     path: "GyCustomer",
                   },
@@ -777,7 +787,7 @@
                     },
                     component: () =>
                       import("@/views/basic/gyProperty/gyPropertyList.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyProperty",
                     path: "gyProperty",
                   },
@@ -794,7 +804,7 @@
               noCache: false,
               title: "閲囪喘绠$悊",
             },
-            hidden: false,
+            hidden: HIsHide,
             name: "Purchase",
             path: "/purchase",
             redirect: "noRedirect",
@@ -1065,7 +1075,7 @@
               noCache: false,
               title: "鐢熶骇绠$悊",
             },
-            hidden: false,
+            hidden: HIsHide,
             name: "ICMO",
             path: "/icmo",
             redirect: "noRedirect",
@@ -1203,7 +1213,7 @@
               noCache: false,
               title: "瀹瑰櫒绠$悊",
             },
-            hidden: false,
+            hidden: HIsHide,
             name: "ScMould",
             path: "/scMould",
             redirect: "noRedirect",
@@ -1472,7 +1482,7 @@
               noCache: false,
               title: "绯荤粺绠$悊",
             },
-            hidden: false,
+            hidden: HIsHide,
             name: "System",
             path: "/system",
             redirect: "noRedirect",

--
Gitblit v1.9.1