From 522fa43f35cd885df059d605849dbdf4e448aac3 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Mon, 10 Nov 2025 15:56:11 +0800 Subject: [PATCH] =?UTF-8?q?2025-11-10=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/other-inout/otherInboundDetail.vue | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/views/modules/other-inout/otherInboundDetail.vue b/src/views/modules/other-inout/otherInboundDetail.vue index 4c89886..33abeb6 100644 --- a/src/views/modules/other-inout/otherInboundDetail.vue +++ b/src/views/modules/other-inout/otherInboundDetail.vue @@ -69,8 +69,8 @@
- 入库数量 - + 入库数 +
批次号 @@ -310,13 +310,12 @@ export default { return; } - // 检查是否已经添加过该物料和批次号组合 - const exists = this.materialList.find(item => - item.materialCode === this.materialCode.trim() && - item.batchNo === this.batchNo.trim() + // 检查是否已经添加过该物料 + const exists = this.materialList.find(item => + item.materialCode === this.materialCode.trim() ); if (exists) { - this.$message.warning('该物料和批次号组合已添加,请勿重复添加'); + this.$message.warning('该物料已添加,请勿重复添加'); return; } @@ -1364,7 +1363,7 @@ export default { .col-label, .col-part { flex: 1.5; } - + .col-batch { flex: 1; }