From bee31382e723b17104c276ad5d8f0e3903f668b2 Mon Sep 17 00:00:00 2001 From: ShenQiLun <97694732@qq.com> Date: Mon, 29 Jun 2026 11:36:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:warehouse=E9=A1=B5=E9=9D=A2=E6=A3=80?= =?UTF-8?q?=E6=9F=A5pendingProductList,=E6=9C=89=E5=BE=85=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E6=97=B6=E7=A6=81=E6=AD=A2=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/warehouse/warehouse.vue | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pages/warehouse/warehouse.vue b/pages/warehouse/warehouse.vue index 900b1a9..8365f3a 100644 --- a/pages/warehouse/warehouse.vue +++ b/pages/warehouse/warehouse.vue @@ -229,6 +229,12 @@ export default { }, selectWarehouse(item) { + // 有待入库商品时禁止切换仓库 + var pendingList = uni.getStorageSync('pendingProductList') || [] + if (pendingList.length > 0) { + uni.showToast({ title: '已有待入库商品,请先提交入库再切换仓库', icon: 'none' }) + return + } this.selectedWarehouse = item this.loadLocationList(item.id, this.searchKeyword) }, @@ -261,6 +267,12 @@ export default { }, selectLocation(item) { + // 有待入库商品时禁止切换货位 + var pendingList = uni.getStorageSync('pendingProductList') || [] + if (pendingList.length > 0) { + uni.showToast({ title: '已有待入库商品,请先提交入库再切换货位', icon: 'none' }) + return + } const data = { warehouseId: this.selectedWarehouse.id, warehouseName: this.selectedWarehouse.name, @@ -325,6 +337,13 @@ export default { this.showScanDialog = false if (!this.scanResult) return + // 有待入库商品时禁止扫码切换仓库 + var pendingList = uni.getStorageSync('pendingProductList') || [] + if (pendingList.length > 0) { + uni.showToast({ title: '已有待入库商品,请先提交入库再切换货位', icon: 'none' }) + return + } + const whCode = this.scanWhCode const locCode = this.scanLocCode