Browse Source

发料提示

intex
zhang_li 4 days ago
parent
commit
2b18a3878c
  1. 26
      src/pages/issue/job/issueDetailBatch.vue

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

@ -227,7 +227,9 @@
that.fromLocationCode = that.subList[0].fromLocationCode
that.detailSource.forEach(r => {
r.isRecommTaskItem = true//
r.subList.forEach(s => {
s.isRecommTaskItem = true//
})
})
//
if (this.scanMessage) {
@ -359,6 +361,7 @@
packQty:result.package.packQty,
packUnit:result.package.packUnit,
uom:result.balance.uom,
isRecommTaskItem:false,//
// packList:[{
// scaned : true,
// handleQty : Number(result.label.qty),
@ -436,6 +439,7 @@
itemDetail.packUnit=result.package.packUnit
itemDetail.fromlocationCode=this.fromLocationCode
itemDetail.toLocationCode=this.toLocationCode
itemDetail.isRecommTaskItem = true//
// itemDetail.toInventoryStatus = "OK"
// itemDetail.packList.forEach(pac => {
// pac.scaned = true
@ -637,24 +641,24 @@
str1 += `物料号【${detail.itemCode}】提交数量【${detail.handleQty}】不允许大于任务数量【${detail.qty}`
}
}
if(detail.isRecommTaskItem){//
detail.handleQty = detail.handleQty || 0
if(detail.handleQty == 0 && isTrue){
isTrue = false
str3 = '推荐的箱码没扫,'
}
if(parseFloat(detail.handleQty)!=parseFloat(detail.qty)){
str3 += `物料号【${detail.itemCode}】扫描数量【${parseFloat(detail.handleQty)}】和任务数量【${detail.qty}】不一致`
}
}
detail.subList.forEach(item => {
if(item.scaned){
if(parseFloat(item.handleQty)>parseFloat(item.balance.qty)){
str2 += `物料号【${detail.itemCode}】批次【${item.batch}】提交数量【${parseFloat(item.handleQty)}】不可以大于库存数量【${item.balance.qty}`
}
}
if(item.isRecommTaskItem){//
item.handleQty = item.handleQty || 0
if(item.handleQty == 0 && isTrue){
isTrue = false
str3 = '推荐的箱码没扫,'
}
if(parseFloat(item.handleQty)!=parseFloat(item.qty)){
str3 += `物料号【${detail.itemCode}】批次【${item.batch}】扫描数量【${parseFloat(item.handleQty)}】和任务数量【${item.qty}】不一致`
}
}
})
})
if (this.jobContent.allowSmallerQty == "FALSE") {

Loading…
Cancel
Save