api.js
3.72 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
// const api = wx.$request
import api from '~/utils/request/request.js'
// const api = wx.$request
module.exports = {
/** 工单列表 */
getWorkList(data) {
let params = data || {}
params.sceneType = 1
return api.post('dj.api.smartcarlife.order.search', {
pageSize: 10,
...params
})
},
/** 提交施工订单 */
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) {
data = data || {}
data.sceneType = 1
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)
},
/** 战败订单批量补录 */
notUpgradeOrder(data) {
return api.post('dj.api.smartcarlife.order.notUpgrade.batchInsert', data)
},
/** 批量新建预录工单 */
createPrerecordedOrderBatch(data) {
return api.post('dj.api.smartcarlife.order.preliminaryOrder.batch', data)
},
/** 新建预录工单 */
createPrerecordedOrder(data) {
return api.post('dj.api.smartcarlife.order.preliminaryOrder', data)
},
/** 升级商品生成条形码 */
createBarCode(data) {
return api.post('dj.api.smartcarlife.common.createBarCode', data)
},
/** 获取商户基本信息 */
getServiceBaseInfo(data) {
return api.post('dj.api.smartcarlife.serviceMerchant.getServiceBaseInfo', data)
},
/** 根据id查询待补录订单 */
waitinputorderSelectById(data) {
return api.post('dj.api.smartcarlife.weapp.waitinputorder.selectById', data)
},
}