|
@ -265,20 +265,12 @@ |
|
|
closeScan() { |
|
|
closeScan() { |
|
|
this.resizeCollapse(); |
|
|
this.resizeCollapse(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
getScanResult(result, managementTypeParams) { |
|
|
getScanResult(result, managementTypeParams) { |
|
|
if(!result.package.number){ |
|
|
if(!result.package.number){ |
|
|
this.showErrorMessage("包装号不能为空") |
|
|
this.showErrorMessage("包装号不能为空") |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
uni.showLoading({ |
|
|
|
|
|
title:"校验中...", |
|
|
|
|
|
mask:true |
|
|
|
|
|
}) |
|
|
|
|
|
//校验箱码是否已经发料 |
|
|
|
|
|
issueCheck(result.package.number).then(res=>{ |
|
|
|
|
|
uni.hideLoading() |
|
|
|
|
|
if(res.data.length==0){ |
|
|
|
|
|
this.managementType = managementTypeParams |
|
|
this.managementType = managementTypeParams |
|
|
let array1 = []//记录推荐的库位 |
|
|
let array1 = []//记录推荐的库位 |
|
|
let array2 = []//记录推荐的批次 |
|
|
let array2 = []//记录推荐的批次 |
|
@ -312,17 +304,9 @@ |
|
|
if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){ |
|
|
if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){ |
|
|
this.setDataBatch(result) |
|
|
this.setDataBatch(result) |
|
|
} |
|
|
} |
|
|
}else { |
|
|
}, |
|
|
this.showErrorMessage("箱码["+result.package.number+"]已经发过料") |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}).catch(error=>{ |
|
|
|
|
|
uni.hideLoading() |
|
|
|
|
|
this.showErrorMessage(error.message) |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
setDataBatch11(result) { |
|
|
setDataBatch11(result) { |
|
|
console.log(result) |
|
|
console.log(result) |
|
|
try { |
|
|
try { |
|
@ -560,7 +544,7 @@ |
|
|
that.$forceUpdate() |
|
|
that.$forceUpdate() |
|
|
}, 100) |
|
|
}, 100) |
|
|
}else { |
|
|
}else { |
|
|
this.showErrorMessage("包装号["+packingNumber+"]已经扫描") |
|
|
itemDetail.handleQty=calc.add(itemDetail.handleQty,result.label.qty) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|