feat(销售出货拣货):条码扫描时,如果是B,则校验辅助数量和辅助单位不能为空,否则报错;
This commit is contained in:
parent
8bee7865d7
commit
8b853c01a1
@ -567,6 +567,16 @@ export default {
|
|||||||
me.$message.error("条码" + row.inventoryId + "不在仓库" + itemForm.sourceWarehouse + "内");
|
me.$message.error("条码" + row.inventoryId + "不在仓库" + itemForm.sourceWarehouse + "内");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// 如果 itemForm.enableDualUnits 等于B
|
||||||
|
if (itemForm.enableDualUnits === "B") {
|
||||||
|
if (isBlank(row.auxiliaryOty)) {
|
||||||
|
me.$message.error("启用了双单位,条码[" + me.itemForm.code + "]的辅助数量不能为空");
|
||||||
|
return;
|
||||||
|
} else if(isBlank(row.auxiliaryUnit)) {
|
||||||
|
me.$message.error("启用了双单位,条码[" + me.itemForm.code + "]的辅助单位不能为空");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
if ((add(row.qty, itemForm.sumQuantity) > itemForm.applicationsQuantity) && me.finishQtyControl !== "2" && itemForm.enableDualUnits != "B") {
|
if ((add(row.qty, itemForm.sumQuantity) > itemForm.applicationsQuantity) && me.finishQtyControl !== "2" && itemForm.enableDualUnits != "B") {
|
||||||
// 并且不等于B的时候
|
// 并且不等于B的时候
|
||||||
me.reSetSumQuantity();
|
me.reSetSumQuantity();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user