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