order.js
2.32 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
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}&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}`);
}