journey.js
1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-07 16:54:06
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-26 10:26:30
* @FilePath: \scrm-micro-journey\src\api\modules\journeyConfig.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http_sop, http_merchant } from '@/main'
//查询模板实例客户分页列表
const getCustomersList = params => {
return http_sop({
url: `process/sop/api/sopInsts/customers`,
method: 'get',
data: params,
sign: false
})
}
//查询模板实例客户详细信息
const getCustomersDetail = params => {
return http_sop({
url: `process/sop/api/sopInsts/customers/detail`,
method: 'get',
data: params,
sign: false
})
}
//查询模板实例客户详细信息
const stageUpdate = params => {
return http_sop({
url: `process/sop/api/sopInsts/customers/stageUpdate`,
method: 'post',
data: params,
noSessionId: true,
sign: false
})
}
//查询模板实例客户详细信息
const exportExcel = params => {
return http_sop({
url: `process/sop/api/sopInsts/customers/export`,
method: 'get',
data: params,
sign: false
})
}
/**
* 状态刷新
*/
const refreshInst = params => {
return http_sop({
url: `process/sop/api/inst/refresh/${params.instId}`,
method: 'get',
// data: params,
sign: false
})
}
/**获取跟进员工 */
const getFindMerchantStaffList = params => {
params.method = 'merchants.api.open.findMerchantStaffList'
return http_merchant({
url: '/rop-merchants/router',
data: params
})
}
export default { getCustomersList, getCustomersDetail, stageUpdate, exportExcel, refreshInst, getFindMerchantStaffList }