|
|
@@ -312,6 +312,14 @@ const _getRecommendedLocation = async (lotNum, owner) => {
|
|
|
if (mode.value && putawayArea.value) params.putawayArea = putawayArea.value
|
|
|
const res = await getRecommendedLocation(params)
|
|
|
locationList.value = res.data
|
|
|
+ if (res.data.length === 0) {
|
|
|
+ scanError()
|
|
|
+ tips.value = `${searchBarcode.value}:暂无推荐库位,请重新扫描`
|
|
|
+ showNotify({ type: 'danger', duration: 3000, message: `${searchBarcode.value}:暂无推荐库位,请重新扫描` })
|
|
|
+ searchBarcode.value = ''
|
|
|
+ scanType.value=2
|
|
|
+ return
|
|
|
+ }
|
|
|
// 'EA'数据
|
|
|
const eaItems = res.data.filter(item => {return item.type === 'EA' || item.type === 'GY'})
|
|
|
// 获取 quantity < 300 的
|