From d66bd51cfb335d2e1b839d03d5dd5bcbcf080019 Mon Sep 17 00:00:00 2001 From: liuhanqing Date: Mon, 16 Jun 2025 16:29:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93=E8=87=AA=E5=8A=A8=E5=88=86?= =?UTF-8?q?=E9=85=8D-=E9=A1=B5=E9=9D=A2=E6=95=B0=E6=8D=AE=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/out/outStockoutManage.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/out/outStockoutManage.vue b/ruoyi-ui/src/views/out/outStockoutManage.vue index d1aad87..b3465d4 100644 --- a/ruoyi-ui/src/views/out/outStockoutManage.vue +++ b/ruoyi-ui/src/views/out/outStockoutManage.vue @@ -315,13 +315,17 @@ export default { /** 自动分配按钮操作 */ handleAutoAllot() { if (this.selectedRows.length === 0) { - this.$modal.msgError("请选择至少一条数据") + this.$modal.msgError("请选择一条数据") + return + } + if (this.selectedRows.length > 1) { + this.$modal.msgError("请选择一条数据") return } const stockoutIds = this.selectedRows.map(row => row.stockoutId) console.log("自动分配:", stockoutIds) let data = { - stockoutIds: stockoutIds + stockoutId: stockoutIds } autoAllot(data).then(response => { this.$modal.msgSuccess(response)