orderManage.js
1.63 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
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) => {
console.log(data, "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)
}
export default {
pictureUpload,
getCrowdfundingParams,
orderEndExportApi,
getListApi,
getCountApi,
getOrderDetailApi,
orderExportApi,
finishOrderStatus,
addDeliveryApi
}