|
@@ -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
|
|
|
})
|
|
|
},
|