| | |
| | | if (this.orgType == 1 && !this.$route.query.merId) { |
| | | objForm = { |
| | | searchKey: this.value, |
| | | storeId: this.storeId, |
| | | // storeId: this.storeId, |
| | | } |
| | | } else { |
| | | objForm = { |
| | | searchKey: this.value, |
| | | storeId: this.storeId, |
| | | // storeId: this.storeId, |
| | | merId: this.merId, |
| | | } |
| | | } |
| | |
| | | onSearch(val) { |
| | | this.list = [] |
| | | this.loading = true |
| | | this.$api.storeStoreList({ |
| | | searchKey: this.value, |
| | | merId: this.merId, |
| | | }).then(res => { |
| | | let objForm = {} |
| | | if (this.orgType == 1 && !this.$route.query.merId) { |
| | | objForm = { |
| | | searchKey: this.value, |
| | | // storeId: this.storeId, |
| | | } |
| | | } else { |
| | | objForm = { |
| | | searchKey: this.value, |
| | | // storeId: this.storeId, |
| | | merId: this.merId, |
| | | } |
| | | } |
| | | this.$api.storeStoreList(objForm).then(res => { |
| | | if (res.body.storeList.length < 10) { |
| | | this.list = [...this.list, ...res.body.storeList] |
| | | this.storeId = '' |