orderManagement.js
771 Bytes
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
import request from './request'
import RequestMethods from './request.methods'
const path = 'order/'
// 订单查询列表
function orderList(data) {
data.method = `${path}search`
return request(data)
}
// 订单退款接口
function orderRefund(data) {
data.method = `${path}refund`
return request(data, RequestMethods.POST)
}
// 订单详情
function orderInfo(data, param) {
data.method = `${path}info/${param}`
return request(data)
}
// 导出订单列表
function orderExport(data) {
data.method = `${path}export`
return request(data, RequestMethods.GET, 'arraybuffer')
}
// 门店列表
function shopList(data) {
data.method = 'shop/list'
return request(data)
}
export {
orderList,
orderRefund,
orderInfo,
orderExport,
shopList
}