简要描述:
- 核销员
请求域名:
请求URL:
直接购买:
GET/&route=plugin.package-deliver.frontend.clerk-order-detail.index
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
order_id | 是 | int | 订单id |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"id": 837,
"order_sn": "SN20191126145944az",
"price": "164.00",
"goods_price": "164.00",
"goods_total": 1,
"status": 1,
"cancel_pay_time": "1970-01-01 08:00:00",
"cancel_send_time": "1970-01-01 08:00:00",
"dispatch_type_id": 8,
"dispatch_price": "0.00",
"discount_price": "0.00",
"pay_type_id": 5,
"order_goods_price": "164.00",
"deduction_price": "0.00",
"refund_id": 0,
"is_plugin": 0,
"change_price": "0.00",
"change_dispatch_price": "0.00",
"comment_status": 0,
"order_pay_id": "88",
"plugin_id": 0,
"is_virtual": 0,
"mark": "",
"is_pending": 0,
"note": null,
"cost_amount": "700.00",
"shop_name": "哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈",
"no_refund": 0,
"need_address": 0,
"invoice_type": null,
"rise_type": null,
"collect_name": null,
"company_number": null,
"invoice": null,
"auto_receipt": 0,
"fee_amount": "0.00",
"status_name": "待发货",
"pay_type_name": "后台",
"button_models": [
{
"name": "申请退款",
"value": 13,
"api": "refund.apply.store",
"type": ""
},
{
"name": "确认核销",
"value": "package_deliver",
"api": "plugin.package-deliver.frontend.clerk-order.qr-code",
"type": ""
}
],
"has_many_order_goods": [
{
"id": 841,
"uniacid": 6,
"goods_id": 164,
"pay_sn": "",
"total": 1,
"create_at": 0,
"price": "164.00",
"goods_sn": "",
"uid": 2455,
"thumb": "http://localhost/attachment/images/6/2018/06/hZqM1jQqjFmBhQ5JqQ48qSF5dmMMQZ.jpg",
"title": "本地的哈哈步164",
"goods_price": "164.00",
"goods_option_id": 0,
"goods_option_title": "",
"product_sn": "",
"created_at": "2019-11-26 14:59:44",
"updated_at": "2019-11-26 14:59:44",
"discount_price": "0.00",
"comment_status": 0,
"change_price": "0.00",
"comment_id": 0,
"goods_market_price": "1213.00",
"goods_cost_price": "700.00",
"vip_price": "0.00",
"coupon_price": "0.00",
"payment_amount": "164.00",
"deduction_amount": "0.00",
"need_address": 0,
"buttons": [ ],
"store_id": null,
"is_course": 0
}
],
"order_deduction": [ ],
"order_discount": [ ],
"order_fees": [ ],
"order_coupon": [ ],
"process": [ ],
"has_one_pay_type": {
"id": 5,
"name": "后台",
"plugin_id": 0,
"code": "backend",
"type": 1,
"unit": "元",
"updated_at": "2019-04-15 12:07:20",
"created_at": null,
"deleted_at": null,
"setting_key": "",
"need_password": 0,
"group_id": 4
},
"has_one_refund_apply": null,
"invoice_state": 1,
"address_info": {
"address": "广东省 广州市 白云区 新市街道 哈哈哈哈哈",
"mobile": "12312345678",
"realname": "广州站"
},
"package-deliver": {
"id": 1,
"deliver_name": "广州站",
"deliver_mobile": "12312345678",
"realname": "测试",
"full_address": "广东省 广州市 白云区 新市街道 哈哈哈哈哈"
"lat": "26.692658",
"lng": "106.560722"
}
}
}
错误时返回:
{
"result": 0,
"msg": "错误信息",
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
package-deliver | array | 自提点信息 |
deliver_name | string | 提货点名称 |
deliver_mobile | string | 提货点联系电话 |
full_address | string | 提货点地址 |
lat | string | 纬度 |
lng | string | 经度 |
address_info.mobile | string | 取货人电话 |
address_info.realname | string | 取货人姓名 |
前端订单操作按钮 button_models:
按钮名称 | vlaue值 | api |
---|---|---|
确认完成 | package_deliver_clerk | plugin.package-deliver.frontend.clerk-operation.clerk-confirm |