|
|
@ -213,6 +213,32 @@ |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|
this.continueScan() |
|
|
|
this.$forceUpdate(); |
|
|
|
|
|
|
|
}, |
|
|
|
autoCommit(){ |
|
|
|
//判断数量是否相等 |
|
|
|
var noCommitInfo=null |
|
|
|
for (var i = 0; i < this.detailSource.length; i++) { |
|
|
|
var sub =this.detailSource[i].subList |
|
|
|
for(var j=0;j<sub.length;j++){ |
|
|
|
var item =sub[j] |
|
|
|
if(item.qty!=item.handleQty){ |
|
|
|
noCommitInfo=item; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//数量不相等,提示 |
|
|
|
if(noCommitInfo){ |
|
|
|
this.showQuestionMessage("扫描数量["+noCommitInfo.handleQty+"]任务数量["+noCommitInfo.qty+"]不一致,是否提交?",res=>{ |
|
|
|
if(res){ |
|
|
|
this.commit() |
|
|
|
} |
|
|
|
}) |
|
|
|
}else { |
|
|
|
//提交 |
|
|
|
this.commit() |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//继续扫描 |
|
|
@ -332,6 +358,7 @@ |
|
|
|
itemDetail.balance.packQty = Number(result.package.packQty) |
|
|
|
itemDetail.balance.packUnit = result.package.packUnit |
|
|
|
this.calcHandleQty(); |
|
|
|
this.autoCommit(); |
|
|
|
} else { |
|
|
|
this.scanPopupGetFocus(); |
|
|
|
} |
|
|
@ -354,6 +381,7 @@ |
|
|
|
itemDetail.balance.packQty = Number(result.package.packQty) |
|
|
|
itemDetail.balance.packUnit = result.package.packUnit |
|
|
|
this.calcHandleQty(); |
|
|
|
this.autoCommit(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|