|
|
@ -212,19 +212,21 @@ |
|
|
|
title:"校验中...", |
|
|
|
mask:true |
|
|
|
}) |
|
|
|
//校验箱码是否已经发料 |
|
|
|
issueCheck(result.package.number).then(res=>{ |
|
|
|
uni.hideLoading() |
|
|
|
if(res.data.length==0){ |
|
|
|
|
|
|
|
this.setData(result); |
|
|
|
}else { |
|
|
|
this.showErrorMessage("箱码["+result.package.number+"]已经发过料") |
|
|
|
} |
|
|
|
//校验箱码是否已经发料 |
|
|
|
// issueCheck(result.package.number).then(res=>{ |
|
|
|
// uni.hideLoading() |
|
|
|
// if(res.data.length==0){ |
|
|
|
// this.setData(result); |
|
|
|
// }else { |
|
|
|
// this.showErrorMessage("箱码["+result.package.number+"]已经发过料") |
|
|
|
// } |
|
|
|
|
|
|
|
}).catch(error=>{ |
|
|
|
uni.hideLoading() |
|
|
|
this.showErrorMessage(error.message) |
|
|
|
}) |
|
|
|
// }).catch(error=>{ |
|
|
|
// uni.hideLoading() |
|
|
|
// this.showErrorMessage(error.message) |
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
@ -257,9 +259,7 @@ |
|
|
|
newDetail.packingNumber = pack.number |
|
|
|
item.subList.push(newDetail); |
|
|
|
} else { |
|
|
|
if (detail.scaned == true) { |
|
|
|
this.showErrorMessage("箱码[" + pack.number + "]已经扫描") |
|
|
|
} |
|
|
|
detail.handleQty=calc.add(detail.qty,balance.qty) |
|
|
|
} |
|
|
|
} |
|
|
|
calcHandleQty(this.detailSource) |
|
|
|