Browse Source

修改生产收料自动提交

lijuncheng0816
lijuncheng 3 months ago
parent
commit
85dff3ceb5
  1. 28
      src/pages/productionReceipt/job/productionReceiptDetail.vue

28
src/pages/productionReceipt/job/productionReceiptDetail.vue

@ -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();
}
}
}

Loading…
Cancel
Save