From d71bd2958a362bea5e4a3331e9d50601abc4fc04 Mon Sep 17 00:00:00 2001
From: qq_41295110 <qq_41295110@noreply.gitcode.com>
Date: 星期三, 28 一月 2026 15:27:57 +0800
Subject: [PATCH] 容器日期显示bug修复

---
 src/store/modules/permission.js |  219 +++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 180 insertions(+), 39 deletions(-)

diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js
index 52ab7b5..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 = [
@@ -41,9 +50,83 @@
               icon: "build",
               link: null,
               noCache: false,
-              title: "閿�鍞鐞�",
+              title: "鐗╂祦绠$悊",
             },
             hidden: false,
+            name: "Logistics",
+            path: "/logistics",
+            redirect: "noRedirect",
+            children: [
+              {
+                meta: {
+                  icon: "build",
+                  link: null,
+                  noCache: false,
+                  title: "杩愯緭瀹氫綅",
+                },
+                hidden: false,
+                name: "TransportGPS",
+                path: "transportGPS",
+                redirect: "noRedirect",
+                component: "Layout",
+                children: [
+                  {
+                    meta: {
+                      icon: "build",
+                      link: null,
+                      noCache: false,
+                      title: "鍑鸿繍鍗�",
+                    },
+                    component: () =>
+                      import("@/views/logistics/transportGPS/WL_YayBill.vue"),
+                    hidden: false,
+                    name: "WL_YayBill",
+                    path: "WL_YayBill",
+                  },
+                ],
+              },
+              {
+                meta: {
+                  icon: "build",
+                  link: null,
+                  noCache: false,
+                  title: "杩愯緭瀹氫綅",
+                },
+                hidden: HIsHide,
+                name: "WayBillPaymentBill",
+                path: "WayBillPaymentBill",
+                redirect: "noRedirect",
+                component: "Layout",
+                children: [
+                  {
+                    meta: {
+                      icon: "build",
+                      link: null,
+                      noCache: false,
+                      title: "杩愬崟璐圭敤缁撶畻鍗�",
+                    },
+                    component: () =>
+                      import(
+                        "@/views/logistics/WayBillPaymentBill/Pay_WayBillPaymentBillList.vue"
+                      ),
+                    hidden: HIsHide,
+                    name: "payWayBillPaymentBillList",
+                    path: "PayWayBillPaymentBillList",
+                  },
+                ],
+              },
+            ],
+          },
+          {
+            alwaysShow: true,
+            component: "Layout",
+            meta: {
+              icon: "build",
+              link: null,
+              noCache: false,
+              title: "閿�鍞鐞�",
+            },
+            hidden: HIsHide,
             name: "Sell",
             path: "/sell",
             redirect: "noRedirect",
@@ -270,7 +353,7 @@
               noCache: false,
               title: "浠撳簱绠$悊",
             },
-            hidden: false,
+            hidden: HIsHide,
             name: "Warehouse",
             path: "/warehouse",
             redirect: "noRedirect",
@@ -423,6 +506,36 @@
                     name: "Gy_BarCodeBill",
                     path: "Gy_BarCodeBill",
                   },
+                  {
+                    meta: {
+                      icon: "build",
+                      link: null,
+                      noCache: false,
+                      title: "鏉$爜鐢熸垚_閿﹂殕",
+                    },
+                    component: () =>
+                      import(
+                        "@/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong.vue"
+                      ),
+                    hidden: false,
+                    name: "Gy_BarCodeBill_JinLong",
+                    path: "Gy_BarCodeBill_JinLong",
+                  },
+                  {
+                    meta: {
+                      icon: "build",
+                      link: null,
+                      noCache: false,
+                      title: "鏉$爜涓绘。",
+                    },
+                    component: () =>
+                      import(
+                        "@/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue"
+                      ),
+                    hidden: false,
+                    name: "Gy_BarCodeBillList",
+                    path: "Gy_BarCodeBillList",
+                  },
                 ],
               },
             ],
@@ -448,7 +561,7 @@
                   noCache: false,
                   title: "鐢熶骇璧勬枡",
                 },
-                hidden: false,
+                hidden: HIsHide,
                 name: "Production",
                 path: "production",
                 redirect: "noRedirect",
@@ -476,7 +589,7 @@
                   noCache: false,
                   title: "鐗╂祦鍩虹璧勬枡",
                 },
-                hidden: false,
+                hidden: HIsHide,
                 name: "Transport",
                 path: "transport",
                 redirect: "noRedirect",
@@ -490,7 +603,9 @@
                       title: "鎵胯繍鍚堝悓鍗曟嵁",
                     },
                     component: () =>
-                      import("@/views/basic/gytransport/cgContractTransportBillList/Cg_ContractTransportBillList.vue"),
+                      import(
+                        "@/views/basic/gytransport/cgContractTransportBillList/Cg_ContractTransportBillList.vue"
+                      ),
                     hidden: false,
                     name: "CgContractTransportBillList",
                     path: "cgContractTransportBillList",
