From 9d3f46c9eaf1d847207e25546f3b4dd6d0e17f69 Mon Sep 17 00:00:00 2001 From: zhangdi <1104545947@qq.com> Date: Tue, 26 May 2026 11:47:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E5=BA=93=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/firstOrder/components/inDialog.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/firstOrder/components/inDialog.vue b/src/views/firstOrder/components/inDialog.vue index c0d9375..8ab8760 100644 --- a/src/views/firstOrder/components/inDialog.vue +++ b/src/views/firstOrder/components/inDialog.vue @@ -763,6 +763,7 @@ export default { } else { this.sizeForm.singleData.push({ ...row, ...materialData }); } + this.getStatisticsSingle(); } else { this.$message.error(res.data.message || "获取物资信息失败"); } @@ -812,7 +813,7 @@ export default { return; } if (row.type === "NY") { - if (row.unitPrice === undefined || row.unitPrice <= 0) { + if ((row.theInboundQuantity > 0)&&(row.unitPrice === undefined || row.unitPrice <= 0)) { this.$message.error("单价不能为空"); return; } @@ -858,7 +859,7 @@ export default { return; } if (row.type === "NY") { - if (row.unitPrice === undefined || row.unitPrice <= 0) { + if ((row.theInboundQuantity > 0)&&(row.unitPrice === undefined || row.unitPrice <= 0)) { this.$message.error("单价不能为空"); return; }