简要描述:
请求域名:
请求路由:
GET/&route=plugin.store-scan-code-meals.frontend.order-food.list
请求参数说明:
参数名 |
类型 |
是否必需 |
说明 |
store_id |
int |
否 |
门店ID |
table_id |
int |
否 |
餐桌ID |
status |
int |
否 |
状态 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "list",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"uniacid": 6,
"store_id": 8,
"table_id": 3,
"creator_id": 2455,
"payer_id": 0,
"people_num": 3,
"tea_table_fee": "6.00",
"tableware_fee": "6.00",
"other_info": null,
"status": 0,
"created_at": "2025-08-08 09:58:28",
"button_models": [
{
"name": "点餐",
"api": "plugin.store-scan-code-meals.frontend.dish-goods.index",
"value": "add_dish"
}
],
"status_name": "点餐中",
"table_dishes": [
{
"id": 1,
"uniacid": 6,
"pre_id": 1,
"goods_id": 264,
"option_id": 0,
"tbc_total": 3,
"pre_total": 0,
"total": 0,
"dish_price": "0.00",
"is_add_dish": 0,
"status": 0,
"created_at": "2025-08-08 10:31:24",
"status_name": "待确认",
"qty": 3,
"goods_title": "点餐商品1",
"goods_thumb": "http://demo.yun.cn/static/upload/images/6/2024/05/6baa2ebdbbc03f9632011014f6b215d4.jpg",
"goods_option_title": "",
"goods_price": "99.00"
}
],
"dining_table": {
"id": 3,
"classify_id": 1,
"table_num": 2,
"name": "2号桌",
"status_name": "空闲中",
"has_one_classify": {
"id": 1,
"name": "测试分区"
}
},
"has_one_order": null
}
],
"from": 1,
"last_page": 1,
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
data.data返回参数说明:
参数名 |
类型 |
说明 |
|
id |
int |
餐桌预订单ID |
|
table_id |
int |
餐桌ID |
|
store_id |
int |
门店ID |
|
people_num |
int |
就餐人数 |
|
tea_table_fee |
int |
茶位费 |
|
tableware_fee |
int |
餐具费 |
|
status_name |
string |
状态名称 |
|
button_models |
array |
操作按钮 |
|
table_dishes |
array |
点餐菜品信息 |
|
dining_table |
obj |
餐桌信息 |
|
dining_table 参数说明:
参数名 |
类型 |
说明 |
|
id |
int |
餐桌ID |
|
table_num |
int |
餐桌号 |
|
name |
string |
餐桌名称 |
|
meal_people_num |
int |
就餐人数 |
|
status_name |
string |
餐桌状态 |
|
status |
int |
状态:0空闲中、1点餐中、2就餐中 |
|
has_one_classify.id |
string |
餐桌分区ID |
|
has_one_classify.name |
string |
餐桌分区名称 |
|
table_dishes 参数说明:
参数名 |
类型 |
说明 |
|
id |
int |
预订单商品ID |
|
pre_id |
int |
餐桌预订单ID |
|
goods_id |
int |
商品ID |
|
option_id |
int |
商品规格ID |
|
tbc_total |
int |
菜品总数量 |
|
pre_total |
int |
待上菜数量 |
|
total |
int |
已上菜数量 |
|
qty |
int |
菜品数量 |
|
goods_price |
int |
商品单价 |
|
goods_title |
int |
商品名称 |
|
goods_thumb |
int |
商品图片 |
|
goods_option_title |
int |
商品规格名称 |
|