From 051a075e9d49c882c617ae532909dc0865fc1932 Mon Sep 17 00:00:00 2001 From: duxingchen Date: Mon, 10 Aug 2026 17:56:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=95=99=E8=A8=80=E6=9D=BF=E5=B1=82?= =?UTF-8?q?=E7=BA=A7=E4=BF=AE=E5=A4=8D=20+=20=E4=BA=BA=E5=90=8D=E6=98=A0?= =?UTF-8?q?=E5=B0=84=E9=98=B2=E9=99=8D=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 留言板移除 currentMode 限制,产品级功能所有模式可见 - .page-container: min-height + overflow-y:auto 替代 height:100vh + overflow:hidden - loadUsers 加 console.error 日志 + $forceUpdate 防字典空窗期 --- track-uniapp/src/pages/scan/detail.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/track-uniapp/src/pages/scan/detail.vue b/track-uniapp/src/pages/scan/detail.vue index 6f4a9c5..d2458e8 100644 --- a/track-uniapp/src/pages/scan/detail.vue +++ b/track-uniapp/src/pages/scan/detail.vue @@ -46,8 +46,8 @@ :initialLockTaskId="autoLockTaskId" @action="handleTaskAction" @viewRecords="handleViewRecords" /> - - + + 💬 协同留言板 @@ -256,7 +256,7 @@ export default { openEditProduct() { this.editForm = { order_no: this.product.order_no || "", external_serial: this.product.external_serial || "" }; this.editProductVisible = true; }, async doEditProduct() { this.editSaving = true; try { this.product = await patch(`/products/${this.product.id}`, { order_no: this.editForm.order_no.trim(), external_serial: this.editForm.external_serial.trim() }); uni.showToast({ title: "已保存", icon: "success" }); this.editProductVisible = false; } catch {} finally { this.editSaving = false; } }, - async loadUsers() { try { const res = await get("/users/", { limit: 200, dept: "IRIS" }); this.users = (res || []).filter(u => u.department === "IRIS"); this.userOptions = this.users.map(u => ({ id: u.username || u.id, name: u.full_name || u.username })); setUserNameMap(this.users); } catch {} }, + async loadUsers() { try { const res = await get("/users/", { limit: 200, dept: "IRIS" }); this.users = (res || []).filter(u => u.department === "IRIS"); this.userOptions = this.users.map(u => ({ id: u.username || u.id, name: u.full_name || u.username })); setUserNameMap(this.users); this.$forceUpdate(); } catch (e) { console.error('[loadUsers] 获取用户列表失败:', e); } }, loadCurrentUser() { try { let user = uni.getStorageSync("user"); if (typeof user === "string" && user) { try { user = JSON.parse(user); } catch (e) { user = null; } } if (user && typeof user === "object") { this.currentUser = user; this.currentUserId = String(user.id || ""); this.currentUsername = user.username || ""; } } catch {} }, onTaskNameChange(e) { const idx = e.detail.value; this.firstForm.taskNameIdx = idx; this.firstForm.task_name = TASK_NAME_OPTIONS[idx]; }, @@ -310,7 +310,7 @@ export default {