|
|
@ -507,7 +507,8 @@ |
|
|
|
pack.qty = batchDetailList[i].qty |
|
|
|
|
|
|
|
pack.toLocationCode = this.toLocationCode; |
|
|
|
pack.labelQty = Number(qty); |
|
|
|
console.log(999,result.package) |
|
|
|
pack.labelQty = Number(result.package.packQty); |
|
|
|
pack.scaned = true; |
|
|
|
// 当前批次剩余可以扫进的数量大于当前扫描的标签数量的时候直接插入当前的批次 |
|
|
|
if(handleQtySub >= parseFloat(qty)){ |
|
|
@ -691,15 +692,16 @@ |
|
|
|
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` |
|
|
|
str += `物料号【${item.itemCode}】批次【${cur.batch}】扫描数量【${cur.handleQty}】小于任务推荐数量【${cur.qty}】,\n请修改后再提交` |
|
|
|
} |
|
|
|
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请修改后再提交` |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
@ -710,12 +712,12 @@ |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.jobContent.allowSmallerQty == "FALSE"){ |
|
|
|
if(str){ |
|
|
|
this.$refs.comMessage.showErrorMessage(str); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
// if(this.jobContent.allowSmallerQty == "FALSE"){ |
|
|
|
// if(str){ |
|
|
|
// this.$refs.comMessage.showErrorMessage(str); |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// } |
|
|
|
if(this.scanCount < this.subList.length){ |
|
|
|
//扫描数量小于任务数量,判断是否允许部分提交 |
|
|
|
if (this.jobContent.allowPartialComplete == "TRUE") { |
|
|
|