浏览代码

change: 创建po.搜索供应商结果全是隐藏数据时进行提示.

peter 1 月之前
父节点
当前提交
8ad9f55415
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/pages/purchase-order/edit.vue

+ 5 - 0
src/pages/purchase-order/edit.vue

@@ -238,6 +238,7 @@
                   <el-select
                     v-model="form.currentVendor"
                     :remote-method="utils.debounce(getSupplierLists, 1000)"
+                    @input="form.currentVendor = ''"
                     remote
                     style="width: 100%"
                     :loading="vendorLoading"
@@ -2091,6 +2092,10 @@ const getSupplierLists = function (string: string) {
             },
           )
         }
+
+        if (vendorList.value.length === 0 && res.data.length > 0) {
+          ElMessageBox.alert('该供应商已被隐藏, 请联系相关同事修改。', 'Alert')
+        }
         vendorLoading.value = false
         loading.value = false
         resolve(true)