api.js
5.85 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
// 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)
},
/** 客户确认签名 */
customerConfirmationSignature(data) {
return api.post('dj.api.smartcarlife.customerConfirmationSignature', data)
},
/** 查询园区店是否开启签名配置 */
getSignatureSwitch(data) {
return api.post('dj.api.smartcarlife.serviceMerchant.getSignatureSwitch', data)
},
/** 根据客户优惠券id查询订单 */
getOrderByCustomerCouponId(data) {
// return api.post('dj.api.smartcarlife.order.getOrderByCustomerCouponId ', data)
return api.get('dj.api.smartcarlife.order.getOrderByCustomerCouponId', data)
},
/** 获取园区店配置技师数据 */
getQYTechnicianList(data) {
return api.post('dj.api.smartcarlife.technician.list', data)
},
/** 根据手机号查询客户建档待跟进订单信息 */
getQueryCouponInfoByPhone(data) {
return api.post('dj.api.smartcarlife.customer.queryCouponInfoByPhone', data)
},
/** 根据订单更新技师信息 */
updateTechnicianInfo(data) {
return api.post('dj.api.smartcarlife.order.updateTechnicianInfo', data)
},
/** 根据订单商品获取膜卷号 */
getfilmRollNoByGoods(data) {
return api.post('dj.api.smarcarlife.stock.filmroll.list', data)
},
/** 子订单设置膜卷号 */
setfilmRollNo(data) {
return api.post('dj.api.smartcarlife.order.updateFilmRoll', data)
},
/** 保存员工日报(员工、管理员操作)*/
staffDailyReportSave(data) {
return api.post('dj.api.smartcarlife.staff.daily.report.save', data)
},
/** 员工日报详情 */
staffDailyReportDetail(data) {
return api.post('dj.api.smartcarlife.staff.daily.report.detail', data)
},
/** 查询当周员工日报是否填写列表 */
staffDailyReportDetailWeeklyList(data) {
return api.post('dj.api.smartcarlife.staff.daily.report.weekly.list', data)
},
/** 批复员工日报 */
staffDailyReportApprove(data) {
return api.post('dj.api.smartcarlife.staff.daily.report.approve', data)
},
/** 4s店查询对应的园区店 */
querySceneRefByShop(data) {
return api.post('dj.api.scenemerchantref.querySceneRefByShop', data)
}
}