|
|
@ -547,7 +547,7 @@ |
|
|
|
detail.totalQty =calc.add(detail.totalQty,item.handleQty) |
|
|
|
if(item.scaned){ |
|
|
|
if(item.handleQty>item.balance.qty){ |
|
|
|
str2 += `批次【${item.batch}】提交数量【${item.handleQty}】不可以大于库存数量【${item.balance.qty}】` |
|
|
|
str2 += `物料号【${detail.itemCode}】批次【${item.batch}】提交数量【${item.handleQty}】不可以大于库存数量【${item.balance.qty}】` |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
@ -561,25 +561,30 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
// this.jobContent.allowSmallerQty = "FALSE" |
|
|
|
// this.jobContent.allowBiggerQty = "FALSE" |
|
|
|
if (this.jobContent.allowSmallerQty == "FALSE") { |
|
|
|
if (str) { |
|
|
|
str = '不允许提交\n' + str |
|
|
|
this.showErrorMessage(str) |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.allowBiggerQty == 'FALSE') { |
|
|
|
if (str1) { |
|
|
|
str1 = '不允许提交\n' + str1 |
|
|
|
this.showErrorMessage(str1) |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (str2) { |
|
|
|
str2 = '不允许提交\n' + str2 |
|
|
|
this.showErrorMessage(str2) |
|
|
|
return false |
|
|
|
} |
|
|
|
return str || str1 || str2 ? false : true |
|
|
|
|
|
|
|
return true |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|