Browse Source

YT-999pda发料,提示不准确,有多个批次,提示应加批次

intex
zhang_li 5 days ago
parent
commit
0bf66b0690
  1. 4
      src/pages/issue/job/issueDetailBatch.vue
  2. 5
      src/pages/purchaseReceipt/job/receiptDetail.vue

4
src/pages/issue/job/issueDetailBatch.vue

@ -632,6 +632,8 @@
totalQty =calc.add(totalQty,item.handleQty)
if(parseFloat(item.handleQty)<parseFloat(item.qty)){
str += `批次【${item.batch}】提交数量【${parseFloat(item.handleQty)}】不允许小于任务数量【${item.qty}`
}
if(parseFloat(item.handleQty)!=parseFloat(item.qty)){
str3 += `批次【${item.batch}】扫描数量【${parseFloat(item.handleQty)}】和任务数量【${item.qty}】不一致`
}
if (parseFloat( item.handleQty )> parseFloat(item.qty)){
@ -671,6 +673,7 @@
str3 = str3+",是否提交"
this.$refs.comMessage.showQuestionMessage1(str3, 'red', res => {
if (res) {
return
//
this.$throttle(this.submit, 2000, this)()
} else {
@ -678,6 +681,7 @@
}
});
}else {
return
//
this.$throttle(this.submit, 2000, this)()
}

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

@ -691,12 +691,10 @@
//
let str = ''
let str1 = ''
var scanCount=0;
this.jobContent.allowBiggerQty = "FALSE"
this.detailSource.forEach((item) => {
item.subList.forEach(cur=>{
if(cur.scaned){
scanCount++;
if(parseFloat(cur.qty)>parseFloat(cur.handleQty)){
str += `物料号【${item.itemCode}】批次【${cur.batch}】扫描数量【${cur.handleQty}】小于任务推荐数量【${cur.qty}】,\n请修改后再提交`
}
@ -718,6 +716,8 @@
// return;
// }
// }
console.log(this.scanCount)
console.log( this.subList.length)
if(this.scanCount < this.subList.length){
//
if (this.jobContent.allowPartialComplete == "TRUE") {
@ -736,6 +736,7 @@
});
}
}else{
return
this.submitJob();
}
},

Loading…
Cancel
Save