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