api.js
2.65 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
const api = wx.$request
module.exports = {
/** 工单列表 */
getWorkList(data) {
return api.post('dj.api.smartcarlife.order.search', {
pageSize: 10,
...data
})
},
/** 提交施工订单 */
confirmConstruction(data) {
return api.post('dj.api.smartcarlife.order.confirmConstruction', data)
},
/**撤销工单 */
revokeOrder(data) {
return api.post('dj.api.smartcarlife.order.revoke', data)
},
/** 根据订单号获取订单详情 */
getOrderDetail(data) {
return api.post('dj.api.smartcarlife.order.detail', data)
},
/**二维码 */
createWeappQrcode(data) {
// dj.api.smartcarlife.serviceMerchant.getByMerchantId
return api.post('dj.api.smartcarlife.common.createWeappQrcode', data)
},
/**商品列表 */
getOrderBaseGoodsList(data) {
return api.post('dj.api.smartcarlife.orderUpgradeGoods.listByMerchantId', data)
},
/** 选择支付方式下单 */
createWithPay(data) {
return api.post('dj.api.smartcarlife.order.createWithPay', data)
},
/**根据手机号查询客户信息 */
checkCustomerPhone(data) {
return api.post('dj.api.smartcarlife.customer.queryByPhone', data)
},
/**改变支付订单状态 */
createPayOrder(data) {
return api.post('dj.api.smartcarlife.payOrder.create', data)
},
/** */
installOnly(data) {
return api.post('dj.api.smartcarlife.order.installOnly', data)
},
/**获取精品礼券 */
getCouponDeatil(data) {
return api.post('dj.api.smartCarLife.customer.coupon.detail', data)
},
/** 根据订单号获取种草信息*/
getGrassDetail(data) {
return api.post('dj.api.smartcarlife.orderShareRecord.detail', data)
},
// 获取园区店配置
getYqStoreConfig(data) {
return api.get('dj.api.smarcarlife.yqMerchantConfig.detail', data)
},
/** 修改工单时间 */
updateOrderTime(data) {
return api.post('dj.api.smartcarlife.order.updateOrderTime', data)
},
/** 修改客户信息 */
updateOrderInfo(data) {
return api.post('dj.api.smartcarlife.order.updateOrderInfo', data)
},
/** 根据订单状态统计订单数*/
statByStatus(data) {
return api.post('dj.api.smartcarlife.order.statByStatus', data)
},
/** 获取企微活码 */
getWorkWechatLiveQRCode(data) {
return api.post('dj.api.smartcarlife.order.getWorkWechatLiveQRCode', data)
},
/** 订单补录 */
supplementOrder(data) {
return api.post('dj.api.smartcarlife.order.supplementOrder', data)
},
/** 订单修正 */
correctionOrder(data) {
return api.post('dj.api.smartcarlife.order.correctionOrder', data)
}
}