Browse Source

YT-1270【扫描数量】合计小于【实际数量】,提交时PDA端提示不正确

intex_online20241205
zhang_li 2 months ago
parent
commit
c84a964e4c
  1. 23
      src/pages/purchaseReceipt/job/receiptDetail.vue

23
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -712,14 +712,12 @@
item.subList.forEach(cur=>{ item.subList.forEach(cur=>{
if(cur.scaned){ if(cur.scaned){
if(parseFloat(cur.qty)>parseFloat(cur.handleQty)){ if(parseFloat(cur.qty)>parseFloat(cur.handleQty)){
str += `物料号【${item.itemCode}】批次【${cur.batch}】扫描数量【${cur.handleQty}】小于任务推荐数量【${cur.qty}】,\n请修改后再提交` str += `物料号【${item.itemCode}】批次【${cur.batch}】扫描数量【${cur.handleQty}】小于任务推荐数量【${cur.qty}】,\n请修改后再提交`
str2 += `物料号【${item.itemCode}】批次【${cur.batch}】实际收货数量【${cur.handleQty}】小于收货任务的收货数量【${cur.qty}】,\n`
} }
if(parseFloat(cur.qty)<parseFloat(cur.handleQty)){ if(parseFloat(cur.qty)<parseFloat(cur.handleQty)){
str1 += `物料号【${item.itemCode}】批次【${cur.batch}】扫描数量【${cur.handleQty}】大于任务推荐数量【${cur.qty}】,\n请修改后再提交` str1 += `物料号【${item.itemCode}】批次【${cur.batch}】扫描数量【${cur.handleQty}】大于任务推荐数量【${cur.qty}】,\n请修改后再提交`
} }
if(parseFloat(cur.qty)!=parseFloat(cur.handleQty)){
str2 += `物料号【${item.itemCode}】批次【${cur.batch}】扫描数量【${cur.handleQty}】与任务推荐数量【${cur.qty}】不一致,\n`
}
} }
}) })
}) })
@ -735,24 +733,13 @@
// return; // return;
// } // }
// } // }
if(this.scanCount < this.subList.length){ if(str2){
// //
if (this.jobContent.allowPartialComplete == "TRUE") { if (this.jobContent.allowPartialComplete == "TRUE") {
// //
this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { this.$refs.comMessage.showQuestionMessage1(str2+'对于未收货部分将创建一个新的收货任务', 'red', res => {
if (res) { if (res) {
if(str2){ this.submitJob()
setTimeout(()=>{
this.$refs.comMessage.showQuestionMessage1(str2 + "是否提交?", 'red', res => {
if (res) {
this.submitJob()
}
});
},100)
}else{
this.submitJob()
}
} }
}); });
} else { } else {

Loading…
Cancel
Save