From 5fb06faeb8138a91cf149fd24a9d8a43dd7c837f Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Mon, 5 Jan 2026 11:28:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E6=AC=A1=E5=85=A5=E5=BA=93=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E8=B6=85=E8=BF=87=E5=BE=85=E6=94=B6=E6=95=B0=E9=87=8F?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E7=BB=A7=E7=BB=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/recv/recv.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/views/modules/recv/recv.vue b/src/views/modules/recv/recv.vue index 91e2297..6a2b699 100644 --- a/src/views/modules/recv/recv.vue +++ b/src/views/modules/recv/recv.vue @@ -462,10 +462,26 @@ export default { } }, async receivePo() { + const item = this.recvItem; + if (item.transQty > item.qtyToReceive) { + try { + await this.$confirm( + `本次入库数量(${item.transQty}) ,超过待收数量(${item.qtyToReceive}),是否继续?`, + '数量超出提示', + { + confirmButtonText: '继续', + cancelButtonText: '取消', + type: 'warning' + } + ); + } catch (error) { + // 用户取消 + return; + } + } if (this.fullscreenLoading) return; // 防止重复点 this.loadingText = '提交中...'; this.fullscreenLoading = true; - const item = this.recvItem; if (!item.transQty || !item.locationNo || !item.batchNo) { this.fullscreenLoading = false; return this.$message.error("请填写完整信息");