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; }