order.js
1.09 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
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 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);
}
export async function queryGuestOrderDetail(orderId) {
return await request.get(`/order/webDetail/${orderId}`);
}