|
|
@ -69,8 +69,8 @@ |
|
|
<!-- 入库数量和批次号 --> |
|
|
<!-- 入库数量和批次号 --> |
|
|
<div class="input-row"> |
|
|
<div class="input-row"> |
|
|
<div class="input-item quantity-item"> |
|
|
<div class="input-item quantity-item"> |
|
|
<span class="input-label">入库数量</span> |
|
|
|
|
|
<el-input class="inlineNumber numInput" v-model="actualQty" placeholder="入库数量" type="number" @keyup.enter.native="handleAddMaterial" clearable/> |
|
|
|
|
|
|
|
|
<span class="input-label">入库数</span> |
|
|
|
|
|
<el-input class="inlineNumber numInput" v-model="actualQty" placeholder="入库数" type="number" @keyup.enter.native="handleAddMaterial" clearable/> |
|
|
</div> |
|
|
</div> |
|
|
<div class="input-item batch-item"> |
|
|
<div class="input-item batch-item"> |
|
|
<span class="input-label">批次号</span> |
|
|
<span class="input-label">批次号</span> |
|
|
@ -310,13 +310,12 @@ export default { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 检查是否已经添加过该物料和批次号组合 |
|
|
|
|
|
|
|
|
// 检查是否已经添加过该物料 |
|
|
const exists = this.materialList.find(item => |
|
|
const exists = this.materialList.find(item => |
|
|
item.materialCode === this.materialCode.trim() && |
|
|
|
|
|
item.batchNo === this.batchNo.trim() |
|
|
|
|
|
|
|
|
item.materialCode === this.materialCode.trim() |
|
|
); |
|
|
); |
|
|
if (exists) { |
|
|
if (exists) { |
|
|
this.$message.warning('该物料和批次号组合已添加,请勿重复添加'); |
|
|
|
|
|
|
|
|
this.$message.warning('该物料已添加,请勿重复添加'); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|