Selaa lähdekoodia

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

peter 1 kuukausi sitten
vanhempi
commit
8ad9f55415
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  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)