helpCard.js
3.29 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/**
* 新增参数sign 判断接口是否需要sign签名
*/
/**
* 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
* @param {*} params
* @returns
*/
import { http } from '@/main'
const getFollower = params => {
params.method = 'entmicro.api.staff.listFollowerStaffByPage'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const getStaffList = params => {
params.method = 'entmicro.api.staff.findStaffByMerchantId'
return http({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
sign: true
})
}
const findAllByPage = params => {
params.method = 'entmicro.api.dracIm.findAllByPage'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//删除联系方式
const deleteContact = params => {
params.method = 'entmicro.api.drac.rescue.deleteContact'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//救援卡详情
const getConfigDetail = params => {
params.method = 'entmicro.api.drac.rescue.config.getConfigDetail'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//救援卡联系方式列表
const listContact = params => {
params.method = 'entmicro.api.drac.rescue.listContact'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//道路救援卡客户列表查询接口
const listCustomer = params => {
params.method = 'entmicro.api.drac.rescue.listCustomer'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//道路救援卡客户列表查询接口
const listCustomerExport = params => {
params.method = 'entmicro.api.drac.rescue.listCustomerExport'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//保存救援卡配置
const saveConfig = params => {
params.method = 'entmicro.api.drac.rescue.saveConfig'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//保存联系方式
const saveContact = params => {
params.method = 'entmicro.api.drac.rescue.saveContact'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//道路救援卡客户列表查询接口
const updateConfig = params => {
params.method = 'entmicro.api.drac.rescue.config.updateConfig'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//编辑联系方式
const updateContact = params => {
params.method = 'entmicro.api.drac.rescue.updateContact'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const validFirst = params => {
params.method = 'entmicro.api.drac.rescue.config.validFirst'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
getStaffList,
getFollower,
findAllByPage,
deleteContact,
getConfigDetail,
listContact,
listCustomer,
listCustomerExport,
saveConfig,
saveContact,
updateConfig,
updateContact,
validFirst
}