@@ -519,7 +634,7 @@
                     },
                     component: () =>
                       import("@/views/basic/gyWarehouse/gyWarehouse.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyWarehouse",
                     path: "gyWarehouse",
                   },
@@ -532,7 +647,7 @@
                     },
                     component: () =>
                       import("@/views/basic/gyStockPlace/gyStockPlace.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyStockPlace",
                     path: "gyStockPlace",
                   },
@@ -549,7 +664,7 @@
                     name: "GyCartypelist",
                     path: "gyCartypelist",
                   },
-                   {
+                  {
                     meta: {
                       icon: "build",
                       link: null,
@@ -558,7 +673,7 @@
                     },
                     component: () =>
                       import("@/views/basic/gyItemMoney/gyItemMoney.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyItemMoney",
                     path: "gyItemMoney",
                   },
@@ -584,7 +699,7 @@
                     },
                     component: () =>
                       import("@/views/basic/gyEmployee/gyEmployee.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyEmployee",
                     path: "gyEmployee",
                   },
@@ -597,9 +712,34 @@
                     },
                     component: () =>
                       import("@/views/basic/gy/gyDepartment.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyDepartment",
                     path: "gyDepartment",
+                  },
+                  {
+                    meta: {
+                      icon: "build",
+                      link: null,
+                      noCache: false,
+                      title: "璐у竵鍒楄〃",
+                    },
+                    component: () =>
+                      import("@/views/basic/gyCurrency/gyCurrency.vue"),
+                    hidden: HIsHide,
+                    name: "GyCurrency",
+                    path: "gyCurrency",
+                  },
+                  {
+                    meta: {
+                      icon: "build",
+                      link: null,
+                      noCache: HIsHide,
+                      title: "璁¢噺鍗曚綅鍒楄〃",
+                    },
+                    component: () => import("@/views/basic/gyUnit/gyUnit.vue"),
+                    hidden: HIsHide,
+                    name: "GyUnit",
+                    path: "gyUnit",
                   },
                   {
                     meta: {
@@ -609,7 +749,7 @@
                       title: "渚涘簲鍟嗗垪琛�",
                     },
                     component: () => import("@/views/basic/gy/gySupplier.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GySupplier",
                     path: "gySupplier",
                   },
@@ -622,7 +762,7 @@
                     },
                     component: () =>
                       import("@/views/gyMaterial/GyMaterial.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyMaterial",
                     path: "GyMaterial",
                   },
@@ -634,7 +774,7 @@
                       title: "瀹㈡埛鍒楄〃",
                     },
                     component: () => import("@/views/GyCustomer/index.vue"),
-                    hidden: false,
+                    hidden: HIsHide,
                     name: "GyCustomer",
                     path: "GyCustomer",
                   },
@@ -645,8 +785,9 @@
                       noCache: false,
                       title: "杈呭姪灞炴�у垪琛�",
                     },
-                    component: () => import("@/views/basic/gyProperty/gyPropertyList.vue"),
-                    hidden: false,
+                    component: () =>
+                      import("@/views/basic/gyProperty/gyPropertyList.vue"),
+                    hidden: HIsHide,
                     name: "GyProperty",
                     path: "gyProperty",
                   },
@@ -663,7 +804,7 @@
               noCache: false,
               title: "閲囪喘绠$悊",
             },
-            hidden: false,
+            hidden: HIsHide,
             name: "Purchase",
             path: "/purchase",
             redirect: "noRedirect",
@@ -858,7 +999,7 @@
                     hidden: false,
                     name: "Kf_POStockInBackBillList",
                     path: "Kf_POStockInBackBillList",
-                    query: "{\"type\":1}"
+                    query: '{"type":1}',
                   },
                   {
                     meta: {
@@ -874,7 +1015,7 @@
                     hidden: false,
                     name: "Kf_POStockInBackBillList",
                     path: "Kf_POStockInBackBillList0",
-                    query: "{\"type\":0}"
+                    query: '{"type":0}',
                   },
                 ],
               },
@@ -934,7 +1075,7 @@
               noCache: false,
               title: "鐢熶骇绠$悊",
             },
-            hidden: false,
+            hidden: HIsHide,
             name: "ICMO",
             path: "/icmo",
             redirect: "noRedirect",
@@ -1070,9 +1211,9 @@
               icon: "build",
               link: null,
               noCache: false,
-              title: "鍣ㄥ叿绠$悊",
+              title: "瀹瑰櫒绠$悊",
             },
-            hidden: false,
+            hidden: HIsHide,
             name: "ScMould",
             path: "/scMould",
             redirect: "noRedirect",
@@ -1095,7 +1236,7 @@
                       icon: "build",
                       link: null,
                       noCache: false,
