|
|
@ -181,12 +181,12 @@ |
|
|
|
item.subList[0].Records.forEach(function(item1, index) { |
|
|
|
sumQty = calc.add(sumQty,item1.qty) |
|
|
|
}); |
|
|
|
if (calc.add(qty,sumQty)> item.subList[0].qty) { |
|
|
|
this.showErrorMessage("扫描数量总和【" + (Number(qty) + sumQty) + "】(当前输入数量【" + qty + "】+已添加数量【" + |
|
|
|
sumQty + |
|
|
|
"】)已超过拆包箱码的数量【" + Number(item.subList[0].qty) + "】!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
// if (calc.add(qty,sumQty)> item.subList[0].qty) { |
|
|
|
// this.showErrorMessage("扫描数量总和【" + (Number(qty) + sumQty) + "】(当前输入数量【" + qty + "】+已添加数量【" + |
|
|
|
// sumQty + |
|
|
|
// "】)已超过拆包箱码的数量【" + Number(item.subList[0].qty) + "】!"); |
|
|
|
// return; |
|
|
|
// } |
|
|
|
item.subList[0].Records.push(temp); |
|
|
|
this.$forceUpdate(); |
|
|
|
} |
|
|
|