ソースを参照

fix: 工程登录更换业务员接口

Howie 1 年間 前
コミット
f076c7273f
2 ファイル変更13 行追加4 行削除
  1. 9 0
      src/api/common.js
  2. 4 4
      src/views/commercialEngineering/mixin/index.js

+ 9 - 0
src/api/common.js

@@ -122,6 +122,15 @@ export function getSalesmanList(params) {
     params
   })
 }
+// 获取业务员列表
+export function getSalesmanListService(params) {
+  return request({
+    url: '/admin/user/listService',
+    method: 'get',
+    params
+  })
+}
+
 
 // 更新发票
 export function updateReceipt(params) {

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

@@ -1,5 +1,5 @@
 import { getCommercialEngineeringDetail, getPositionProject } from '@/api/frock'
-import { getDictList, getSalesmanList } from '@/api/common'
+import { getDictList, getSalesmanListService } from '@/api/common'
 import { getDealerListV2 } from '@/api/basic_data/dealer'
 import { getFirstPartyCustomerManagementList } from '@/api/basic_data/partya'
 import { mapGetters } from 'vuex'
@@ -132,7 +132,7 @@ export default {
     }
     this.getDictList()
     this.getDealerListV2()
-    this.getSalesmanList()
+    this.getSalesmanListService()
     this.getFirstPartyCustomerManagementList()
     if (this.detailId) {
       this.getCommercialEngineeringDetail()
@@ -150,8 +150,8 @@ export default {
         })
       })
     },
-    getSalesmanList() {
-      getSalesmanList({
+    getSalesmanListService() {
+      getSalesmanListService({
         pageNum: 1,
         pageSize: -1,
         isCustomer: 0,