From 70b8bce69d29cd5168428e29ba9f05efd3b7f486 Mon Sep 17 00:00:00 2001 From: ShenQiLun <97694732@qq.com> Date: Mon, 29 Jun 2026 11:46:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=9C=89=E5=BE=85=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E6=97=B6=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=B8=8A=E4=B9=A6=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E8=B7=B3=E8=BD=AC=E4=B8=8A=E4=BC=A0=E9=A1=B5,?= =?UTF-8?q?=E6=97=A0=E9=9C=80=E9=80=89=E4=BB=93=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/entry/entry.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pages/entry/entry.vue b/pages/entry/entry.vue index 1eaabad..e5893d8 100644 --- a/pages/entry/entry.vue +++ b/pages/entry/entry.vue @@ -76,9 +76,17 @@ export default { handleEntry(type) { switch (type) { case 'upload': - uni.navigateTo({ - url: '/pages/warehouse/warehouse' - }) + // 有待入库商品则直接跳转到上传页,否则去选仓库货位 + var pendingList = uni.getStorageSync('pendingProductList') || [] + if (pendingList.length > 0) { + uni.navigateTo({ + url: '/pages/upload/upload' + }) + } else { + uni.navigateTo({ + url: '/pages/warehouse/warehouse' + }) + } break case 'refresh': uni.showToast({