Browse Source
- 在 common.js 中添加获取字典数据的方法- 新增的接口包括: - 获取销售人员详情 - 修改销售人员详情 - 线索列表 - 创建任务 - 新建跟进 - 小区列表 - 添加线索master
2 changed files with 84 additions and 0 deletions
@ -0,0 +1,74 @@ |
|||||
|
import http from '../common/axios.js' |
||||
|
|
||||
|
//销售相关接口
|
||||
|
export default { |
||||
|
//获取销售人员详情
|
||||
|
member(data) { |
||||
|
let url = '/member/member' |
||||
|
return http.get(url,data).then(res => { |
||||
|
return res; |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
//修改销售人员详情
|
||||
|
memberEdit(data) { |
||||
|
let url = '/member/member_edit' |
||||
|
return http.post(url,data).then(res => { |
||||
|
return res; |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
//线索列表
|
||||
|
salesList(data) { |
||||
|
let url = '/member/sales_list' |
||||
|
return http.get(url,data).then(res => { |
||||
|
return res; |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
//线索列表
|
||||
|
createTask(data) { |
||||
|
let url = '/member/create_task' |
||||
|
return http.get(url,data).then(res => { |
||||
|
return res; |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
//写新跟进
|
||||
|
createFollow(data) { |
||||
|
let url = '/member/create_follow' |
||||
|
return http.post(url,data).then(res => { |
||||
|
return res; |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
|
||||
|
//小区列表
|
||||
|
getCampusesList(data) { |
||||
|
let url = '/member/get_campuses_list' |
||||
|
return http.get(url,data).then(res => { |
||||
|
return res; |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
//添加线索
|
||||
|
setSales(data) { |
||||
|
let url = '/member/set_sales' |
||||
|
return http.post(url,data).then(res => { |
||||
|
return res; |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
||||
Loading…
Reference in new issue