business.js
1.47 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
/*
* @Description: 统计率
* @Autor: renchao
* @LastEditTime: 2023-03-21 16:25:26
*/
/* 引入请求文件 */
import request from '@/utils/request'
/* 引入配置文件 */
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class business {
/**
* @description: 成功率统计
* @param {*} startDate
* @param {*} endDate
* @param {*} qxdm
* @author: renchao
*/
async getSuucessRate (startDate, endDate, qxdm) {
return request({
url: SERVER.SERVERAPI + '/rest/statistics/Business/sf',
method: 'get',
params: {
startDate: startDate,
endDate: endDate,
qxdm: qxdm
}
})
}
async diya (data) {
return request({
url: SERVER.SERVERAPI + '/rest/statistics/Business/diya',
method: 'post',
data
})
}
async getDyaqTotol (data) {
return request({
url: SERVER.SERVERAPI + '/rest/statistics/Business/getDyaqTotol',
method: 'post',
data
})
}
async djfTotal (data) {
return request({
url: SERVER.SERVERAPI + '/rest/statistics/Business/djfTotal',
method: 'post',
data
})
}
async djfcx (data) {
return request({
url: SERVER.SERVERAPI + '/rest/statistics/Business/djfcx',
method: 'post',
data
})
}
async cxltj (data) {
return request({
url: SERVER.SERVERAPI + '/rest/statistics/Business/cxltj',
method: 'post',
data
})
}
}
export default new business()