Browse Source

发货

intex
zhang_li 2 weeks ago
parent
commit
453394dd3e
  1. 30
      src/pages/deliver/job/deliverDetailBatch.vue

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

@ -228,8 +228,36 @@
}, },
getScanResult(result, managementTypeParams) { getScanResult(result, managementTypeParams) {
this.managementType = managementTypeParams this.managementType = managementTypeParams
let array1 = []//
let array2 = []//
this.detailSource.forEach(item=>{
item.subList.forEach(cur=>{
array1.push(cur.fromLocationCode)
array2.push(cur.batch)
})
})
//
const obj1 = array1.find(item=>item == result.fromLocationCode)
const obj2 = array2.find(item=>item == result.label.batch)
if(this.jobContent.allowModifyLocation == 'FALSE'){
if(!obj1){
this.showErrorMessage(`不可以扫描推荐库位【${array1.join(',')}】以外的库位`)
return
}
}
if(this.jobContent.allowModifyBatch == 'FALSE'){
if(!obj2){
this.showErrorMessage(`不可以扫描推荐批次【${array2.join(',')}】以外的批次`)
return
}
}
if(!obj1){
this.recommendQty = 0
}else{
this.recommendQty = result.balance.qty
}
if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){ if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
this.setDataBatch(result) this.setDataBatch(result)
}else{ }else{

Loading…
Cancel
Save