boutiquecouponApi.js
2.83 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
import api from '~/utils/request/request'
module.exports = {
/**分页查询核销用户券 */
getBoutiquecouponList(data) {
return api.post({
method: `scrm.api.boutiquecoupon.customer.coupon.search`,
...data
})
},
/**获取商户券详情 */
getMerchantCoupon(id) {
return api.post({
method: `scrm.api.boutiquecoupon.merchantCoupon.getById`,
id
})
},
/** 获取精品礼券详情 */
getCouponDetail(id) {
return api.post({
method: 'scrm.api.boutiquecoupon.customer.coupon.detail',
id
})
},
/** 领取礼券 生成待核销码 */
getCoupon(data) {
return api.post({
method: `scrm.api.boutiquecoupon.customer.coupon.add`,
...data
})
},
/**获取园区店信息 */
getYqInfo(data) {
return api.post({
method: 'scrm.api.boutiquecoupon.serviceMerchant.getByMerchantId',
...data
})
},
/** 精品交付单列表 */
getUserBoutiqueList(data) {
data.pageSize = 10
return api.post({
method: 'scrm.api.boutiquecoupon.goodsOrder.listMyOrder',
...data
},
true
)
},
/**扫码后根据订单号获取订单详情 */
scanGetDetailByOrderCode(data) {
return api.post({
method: 'scrm.api.boutiquecoupon.order.detailScan',
...data
})
},
/**根据订单号获取订单详情 */
getDetailByOrderCode(data) {
return api.post({
method: 'scrm.api.boutiquecoupon.order.detail',
...data
})
},
/**评价 */
addComment(data) {
return api.post({
method: 'scrm.api.boutiquecoupon.orderComment.add',
...data
})
},
/**
* 门店助手精品礼券
*/
getMerchantCouponList(data) {
return api.post({
method: 'scrm.api.boutiquecoupon.merchant.coupon.list',
...data
}, true)
},
/**
* 门店助手精品礼券 核销记录
*/
getMerchantCustomerCouponList(data) {
data.pageSize = 10
return api.post({
method: 'scrm.api.boutiquecoupon.customer.coupon.search',
...data
}, true)
},
/**
* 根据门店ID获取4S店员工
*/
getMerchantEmployee(data) {
return api.post({
method: 'scrm.api.boutiquecoupon.employee.getByMerchantId',
...data
}, true)
},
/**
* 保存商户券门店助手订阅通知信息
*
*/
saveSaNotifyInfo(data) {
return api.post({
method: 'scrm.api.boutiquecoupon.merchantCoupon.saveSaNotifyInfo',
...data
})
},
/**
* 获取数据看板数据
*
*/
getBoardData(data) {
return api.post({
method: 'scrm.api.boutiquecoupon.orderSummary.getShopMerchantOutputReport',
...data
})
},
/**
* 获取数据看板数据
*
*/
getvinSetting(data) {
return api.post({
method: 'scrm.api.boutiquecoupon.servicemerchant.yqMerchantConfig.detail',
...data
})
}
}