orderManage.js
2.17 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
import request from "./request"
// import requestCommon from "./request3"
const defaultPath = "scrm.api.shopmall."
const getListApi = (data) => {
data.method = `${defaultPath}order.noSessionPage`
return request(data)
}
const getCountApi = (data) => {
data.method = `${defaultPath}order.noSessionCount`
return request(data)
}
const getOrderDetailApi = (data) => {
data.method = `${defaultPath}order.noSessionDetail`
return request(data)
}
/** 营销状态设为已完结 */
const finishOrderStatus = (data) => {
data.method = "scrm.api.shopmall.weapp.order.status.finish.nosession"
return request(data)
}
const orderExportApi = (data) => {
data.method = `${defaultPath}order.noSessionExport`
return request(data)
}
const pictureUpload = (data) => {
data.method = "glsx.accounts.biz.common.pictureUpload"
return request(data, "post", ["file"])
// return request(data)
}
// 导入对账单
const orderEndExportApi = (data) => {
data.method = `${defaultPath}order.orderEndExport`
return request(data)
}
/** 获取众筹活动名称&门店 */
const getCrowdfundingParams = (data) => {
data.method = "scrm.api.shopmall.crowdfunding.activity.parameter.list"
/** 1秒杀 2直播间活动 3众筹 4膨胀金 */
data.marketingType = 3
return request(data)
}
/** 快递信息&门店 */
const addDeliveryApi = (data) => {
data.method = "dj.api.smartcarlife.configUpgradeOrder.addDelivery"
return request(data)
}
// 待补录订单批量关联-主订单列表
const waitOrderListApi = (data) => {
data.method = "dj.api.smartcarlife.order.pageForBatchRef"
return request(data)
}
// 待补录订单批量关联-交易参考号列表
const waitOrderTradeListApi = (data) => {
data.method = "dj.api.smartcarlife.waitinputorder.pageForBatchRef"
return request(data)
}
// 批量关联流水与订单
const batchWaitOrderApi = (data) => {
data.method = "dj.api.smartcarlife.waitinputorder.batchRef"
return request(data, "post")
}
export default {
pictureUpload,
getCrowdfundingParams,
orderEndExportApi,
getListApi,
getCountApi,
getOrderDetailApi,
orderExportApi,
finishOrderStatus,
addDeliveryApi,
waitOrderListApi,
waitOrderTradeListApi,
batchWaitOrderApi
}