chenrui 3 lat temu
rodzic
commit
655d5cb06f

+ 8 - 1
src/views/common/custSatelliteList.vue

@@ -21,6 +21,10 @@ import debounce from 'lodash/debounce'
 import { custList } from '@/api/customer'
 export default {
   props: {
+    verify: { //  当前输入客户名称是否是卫星仓客户 提示信息
+      type: Boolean,
+      default: false
+    }
   },
   data () {
     this.lastFetchId = 0
@@ -39,11 +43,14 @@ export default {
       const fetchId = this.lastFetchId
       this.data = []
       this.fetching = true
-      custList({ name: dealerName, satelliteFlag: 1, pageNo: 1, pageSize: 20 }).then(res => {
+      custList({ customerName: dealerName, satelliteFlag: 1, pageNo: 1, pageSize: 20 }).then(res => {
         if (fetchId !== this.lastFetchId) {
           return
         }
         this.data = res.data && res.data.list ? res.data.list : []
+        if (this.verify && this.data.length == 0) {
+          this.$message.info('客户不存在')
+        }
         this.fetching = false
       })
     },

+ 1 - 1
src/views/inventoryManagement/satelliteWarehouseInventory/list.vue

@@ -14,7 +14,7 @@
           <a-row :gutter="15">
             <a-col :md="6" :sm="24">
               <a-form-model-item label="客户名称" prop="customer.customerSn">
-                <custSatelliteList ref="custSatelliteList" @change="custSatelliteChange"></custSatelliteList>
+                <custSatelliteList ref="custSatelliteList" :verify="true" @change="custSatelliteChange"></custSatelliteList>
               </a-form-model-item>
             </a-col>
             <a-col :md="6" :sm="24">