From 38ab04cc79a5662ff84a1e414a9cbc4d569eeddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=80=A1=E8=93=89?= <377046077@qq.com> Date: Wed, 15 Oct 2025 08:45:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=8C=81=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RuoYi-App-master/App.vue | 94 ++++++------ RuoYi-App-master/locales/en-US.json | 5 +- RuoYi-App-master/locales/zh-CN.json | 5 +- .../pages/out/ckMakeSureByTray.vue | 105 +++++++++++--- RuoYi-App-master/pages/pandian/confirm.vue | 75 +++++++++- RuoYi-App-master/permission.js | 136 +----------------- .../mydojobdetail/domain/MydoJobDetail.java | 10 ++ .../com/ruoyi/pda/service/PdaServiceImp.java | 1 + .../mapper/job/MydoJobDetailMapper.xml | 5 +- .../main/resources/mapper/pda/PdaMapper.xml | 1 + 10 files changed, 233 insertions(+), 204 deletions(-) diff --git a/RuoYi-App-master/App.vue b/RuoYi-App-master/App.vue index 5ad698f..18684b8 100644 --- a/RuoYi-App-master/App.vue +++ b/RuoYi-App-master/App.vue @@ -17,63 +17,65 @@ this.updateTabBarText() }) }, - onShow: function() { - // 检查应用状态,确保从后台恢复时状态一致 - this.checkAppState() - }, + // onShow: function() { + // // 检查应用状态,确保从后台恢复时状态一致 + // this.checkAppState() + // }, onDestroy() { // 移除事件监听器 uni.$off('languageChanged') }, methods: { // 初始化应用 - initApp() { - // 初始化应用配置 - this.initConfig() - // 检查用户登录状态 - //#ifdef H5 - this.checkLogin() - //#endif - }, - initConfig() { - this.globalData.config = config - }, - checkLogin() { - if (!getToken()) { - this.$tab.reLaunch('/pages/login') - } - }, - checkAppState() { - // 检查Token状态和页面导航栈状态 - console.log('应用从后台切换到前台,检查应用状态') + initApp() { + // 初始化应用配置 + this.initConfig() + // 检查用户登录状态 + //#ifdef H5 + this.checkLogin() + //#endif + }, + initConfig() { + this.globalData.config = config + }, + checkLogin() { + if (!getToken()) { + console.log('checkLogin 检查登录状态,token不存在') + + this.$tab.reLaunch('/pages/login') + } + }, + // checkAppState() { + // // 检查Token状态和页面导航栈状态 + // console.log('应用从后台切换到前台,检查应用状态') - // 获取当前页面路径,判断是否在登录页 - const pages = getCurrentPages() - const currentPage = pages[pages.length - 1] - const currentPagePath = currentPage ? currentPage.route : '' + // // 获取当前页面路径,判断是否在登录页 + // const pages = getCurrentPages() + // const currentPage = pages[pages.length - 1] + // const currentPagePath = currentPage ? currentPage.route : '' - // 如果当前页面是登录页,则不检查token - if (currentPagePath === 'pages/login') { - console.log('当前已在登录页面,不进行token检查') - return - } + // // 如果当前页面是登录页,则不检查token + // if (currentPagePath === 'pages/login') { + // console.log('当前已在登录页面,不进行token检查') + // return + // } - // 检查Token状态 - if (!getToken()) { - console.log('Token不存在,提示并跳转到登录页') - uni.showToast({ - icon: 'none', - title: '登录已过期,请重新登录' - }) - setTimeout(() => { - uni.reLaunch({ url: '/pages/login' }) - }, 1500) - } else { - console.log('Token存在,不做操作') - } + // // 检查Token状态 + // if (!getToken()) { + // console.log('Token不存在,提示并跳转到登录页') + // uni.showToast({ + // icon: 'none', + // title: '登录已过期,请重新登录' + // }) + // setTimeout(() => { + // uni.reLaunch({ url: '/pages/login' }) + // }, 1500) + // } else { + // console.log('Token存在,不做操作') + // } - }, + // }, updateTabBarText() { // 使用 nextTick 确保 DOM 更新完成 this.$nextTick(() => { diff --git a/RuoYi-App-master/locales/en-US.json b/RuoYi-App-master/locales/en-US.json index 5db1676..84cf983 100644 --- a/RuoYi-App-master/locales/en-US.json +++ b/RuoYi-App-master/locales/en-US.json @@ -352,7 +352,10 @@ "outboundSuccess": "Outbound confirmation successful", "outboundFailed": "Outbound confirmation failed", "trayInfoNotFound": "No related pallet information found", - "getTrayInfoFailed": "Failed to get pallet information" + "getTrayInfoFailed": "Failed to get pallet information", + "exit": "Exit", + "exitPlaceholder": "Please select exit", + "selectExit": "Please select exit" }, "bindShelf": { "title": "Bind Shelf", diff --git a/RuoYi-App-master/locales/zh-CN.json b/RuoYi-App-master/locales/zh-CN.json index c3b1c2e..53eed6c 100644 --- a/RuoYi-App-master/locales/zh-CN.json +++ b/RuoYi-App-master/locales/zh-CN.json @@ -353,7 +353,10 @@ "outboundSuccess": "出库确认成功", "outboundFailed": "出库确认失败", "trayInfoNotFound": "未找到相关托盘信息", - "getTrayInfoFailed": "获取托盘信息失败" + "getTrayInfoFailed": "获取托盘信息失败", + "exit": "出口", + "exitPlaceholder": "请选择出口", + "selectExit": "请选择出口" }, "bindShelf": { "title": "绑定料架", diff --git a/RuoYi-App-master/pages/out/ckMakeSureByTray.vue b/RuoYi-App-master/pages/out/ckMakeSureByTray.vue index 3ca551d..da8a4a5 100644 --- a/RuoYi-App-master/pages/out/ckMakeSureByTray.vue +++ b/RuoYi-App-master/pages/out/ckMakeSureByTray.vue @@ -1,19 +1,29 @@