Commit 9c3c3306 by xinla

客户添加方式问题

1 parent 7a033a91
......@@ -25,7 +25,7 @@ export function getListNew(params) {
return request({
url: service + '/findWeCustomerList',
method: 'get',
params
params,
})
}
......@@ -47,7 +47,7 @@ export function getList(params) {
return request({
url: service + '/list',
method: 'get',
params
params,
})
}
......@@ -56,7 +56,7 @@ export function getList(params) {
*/
export function sync() {
return request({
url: service + '/synchWeCustomer'
url: service + '/synchWeCustomer',
})
}
......@@ -76,7 +76,7 @@ export function makeLabel(data) {
return request({
url: service + '/makeLabel',
method: 'post',
data
data,
})
}
......@@ -96,7 +96,7 @@ export function removeLabel(data) {
return request({
url: service + '/removeLabel',
method: 'DELETE',
data
data,
})
}
......@@ -112,7 +112,7 @@ export function updateBirthday(data) {
return request({
url: service,
method: 'PUT',
data
data,
})
}
......@@ -121,7 +121,7 @@ export function exportCustomer(query) {
return request({
url: service + '/export',
method: 'get',
params: query
params: query,
})
}
......@@ -132,13 +132,13 @@ export function exportCustomer(query) {
export function lossRemind(status) {
return request({
url: getway + '/corp/startCustomerChurnNoticeSwitch/' + status,
method: 'PUT'
method: 'PUT',
})
}
export function getLossRemindStatus(status) {
return request({
url: getway + '/corp/getCustomerChurnNoticeSwitch/'
url: getway + '/corp/getCustomerChurnNoticeSwitch/',
})
}
/**
......@@ -155,7 +155,7 @@ export function jobExtends(data) {
return request({
url: service + '/jobExtends',
method: 'POST',
data
data,
})
}
......@@ -169,7 +169,7 @@ export function jobExtends(data) {
export function getDetail(params) {
return request({
url: service + '/findWeCustomerBaseInfo',
params
params,
})
}
......@@ -184,8 +184,8 @@ export function getSummary({ externalUserid, delFlag }) {
url: service + '/findWeCustomerInfoSummary',
params: {
externalUserid,
delFlag
}
delFlag,
},
})
}
/**
......@@ -199,7 +199,7 @@ export function getSummary({ externalUserid, delFlag }) {
export function getCustomerInfoByUserId(data) {
return request({
url: service + '/findWeCustomerInfoByUserId',
params: data
params: data,
})
}
......@@ -217,14 +217,14 @@ export function getFollowUpRecord(params) {
return request({
// url: service + '/followUpRecord',
url: getway + '/trajectory/findTrajectory',
params
params,
})
}
export function getRecordList(params) {
return request({
url: getway + '/trackRecord/followUpRecord',
params
params,
})
}
......@@ -235,7 +235,7 @@ export function getRecordList(params) {
*/
export function syncTrack(userIds) {
return request({
url: getway + `/moments/synchMomentsInteracte/${userIds}`
url: getway + `/moments/synchMomentsInteracte/${userIds}`,
})
}
......@@ -253,7 +253,7 @@ export function checkByCondition(data) {
return request({
url: service + '/checkByCondition',
method: 'post',
data
data,
})
}
......@@ -262,7 +262,7 @@ export function multiMakeTag(data) {
return request({
url: service + '/batchMakeLabel',
method: 'post',
data
data,
})
}
......@@ -270,6 +270,13 @@ export function multiMakeTag(data) {
export function getFieldFn(params) {
return request({
url: getway + '/portrait/findSysFieldTemplate',
params
params,
})
}
export function findCustomerAddWay(params) {
return request({
url: service + '/findCustomerAddWay',
params,
})
}
export const dictAddType = Object.freeze({
0: '未知来源',
1: '扫描二维码',
2: '搜索手机号',
3: '名片分享',
4: '群聊',
5: '手机通讯录',
6: '微信联系人',
7: '来自微信好友的添加申请',
8: '安装第三方应用时自动添加的客服人员',
9: '搜索邮箱',
10: '视频号主页添加',
11: '员工活码',
12: '新客拉群',
13: '活动裂变',
201: '内部成员共享',
202: '管理员/负责人分配'
})
import { findCustomerAddWay } from '@/api/customer'
let _dictAddType = undefined
export let dictAddType = (async function () {
if (!_dictAddType) {
let { data } = await findCustomerAddWay()
_dictAddType = {}
data.forEach((element) => {
_dictAddType[element.code] = element.value
})
}
return _dictAddType
})()
// export default {
// get dictAddType() {
// return findCustomerAddWay().then(({ data }) => {
// data.forEach((element) => {
// this.dictAddType[element.code] = element.value
// })
// })
// },
// }
export const dictJoinGroupType = Object.freeze({
1: '由成员邀请入群(直接邀请入群)',
2: '由成员邀请入群(通过邀请链接入群)',
3: '通过扫描群二维码入群'
3: '通过扫描群二维码入群',
})
export const dictTrackState = Object.freeze({
......@@ -28,5 +33,5 @@ export const dictTrackState = Object.freeze({
2: { name: '跟进中', color: 'warning' },
3: { name: '已成交', color: 'success' },
4: { name: '无意向', color: 'info' },
5: { name: '已流失', color: 'danger' }
5: { name: '已流失', color: 'danger' },
})
......@@ -70,6 +70,7 @@ export default {
watch: {},
computed: {},
created() {
dictAddType.then((res) => (this.dictAddType = res))
this.getStage()
this.getList()
this.getListTag()
......
......@@ -29,6 +29,7 @@ export default {
}
},
created() {
dictAddType.then((res) => (this.dictAddType = res))
this.getDetail()
this.getStage()
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!