chenrui 4 лет назад
Родитель
Сommit
de3ebc73d7
2 измененных файлов с 13 добавлено и 3 удалено
  1. 11 1
      src/api/dealer.js
  2. 2 2
      src/views/allocationManagement/transferOut/basicInfoModal.vue

+ 11 - 1
src/api/dealer.js

@@ -27,7 +27,17 @@ export const dealerQueryList = (params) => {
     method: 'post'
     method: 'post'
   })
   })
 }
 }
-
+//  经销商 列表 有分页
+export const dealerSubareaScopeList = (params) => {
+  const url = `/dealer/queryBySubareaScope/${params.pageNo}/${params.pageSize}`
+  delete params.pageNo
+  delete params.pageSize
+  return axios({
+    url: url,
+    data: params,
+    method: 'post'
+  })
+}
 //  经销商保存
 //  经销商保存
 export const dealerSave = (params) => {
 export const dealerSave = (params) => {
   return axios({
   return axios({

+ 2 - 2
src/views/allocationManagement/transferOut/basicInfoModal.vue

@@ -58,7 +58,7 @@
 import debounce from 'lodash/debounce'
 import debounce from 'lodash/debounce'
 import { VSelect } from '@/components'
 import { VSelect } from '@/components'
 import { allocateBillSave } from '@/api/allocateBill'
 import { allocateBillSave } from '@/api/allocateBill'
-import { dealerQueryList } from '@/api/dealer'
+import { dealerSubareaScopeList } from '@/api/dealer'
 import { getLookUpData } from '@/api/data'
 import { getLookUpData } from '@/api/data'
 import { allocateTypeAllList } from '@/api/allocateType'
 import { allocateTypeAllList } from '@/api/allocateType'
 export default {
 export default {
@@ -109,7 +109,7 @@ export default {
     fetchUser (value) {
     fetchUser (value) {
       console.log('fetching user', value)
       console.log('fetching user', value)
       this.fetching = true
       this.fetching = true
-      dealerQueryList({ nameLike: value, pageNo: 1, pageSize: 20 }).then(res => {
+      dealerSubareaScopeList({ nameLike: value, pageNo: 1, pageSize: 20 }).then(res => {
         if (res.status == 200) {
         if (res.status == 200) {
           this.dealerData = res.data.list
           this.dealerData = res.data.list
           this.fetching = false
           this.fetching = false