diff --git a/api/market.js b/api/market.js index c2fe48f..ed28006 100644 --- a/api/market.js +++ b/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; + }) + }, + + + diff --git a/pages/market/clue/clue_info.vue b/pages/market/clue/clue_info.vue index b337c57..5d4f5ef 100644 --- a/pages/market/clue/clue_info.vue +++ b/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