|
|
@ -708,12 +708,15 @@ |
|
|
|
let str = '' |
|
|
|
let str1 = '' |
|
|
|
let str2 = '' |
|
|
|
let taskQty = 0 |
|
|
|
let handleQty = 0 |
|
|
|
this.detailSource.forEach((item) => { |
|
|
|
taskQty = calc.add(taskQty,item.qty) |
|
|
|
handleQty = calc.add(handleQty,item.handleQty) |
|
|
|
item.subList.forEach(cur=>{ |
|
|
|
if(cur.scaned){ |
|
|
|
if(parseFloat(cur.qty)>parseFloat(cur.handleQty)){ |
|
|
|
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)){ |
|
|
|
str1 += `物料号【${item.itemCode}】批次【${cur.batch}】扫描数量【${cur.handleQty}】大于任务推荐数量【${cur.qty}】,\n请修改后再提交` |
|
|
@ -733,6 +736,9 @@ |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// } |
|
|
|
if(parseFloat(taskQty)>parseFloat(handleQty)){ |
|
|
|
str2 += `实际收货数量【${handleQty}】小于收货任务的收货数量【${taskQty}】,\n` |
|
|
|
} |
|
|
|
if(str2){ |
|
|
|
//扫描数量小于任务数量,判断是否允许部分提交 |
|
|
|
if (this.jobContent.allowPartialComplete == "TRUE") { |
|
|
@ -753,6 +759,8 @@ |
|
|
|
}else{ |
|
|
|
this.submitJob(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
reject() { |
|
|
|
if (!this.reasonText) { |
|
|
|