简要描述:
请求域名:
请求路由:
GET/&route=plugin.store-scan-code-meals.frontend.order-food.pre-order
请求参数说明:
参数名 |
类型 |
是否必需 |
说明 |
id |
int |
是 |
餐桌预订单ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "cart",
"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",
"tea_table_name": "茶位费",
"tableware_name": "餐具费",
"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": "测试分区"
}
}
}
}
data返回参数说明:
参数名 |
类型 |
说明 |
|
id |
int |
餐桌预订单ID |
|
table_id |
int |
餐桌ID |
|
store_id |
int |
门店ID |
|
people_num |
int |
就餐人数 |
|
tea_table_fee |
int |
茶位费 |
|
tableware_fee |
int |
餐具费 |
|
tea_table_name |
string |
茶位费自定义名称 |
|
tableware_name |
string |
餐具费自定义名称 |
|
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 |
商品规格名称 |
|
按钮名称 |
值 |
接口API |
|
取消订单 |
cancel |
plugin.store-scan-code-meals.frontend.table-operate.cancel |
|
确认下单 |
confirm_food |
plugin.store-scan-code-meals.frontend.table-operate.confirm-food |
|
继续加菜、点餐 |
add_dish |
plugin.store-scan-code-meals.frontend.dish-goods.index |
|
去结账 |
pre_buy |
plugin.store-scan-code-meals.frontend.pre-buy.index |
|
全部确认 |
mer_confirm_food |
plugin.store-scan-code-meals.frontend.table-operate.mer-confirm-food |
|
全部上菜 |
serve_dish |
plugin.store-scan-code-meals.frontend.table-operate.serve-dish |
|
打印 |
print |
plugin.store-scan-code-meals.frontend.table-operate.print |
|
结账 |
buy_way |
plugin.store-scan-code-meals.frontend.table-operate.buy-way |
|