点餐收银端

石化点餐项目


获取餐桌列表

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>获取餐桌列表接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>https://food.taihuyun.vip/api/foodcash.table/lists?applet_id=1&amp;shop_id=1&amp;token=8014374705939b271a346001006d8aa5</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET</li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">applet_id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>应用程序ID</td> </tr> <tr> <td style="text-align: left;">shop_id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>门店ID</td> </tr> <tr> <td style="text-align: left;">token</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>用户身份验证的令牌</td> </tr> <tr> <td style="text-align: left;">table_id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>餐桌ID</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code>{ "code": 1, "msg": "success", "data": { "list": [ { "table_id": 65, "table_name": "领导餐桌", "people": 15, "consume": "150.00", "ware_price": "5.00", "row_no": "1", "status": { "text": "空闲", "value": 10, "order_id": [], "time": "", "pay_price": "0.00", "pact": null }, "sort": 0, "shop_id": 1, "category_id": { "text": "包厢", "value": 3 }, "applet_id": 1, "create_time": "2022-08-10 15:16:12", "update_time": "2022-12-02 16:10:19", "shop": { "shop_id": 1, "shop_name": "石化民族大食堂", "shop_category_id": 0, "logo": "https://food.taihuyun.vip/uploads/20220601/7c2648c6504b69c9bccafb7939060e81.png", "front": "https://food.taihuyun.vip/uploads/20220530/44fbcb66ae95e40c87d24493edf8b2da.png", "linkman": "sky", "phone": "15358052238", "shop_hours": "00:00 - 23:59", "province": "新疆维吾尔自治区", "city": "乌鲁木齐市", "district": "米东区", "address": "新疆乌鲁木齐市", "coordinate": "43.975522,87.659912", "poi_id": "656761524125795479", "summary": "清真,美味", "tang_mode": 1, "is_order": { "text": "开启", "value": 1 }, "is_delivery": { "text": "开启", "value": 1 }, "delivery": "self", "is_grab": { "text": "开启", "value": 1 }, "status": { "text": "营业中", "value": 1, "status": 1 }, "out_show": { "text": "显示", "value": 1 }, "sort": 100, "sf_shop_id": "", "dada_shop_id": "", "make_shop_id": "", "applet_id": 1, "is_team": 0, "create_time": "2022-05-27 00:18:48", "update_time": "2022-11-14 17:46:24" } } ] }</code></pre> <h5>返回参数说明</h5> <ul> <li>返回状态代码: 200</li> </ul> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">list.table_name</td> <td style="text-align: left;">string</td> <td>桌台名称</td> </tr> <tr> <td style="text-align: left;">list.people</td> <td style="text-align: left;">string</td> <td>人数</td> </tr> <tr> <td style="text-align: left;">list.status.value</td> <td style="text-align: left;">int</td> <td>桌台状态:10:空闲;20:已预订;30:待结账;40:待清台;50:锁定</td> </tr> <tr> <td style="text-align: left;">list.status.order_id</td> <td style="text-align: left;">object</td> <td>订单ID</td> </tr> <tr> <td style="text-align: left;">list.status.pay_price</td> <td style="text-align: left;">int</td> <td>待支付金额</td> </tr> <tr> <td style="text-align: left;">list.status.time</td> <td style="text-align: left;">int</td> <td>用时</td> </tr> <tr> <td style="text-align: left;">list.category_id.value</td> <td style="text-align: left;">int</td> <td>餐桌类型; 0全部,2大厅;3包厢;5散台;6吧台;7宴会厅</td> </tr> <tr> <td style="text-align: left;">list.create_time</td> <td style="text-align: left;">string</td> <td>创建时间</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看基本参数中的参数说明</li> </ul>

页面列表

ITEM_HTML