|
|
@ -187,7 +187,11 @@ |
|
|
|
getBalanceByFilter(params).then(res => { |
|
|
|
uni.hideLoading() |
|
|
|
if (res.data.list.length > 0) { |
|
|
|
this.showErrorMessage("包装在库位【" + res.data.list[0].locationCode + "】已有库存余额"); |
|
|
|
if(this.bussinessCode=="Repleinment"){ |
|
|
|
this.showErrorMessage("此物料已补料"); |
|
|
|
}else { |
|
|
|
this.showErrorMessage("包装在库位【" + res.data.list[0].locationCode + "】已有库存余额"); |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.queryBalance(this.resultData); |
|
|
|
} |
|
|
@ -239,7 +243,15 @@ |
|
|
|
|
|
|
|
}).catch(error => { |
|
|
|
uni.hideLoading() |
|
|
|
this.showErrorMessage(error) |
|
|
|
if(this.bussinessCode=="Repleinment"){ |
|
|
|
if(error.includes("库存余额不足")){ |
|
|
|
this.showErrorMessage("没有此物料库存,请核对库存余额与标签是否一致") |
|
|
|
}else { |
|
|
|
this.showErrorMessage(error) |
|
|
|
} |
|
|
|
}else { |
|
|
|
this.showErrorMessage(error) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|