Sfoglia il codice sorgente

fix: 商用工程登录更换经销商接口

Howie 1 anno fa
parent
commit
204b4f1d97

+ 7 - 0
src/api/basic_data/dealer.js

@@ -6,6 +6,13 @@ export function getDealerListV2(params) {
     data: params
   })
 }
+export function getDealerListV3(params) {
+  return request({
+    url: `/StageCustomer/list/v3?moduleId=${params.moduleId}`,
+    method: 'post',
+    data: params
+  })
+}
 export function exportDealerListV2(data, name) {
   return postBlob({
     url: '/customer/user/export/v2',

+ 5 - 5
src/views/commercialEngineering/components/base.vue

@@ -585,7 +585,7 @@ import GeographicalPosi from './geographicalPosi.vue'
 import FileUpload from '@/components/Common/file-upload.vue'
 import { mapGetters } from 'vuex'
 import { getPositionProject, getHistory } from '@/api/frock'
-import { getDealerListV2 } from '@/api/basic_data/dealer'
+import { getDealerListV3 } from '@/api/basic_data/dealer'
 
 export default {
   components: {
@@ -718,7 +718,7 @@ export default {
           await this.getCallbackPosition(this.formData.areaId, this.formData.streetId, 'street', 'lbsId')
         }
         if (this.module !== 'add' && this.isTradeExaminer && this.formData.customerId && this.formData.customerName) {
-          this.getDealerListV2(this.formData.customerName)
+          this.getDealerListV3(this.formData.customerName)
         }
       }
     }
@@ -1036,10 +1036,10 @@ export default {
     },
     remoteMethod(e){
       this.loading = false
-      this.getDealerListV2(e)
+      this.getDealerListV3(e)
     },
-    getDealerListV2(e){
-      getDealerListV2({
+    getDealerListV3(e){
+      getDealerListV3({
         pageNum: 1,
         pageSize: 100,
         params:[

+ 4 - 4
src/views/commercialEngineering/mixin/index.js

@@ -1,6 +1,6 @@
 import { getCommercialEngineeringDetail, getPositionProject } from '@/api/frock'
 import { getDictList, getSalesmanListService } from '@/api/common'
-import { getDealerListV2 } from '@/api/basic_data/dealer'
+import { getDealerListV3 } from '@/api/basic_data/dealer'
 import { getFirstPartyCustomerManagementList } from '@/api/basic_data/partya'
 import { mapGetters } from 'vuex'
 export default {
@@ -138,7 +138,7 @@ export default {
     this.getSalesmanListService()
     this.getFirstPartyCustomerManagementList()
     if (this.module === 'add') {
-      this.getDealerListV2()
+      this.getDealerListV3()
 
     }
     if (this.detailId) {
@@ -183,8 +183,8 @@ export default {
         })
       })
     },
-    getDealerListV2() {
-      getDealerListV2({
+    getDealerListV3() {
+      getDealerListV3({
         pageNum: 1,
         pageSize: 100
       }).then(res => {