-                      title: "鍣ㄥ叿棰嗙敤鍑哄簱鍗曠淮鎶�",
+                      title: "瀹瑰櫒棰嗙敤鍑哄簱鍗曠淮鎶�",
                     },
                     component: () =>
                       import(
@@ -1110,7 +1251,7 @@
                       icon: "build",
                       link: null,
                       noCache: false,
-                      title: "鍣ㄥ叿棰嗙敤鍑哄簱鍗�",
+                      title: "瀹瑰櫒棰嗙敤鍑哄簱鍗�",
                     },
                     component: () =>
                       import(
@@ -1125,7 +1266,7 @@
                       icon: "build",
                       link: null,
                       noCache: false,
-                      title: "鍣ㄥ叿棰嗙敤閫�搴撳崟缁存姢",
+                      title: "瀹瑰櫒鍏ュ簱鍗曠淮鎶�",
                     },
                     component: () =>
                       import(
@@ -1140,7 +1281,7 @@
                       icon: "build",
                       link: null,
                       noCache: false,
-                      title: "鍣ㄥ叿棰嗙敤閫�搴撳崟",
+                      title: "瀹瑰櫒鍏ュ簱鍗�",
                     },
                     component: () =>
                       import(
@@ -1155,7 +1296,7 @@
                       icon: "build",
                       link: null,
                       noCache: false,
-                      title: "鍣ㄥ叿鐩存帴璋冩嫧鍗曠淮鎶�",
+                      title: "瀹瑰櫒鐩存帴璋冩嫧鍗曠淮鎶�",
                     },
                     component: () =>
                       import(
@@ -1170,7 +1311,7 @@
                       icon: "build",
                       link: null,
                       noCache: false,
-                      title: "鍣ㄥ叿鐩存帴璋冩嫧鍗�",
+                      title: "瀹瑰櫒鐩存帴璋冩嫧鍗�",
                     },
                     component: () =>
                       import(
@@ -1185,7 +1326,7 @@
                       icon: "build",
                       link: null,
                       noCache: false,
-                      title: "鍣ㄥ叿鍏ュ簱鐢宠鍗曠淮鎶�",
+                      title: "瀹瑰櫒鍏ュ簱鐢宠鍗曠淮鎶�",
                     },
                     component: () =>
                       import(
@@ -1200,7 +1341,7 @@
                       icon: "build",
                       link: null,
                       noCache: false,
-                      title: "鍣ㄥ叿鍏ュ簱鐢宠鍗�",
+                      title: "瀹瑰櫒鍏ュ簱鐢宠鍗�",
                     },
                     component: () =>
                       import(
@@ -1215,7 +1356,7 @@
                       icon: "build",
                       link: null,
                       noCache: false,
-                      title: "鍣ㄥ叿棰嗙敤鐢宠鍗曠淮鎶�",
+                      title: "瀹瑰櫒棰嗙敤鐢宠鍗曠淮鎶�",
                     },
                     component: () =>
                       import(
@@ -1230,7 +1371,7 @@
                       icon: "build",
                       link: null,
                       noCache: false,
-                      title: "鍣ㄥ叿棰嗙敤鐢宠鍗�",
+                      title: "瀹瑰櫒棰嗙敤鐢宠鍗�",
                     },
                     component: () =>
                       import(
@@ -1245,7 +1386,7 @@
                       icon: "build",
                       link: null,
                       noCache: false,
-                      title: "鍣ㄥ叿璋冩嫧鐢宠鍗曠淮鎶�",
+                      title: "瀹瑰櫒璋冩嫧鐢宠鍗曠淮鎶�",
                     },
                     component: () =>
                       import(
@@ -1260,7 +1401,7 @@
                       icon: "build",
                       link: null,
                       noCache: false,
-                      title: "鍣ㄥ叿璋冩嫧鐢宠鍗�",
+                      title: "瀹瑰櫒璋冩嫧鐢宠鍗�",
                     },
                     component: () =>
                       import(
@@ -1290,7 +1431,7 @@
                       icon: "build",
                       link: null,
                       noCache: false,
-                      title: "鍣ㄥ叿涓绘。",
+                      title: "瀹瑰櫒涓绘。",
                     },
                     component: () =>
                       import("@/views/scMould/basicModeling/Gy_MouldFile.vue"),
@@ -1303,7 +1444,7 @@
                       icon: "build",
                       link: null,
                       noCache: false,
-                      title: "鍣ㄥ叿涓绘。缁存姢",
+                      title: "瀹瑰櫒涓绘。缁存姢",
                     },
                     component: () =>
                       import(
@@ -1341,7 +1482,7 @@
               noCache: false,
               title: "绯荤粺绠$悊",
             },
-            hidden: false,
+            hidden: HIsHide,
             name: "System",
             path: "/system",
             redirect: "noRedirect",
@@ -1392,7 +1533,7 @@
                       noCache: false,
                       title: "椹鹃┒鍛樺垪琛�",
                     },
-                    component: () =>import("@/views/system/user/GyDriver.vue"),
+                    component: () => import("@/views/system/user/GyDriver.vue"),
                     hidden: false,
                     name: "gyDriver",
                     path: "GyDriver",

--
Gitblit v1.9.1