feat: 代客下单更新

This commit is contained in:
2025-03-04 18:05:21 +08:00
parent cff5363260
commit 833676f545
24 changed files with 307 additions and 116 deletions

View File

@@ -18,11 +18,11 @@ const API = {
});
},
// 获取台桌详情
get(id: string | number) {
get(params: getRequest) {
return request({
url: `${baseURL}/detail`,
method: "get",
params: { id }
params
});
},
edit(data: editRequest) {
@@ -122,7 +122,17 @@ export interface editRequest {
status?: null | string;
[property: string]: any;
}
export interface getRequest {
/**
* 台桌id
*/
id?: string;
/**
* 桌码
*/
tableCode?: string;
[property: string]: any;
}
export interface getListRequest {
/**
* 区域id

View File

@@ -16,6 +16,14 @@ const OrderApi = {
data
});
},
//订单详情
get(params: any) {
return request<any, OrderInfo>({
url: `${baseURL}/getOrderById`,
method: "get",
params
});
},
// 历史订单(多次下单使用)
getHistoryList(params: getHistoryListRequest) {
return request<any>({