Browse Source

feat(market): 增加客户跟进记录和通话记录功能- 在 market.js 中添加了 followList 和 listCallUp 方法,用于获取跟进记录和通话记录

- 在 clue_info.vue 中增加了跟进记录和通话记录的数据显示
- 实现了获取客户详情后自动加载跟进记录和通话记录的功能
master
liutong 12 months ago
parent
commit
02bb042e47
  1. 20
      api/market.js
  2. 50
      pages/market/clue/clue_info.vue

20
api/market.js

@ -26,7 +26,7 @@ export default {
})
},
//线索列表
//转移跟进任务
createTask(data = {}) {
let url = '/member/create_task'
return http.get(url, data).then(res => {
@ -75,6 +75,24 @@ export default {
})
},
//跟进记录
followList(data={}) {
let url = '/member/follow_list'
return http.get(url, data).then(res => {
return res;
})
},
//拨打电话记录列表
listCallUp(data={}) {
let url = '/member/list_call_up'
return http.get(url, data).then(res => {
return res;
})
},

50
pages/market/clue/clue_info.vue

@ -319,7 +319,18 @@
select_type: 1,
id:'',//线id
clientInfo:{},//
clientInfo:{
follow:{
follow_up_time:'',
initial_customer_intent:'',
}
},//
//
followList:[],
//
listCallUp:[],
}
},
onLoad(options) {
@ -330,7 +341,9 @@
},
methods: {
async init(){
this.getInfo()
await this.getInfo()
this.getFollowList()
this.getListCallUp()
},
//
async getInfo(){
@ -347,6 +360,39 @@
}
this.clientInfo = res.data
},
//
async getFollowList(){
let data = {
sales_id:this.id//
}
let res = await marketApi.followList(data)
if(res.code != 1){
uni.showToast({
title: res.msg,
icon: 'none'
})
return
}
this.followList = res.data
},
//
async getListCallUp(){
let data = {
sales_id:this.id//
}
let res = await marketApi.listCallUp(data)
if(res.code != 1){
uni.showToast({
title: res.msg,
icon: 'none'
})
return
}
this.listCallUp = res.data
},
//
switch_tags(type){
this.switch_tags_type = type

Loading…
Cancel
Save