点餐收银端

石化点餐项目


订单详情

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>获取订单详情接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>https://food.taihuyun.vip/api/foodcash.order/detail?applet_id=1&amp;shop_id=1&amp;token=8014374705939b271a346001006d8aa5&amp;order_id=1317</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;">order_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": { "detail": { "order_id": 1317, "order_no": "2023011199979953", "source": { "text": "前台收银端", "value": 20 }, "order_mode": { "text": "堂食", "value": 10 }, "row_no": "", "table_id": 38, "people": 2, "arrive_time": { "text": "2023-01-11 17:31:24", "value": 0 }, "flavor": "", "message": "", "server_message": "", "total_price": "147.00", "activity_price": "0.00", "express_price": "0.00", "pack_price": "0.00", "ware_price": "0.00", "divide_price": "0.00", "pay_price": "147.00", "pay_status": { "text": "后付款", "value": 30 }, "pay_mode": 2, "transaction_id": "", "pay_time": 1673429484, "shop_status": { "text": "已接单", "value": 20 }, "shop_time": 1673429484, "delivery_status": { "text": "备餐中", "value": 10 }, "delivery_time": 0, "receipt_status": { "text": "待完成", "value": 10 }, "receipt_time": 0, "order_status": { "text": "进行中", "value": 10 }, "refund_price": "0.00", "refund_status": { "text": "待退款", "value": 10 }, "refund_time": 0, "refund_desc": "", "refund_id": "", "is_cmt": { "text": "待评价", "value": 0 }, "is_order": 1, "user_id": 26, "shop_id": 1, "applet_id": 1, "book_date": "", "book_time": { "text": "", "begin_end": "", "value": 0 }, "book_place": { "text": "", "value": 0 }, "butie": 0, "ticket_user_id": 0, "pact_id": 420, "order_type": 0, "guadan_type": 0, "guadan_id": 0, "guadan_remark": "", "order_team_id": 0, "meal_id": 3, "clerk_id": 8, "create_time": "2023-01-11 17:31:24", "update_time": "2023-01-11 17:31:24", "goods": [ { "order_goods_id": 2298, "goods_id": 90, "goods_name": "椒麻鸡", "image_id": 10111, "deduct_stock_type": 20, "spec_type": 10, "spec_sku_id": "", "goods_spec_id": 674, "goods_attr": "", "content": "", "goods_no": "", "goods_price": "48.00", "line_price": "50.00", "goods_weight": 0, "total_num": 1, "total_price": "48.00", "refund_num": 0, "refund_price": "0.00", "order_id": 1317, "user_id": 26, "applet_id": 1, "create_time": "2023-01-11 17:31:24", "image": { "file_id": 10111, "storage": "local", "group_id": 0, "domain": "", "file_path": "20220829/8ce95b70d9194431a7511bb0cb93e5a4.jpg", "file_size": 37490, "file_type": "image", "file_ext": "jpg", "is_delete": 0, "applet_id": 0, "create_time": "2022-08-29 17:52:19", "url": "https://food.taihuyun.vip/uploads/20220829/8ce95b70d9194431a7511bb0cb93e5a4.jpg" }, "spec": { "goods_spec_id": 6, "spec_sku_id": "", "goods_id": 4, "image_id": 0, "goods_no": "", "goods_price": "2.00", "line_price": "8.00", "materials": null, "stock_num": 0, "goods_weight": 0, "goods_sales": 0, "applet_id": 1, "create_time": "2022-05-31 11:01:33", "update_time": "2022-05-31 11:01:33" }, "goods": { "goods_id": 90, "goods_name": "椒麻鸡", "selling_point": "", "category_id": 14, "spec_type": 10, "deduct_stock_type": 20, "content": "", "sales_initial": 0, "sales_actual": 102, "goods_sort": 2, "goods_status": { "text": "已上架", "value": 10 }, "audit_status": { "text": "已通过审核", "value": 10 }, "pack_price": 0, "is_delete": 0, "is_recommend": { "text": "否", "value": 0 }, "shop_id": 1, "applet_id": 1, "create_time": "2022-09-15 18:56:32", "update_time": "2023-01-11 17:31:24", "goods_sales": 102, "stock": 0 } } ], "address": null, "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" }, "table": { "table_id": 38, "table_name": "散台1", "people": 6, "consume": "0.00", "ware_price": "0.00", "row_no": "0003", "status": { "text": "占用", "value": 20, "order_id": [], "time": 0, "pay_price": 0, "pact": "" }, "sort": 1, "shop_id": 1, "category_id": { "text": "大厅", "value": 2 }, "applet_id": 1, "create_time": "2022-06-24 14:59:08", "update_time": "2022-11-09 18:17:44" }, "delivery": null, "ticket": null, "clerk": { "shop_clerk_id": 8, "shop_id": 1, "real_name": "吴天宇", "mobile": "17320038823", "pwd": "625df02823082763d377dc21464e1ddb", "status": { "text": "店长", "value": 20 }, "user_id": 6, "applet_id": 1, "last_login_datetime": "2023-01-11 18:11:46", "create_time": "2022-06-14 18:56:41", "update_time": "2023-01-11 18:11:46" }, "user": { "user_id": 26, "user_type": 1, "nickname": "刘小米", "gender": "未知", "country": "", "province": "", "city": "", "phone": "15358092238", "pay": "0.00", "score": 0, "converted": 0, "v": 1, "birthday": "", "identity": { "text": "工程造价部", "value": 79, "company_text": "工程造价部", "company_value": 79 }, "details": {}, "usable": 0 } } } }</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;">detail.order_no</td> <td style="text-align: left;">string</td> <td>订单编号</td> </tr> <tr> <td style="text-align: left;">detail.source.value</td> <td style="text-align: left;">int</td> <td>下单渠道;10.小程序;20.前台收银端</td> </tr> <tr> <td style="text-align: left;">detail.order_mode</td> <td style="text-align: left;">int</td> <td>业务类型;10:堂食;20.包厢;30.自取</td> </tr> <tr> <td style="text-align: left;">detail.people</td> <td style="text-align: left;">int</td> <td>人数</td> </tr> <tr> <td style="text-align: left;">detail.message</td> <td style="text-align: left;">string</td> <td>厨打备注</td> </tr> <tr> <td style="text-align: left;">detail.server_message</td> <td style="text-align: left;">string</td> <td>接待备注</td> </tr> <tr> <td style="text-align: left;">detail.total_price</td> <td style="text-align: left;">string</td> <td>总额</td> </tr> <tr> <td style="text-align: left;">detail.activity_price</td> <td style="text-align: left;">string</td> <td>活动价格</td> </tr> <tr> <td style="text-align: left;">detail.ware_price</td> <td style="text-align: left;">string</td> <td>打包费、餐具费</td> </tr> <tr> <td style="text-align: left;">detail.pay_price</td> <td style="text-align: left;">string</td> <td>待支付金额</td> </tr> <tr> <td style="text-align: left;">detail.pay_status.value</td> <td style="text-align: left;">int</td> <td>支付类型;10.待付款;20.已付款;30.后付款</td> </tr> <tr> <td style="text-align: left;">detail.pay_mode</td> <td style="text-align: left;">int</td> <td>支付方式</td> </tr> <tr> <td style="text-align: left;">detail.transaction_id</td> <td style="text-align: left;">string</td> <td>支付编号</td> </tr> <tr> <td style="text-align: left;">detail.pay_time</td> <td style="text-align: left;">int</td> <td>支付时间</td> </tr> <tr> <td style="text-align: left;">detail.table.table_name</td> <td style="text-align: left;">string</td> <td>桌台名称</td> </tr> <tr> <td style="text-align: left;">detail.table.status.value</td> <td style="text-align: left;">int</td> <td>桌台状态:10:空闲;20:已预订;30:待结账;40:待清台;50:锁定</td> </tr> <tr> <td style="text-align: left;">detail.table.status.order_id</td> <td style="text-align: left;">object</td> <td>订单ID</td> </tr> <tr> <td style="text-align: left;">detail.table.status.pay_price</td> <td style="text-align: left;">string</td> <td>待支付金额</td> </tr> <tr> <td style="text-align: left;">detail.table.consume</td> <td style="text-align: left;">string</td> <td>最低消费</td> </tr> <tr> <td style="text-align: left;">detail.table.ware_price</td> <td style="text-align: left;">string</td> <td>打包费、餐具费</td> </tr> <tr> <td style="text-align: left;">detail.table.status.time</td> <td style="text-align: left;">int</td> <td>用时</td> </tr> <tr> <td style="text-align: left;">detail.table.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;">detail.table.create_time</td> <td style="text-align: left;">string</td> <td>创建时间</td> </tr> <tr> <td style="text-align: left;">detail.butie</td> <td style="text-align: left;">string</td> <td>补贴</td> </tr> <tr> <td style="text-align: left;">detail.meal_id</td> <td style="text-align: left;">int</td> <td>餐段,1早餐;2午餐;3晚餐;4夜宵</td> </tr> <tr> <td style="text-align: left;">detail.goods.goods_name</td> <td style="text-align: left;">string</td> <td>菜品名称</td> </tr> <tr> <td style="text-align: left;">detail.goods.goods_attr</td> <td style="text-align: left;">string</td> <td>菜品规格</td> </tr> <tr> <td style="text-align: left;">detail.goods.total_num</td> <td style="text-align: left;">string</td> <td>菜品数量</td> </tr> <tr> <td style="text-align: left;">detail.goods.total_price</td> <td style="text-align: left;">string</td> <td>菜品总价格</td> </tr> <tr> <td style="text-align: left;">detail.goods.goods_price</td> <td style="text-align: left;">string</td> <td>菜品价格</td> </tr> <tr> <td style="text-align: left;">detail.clerk.real_name</td> <td style="text-align: left;">string</td> <td>操作人</td> </tr> <tr> <td style="text-align: left;">detail.clerk.mobile</td> <td style="text-align: left;">string</td> <td>操作电话</td> </tr> <tr> <td style="text-align: left;">detail.clerk.status.value</td> <td style="text-align: left;">int</td> <td>操作身份</td> </tr> <tr> <td style="text-align: left;">detail.user.nickname</td> <td style="text-align: left;">string</td> <td>下单人姓名</td> </tr> <tr> <td style="text-align: left;">detail.user.phone</td> <td style="text-align: left;">string</td> <td>下单人电话</td> </tr> <tr> <td style="text-align: left;">detail.user.identity.text</td> <td style="text-align: left;">string</td> <td>下单人的部门名称</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li> <p>支付途径: 0:微信, 1:余额(目前不用) 2:后付 3:现金 小程序端:6:一卡通 小程序 pc端:8 一卡通扫码,9:一卡通实体卡 支付宝:11 银联: 21 单位挂单:50 房间挂单:51</p> </li> <li>更多返回错误代码请看基本参数中的参数说明</li> </ul>

页面列表

ITEM_HTML