From 33f721fc0a4bc40679bff4983aeb5d7edb821705 Mon Sep 17 00:00:00 2001
From: cuijian <cuijian@xalxzn.com>
Date: 星期四, 24 七月 2025 10:12:08 +0800
Subject: [PATCH] 仓库增加格数及对应功能修改,库存子表不管到把的唯一编码存储刀具编码

---
 src/permission.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/permission.js b/src/permission.js
index ddd93e2..5aaa878 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -72,7 +72,9 @@
       }
       else {
         // 璺宠浆鍒扮洰鐨勮矾鐢�
-        if (to.path !== '/terminal/login' && from.path !== '/' && from.path.split('/') [1] !== 'terminal' && to.path.split('/')[1] === 'terminal') {
+        const postCode = store.getters.userInfo.post
+        //  濡傛灉闈炴搷浣滃伐鐢ㄦ埛涓旇璁块棶鎿嶄綔宸ラ〉闈㈠垯蹇呴』鍏堣烦杞嚦缁堢鐧诲綍椤电櫥褰曞矖浣嶄负鎿嶄綔宸ョ敤鎴锋柟鍙闂�
+        if (to.path !== '/terminal/login' && to.path.split('/')[1] === 'terminal' && postCode !== 'PCR0001') {
           next({ path: '/terminal/login' })
         } else {
           next()

--
Gitblit v1.9.3