Browse Source

YT-1350da成品发货,扫描箱码,提示不正确,有包装号,提示库存不足,

intex_online20241205
zhang_li 2 months ago
parent
commit
813d7b03c6
  1. 11
      src/pages/deliver/job/deliverDetailBatch.vue

11
src/pages/deliver/job/deliverDetailBatch.vue

@ -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
},

Loading…
Cancel
Save