Просмотр исходного кода

智能仓-快上-无推荐库位给提示

zhaohuanhuan 2 недель назад
Родитель
Сommit
0b23db1baf
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      src/views/haikang/putaway/dispatch/index.vue

+ 8 - 0
src/views/haikang/putaway/dispatch/index.vue

@@ -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 的