order.js
3.05 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
import { request } from "@/utils/request";
/**
* @method 保存订单
*/
export async function saveOrder(params, config) {
return await request.post(`/order/add`, params, config);
}
/**
* @method 订单详情
*/
export async function queryOrderDetail(id) {
return await request.get(`/order/detail/${id}`);
}
/**
* @method 订单详情
*/
export async function queryOrderTransportDetail(id) {
return await request.get(`/order/detail/transport/${id}`);
}
/**
* @method 订单列表
*/
export async function queryOrderList(data) {
return await request.get(
`/order/query/list?type=${data.type}${data.evaluateFlag ? '&evaluateFlag='+ data.evaluateFlag : ''}&pageNo=${data.pageNo}&pageSize=${data.pageSize}`
);
}
/**
* @method 修改订单状态
*/
export async function updateOrder(params, config) {
return await request.put(`/order/update`, params, config);
}
/**
* @method 上传图片
*/
export async function uploadImageUrlByType(params, config) {
return await request.post(`/order/upload/imageUrl`, params, config);
}
/**
* @method 提交评价
*/
export async function uploadEvaluate(params, config) {
return await request.post(`/order/evaluate`, params, config);
}
/**
* 匿名访问
* @param {*} orderId
* @returns
*/
export async function queryGuestOrderDetail(orderId) {
return await request.get(`/order/webDetail/${orderId}`);
}
/**
* 查询公司下清运车辆驾驶员
* @param {*} companyId
*/
export async function queryOrderDispatch(orderId) {
return await request.get(`/order/queryDispatch/${orderId}`);
}
export async function dispatchOrders(params,config) {
return await request.put('/order/dispatch', params,config);
}
export async function dispatchDisposalOrders(params,config) {
return await request.put('/order/dispatch/disposal', params,config);
}
export async function queryOrderHandlerStatus(orderId, config) {
return await request.get(`/order/queryOrderHandlerStatus/${orderId}`, config);
}
export async function queryDisposalDispatch(orderId) {
return await request.get(`/order/queryDisposalDispatch/${orderId}`);
}
export async function checkCode(validCode) {
return await request.get(`/order/check/code/${validCode}`);
}
export async function askTransport(params,config) {
return await request.post(`/order/askTransport`,params,config);
}
export async function scanDetail(askId) {
return await request.get(`/order/scan/detail/${askId}`);
}
export async function createHandlerQrCode(orderId) {
return await request.get(`/order/handler/qrCode/${orderId}`);
}
export async function queryOrderMessageCount() {
return await request.get(`/order/query/message/count`);
}
export async function queryOrderMessageList(pageNo,pageSize) {
return await request.get(`/order/query/message/list/${pageNo}/${pageSize}`);
}
export async function readMessage(data) {
return await request.put(`/order/read/message`,data);
}
export async function successOrder(data) {
return await request.put(`/order/update`,data);
}
export async function queryBadgeByType(type) {
return await request.get(`/order/queryBadgeByType/${type}`);
}