order.js
2.32 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
import axios from './api' // 倒入 api
import config from './config.js' // 倒入默认配置
export const BASEURL = config.baseURL
/* 将所有接口统一起来便于维护
* 如果项目很大可以将 url 独立成文件,接口分成不同的模块
*/
//订单管理-发货单明细导出
export const EXPORTDISPATCHORDERDETAIL = (params) => {
return axios({
url: '/JXCSPOrder/exportDispatchOrderDetail',
method: 'POST',
data: params,
})
}
// 订单管理-设备分发规则-获取列表
export const PAGEEXSYSDISPATCHRULE = (params) => {
return axios({
url: '/ExsysDispatchRule/pageExsysDispatchRule',
method: 'GET',
params,
})
}
// 订单管理-设备分发规则-获取项目列表
export const GETLISTSUBJECT = (params) => {
return axios({
url: '/ExsysDispatchRule/listSubject',
method: 'GET',
params,
})
}
// 订单管理-设备分发规则-获取设备大类列表
export const GETLISTDEVICETYPE = (params) => {
return axios({
url: '/ExsysDispatchRule/listDeviceType',
method: 'GET',
params,
})
}
// 订单管理-设备分发规则-获取平台模块列表
export const GETLISTMODULES = (params) => {
return axios({
url: '/ExsysDispatchRule/listModules',
method: 'GET',
params,
})
}
// 订单管理-设备分发规则-导出excel
export const EXPORTEXSYSDISPATCHRULE = (params) => {
return axios({
url: '/ExsysDispatchRule/exportExsysDispatchRule',
method: 'GET',
params,
})
}
// 订单管理-设备分发规则-删除
export const DELEXSYSDISPATCHRULE = (params) => {
return axios({
url: '/ExsysDispatchRule/delExsysDispatchRule',
method: 'POST',
data:params,
})
}
// 订单管理-设备分发规则-新增分发规则
export const ADDEXSYSDISPATCHRULE = (params) => {
return axios({
url: '/ExsysDispatchRule/addExsysDispatchRule',
method: 'POST',
data:params,
})
}
// 订单管理-设备分发规则-获取规则详情
export const GETEXSYSDISPATCHRULE = (params) => {
return axios({
url: '/ExsysDispatchRule/getExsysDispatchRule',
method: 'GET',
params,
})
}
// 订单管理-分配订单-分配发货-根据子订单获取附件
export const LISTBSPICTUREURLBYBSMERCHANTORDER = (params) => {
return axios({
url: '/JXCSPOrder/listBsPictureUrlByBsMerchantOrder',
method: 'GET',
params,
})
}