ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
#### 可配送列表 ~~~[api] get:/distributor/order/index *number:status=1#订单状态,1=>可配送订单,2=>可取货订单,3=>可完成订单,4=>已完成订单 *string:longitude#经度 *string:latitude#纬度 number:p=1#当前页数 number:ps=10#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-10-05 21:51:33", "data": [ { "id": 3, "stores_id": 2, "sn": "20181005171634476341", "consignee": "谢xx", "mobile": "13012347890", "province": "440000", "city": "441900", "district": "441903", "twon": "0", "address": "天安1路", "created_at": "2018-10-05 17:16:34", "status": 1, "order_goods": [ { "id": 3, "order_id": 3, "name": "健力宝橙蜜运动饮料560ml", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/09/zgdLDdn3u9dOMvtvpQpDXPPsMEiDpg0l.jpg", "number": 1, "status": 1, "status_text": "正常" } ], "stores": { "id": 2, "name": "华莱士", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/09/pjgFvCHSfIU9usnHdW2wbPcHzj2fp6a6.png", "mobile": "13012345678", "address": "天安1街", "longitude": "113.8593332", "latitude": "23.0972702", "is_audit": 1, "status": 1, "is_audit_text": "审核通过", "status_text": "正常" }, "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 10 } } ~~~ #### 可取货列表 > sn 为配送订单sn,与上面的订单sn不相同 ~~~[api] get:/distributor/order/index *number:status=2#订单状态,1=>可配送订单,2=>可取货订单,3=>可完成订单,4=>已完成订单 number:p=1#当前页数 number:ps=10#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-10-05 21:51:54", "data": [ { "id": 2, "order_id": 1, "stores_id": 2, "sn": "20180921141206978893", "created_at": "2018-09-21 14:12:06", "status": 1, "consignee": "谢xx", "mobile": "13012347890", "province": "440000", "city": "441900", "district": "441903", "twon": "0", "address": "天安1路", "order_goods": [ { "id": 1, "order_id": 1, "name": "商品一", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "number": 1, "status": 1, "status_text": "正常" } ], "stores": { "id": 2, "name": "华莱士", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/09/pjgFvCHSfIU9usnHdW2wbPcHzj2fp6a6.png", "mobile": "13012345678", "address": "天安1街", "longitude": "113.8593332", "latitude": "23.0972702", "is_audit": 1, "status": 1, "is_audit_text": "审核通过", "status_text": "正常" }, "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 10 } } ~~~ #### 可完成订单列表 > sn 为配送订单sn,与上面的订单sn不相同 ~~~[api] get:/distributor/order/index *number:status=3#订单状态,1=>可配送订单,2=>可取货订单,3=>可完成订单,4=>已完成订单 number:p=1#当前页数 number:ps=10#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-11-02 22:55:55", "data": [ { "id": 1, "order_id": 1, "stores_id": 2, "sn": "20181016133706241334", "created_at": "2018-10-16 13:37:06", "status": 1, "consignee": "谢xx", "mobile": "13012347890", "province": "440000", "city": "441900", "district": "441903", "twon": "0", "address": "天安1路", "order_goods": [ { "id": 1, "order_id": 1, "name": "可口可乐1.25L", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/09/x4beGHFDtLRB52YNNeD3ueG2BImcHuSw.jpg", "number": 1, "status": 1, "status_text": "正常" }, { "id": 2, "order_id": 1, "name": "可口可乐汽水香草味500ml", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/09/TLRLuEulCw9dOVkLt78AXfGwuu0UyoFf.jpg", "status": 1, "status_text": "正常" }, { "id": 3, "order_id": 1, "name": "雪碧清爽柠檬味汽水600ml", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/09/34kgoiMQ9CLsDVTaXyHA2WjUFHfJdVwu.jpg", "status": 1, "status_text": "正常" } ], "stores": { "id": 2, "name": "华莱士", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/09/pjgFvCHSfIU9usnHdW2wbPcHzj2fp6a6.png", "mobile": "13012345678", "address": "天安1街", "longitude": "113.8593332", "latitude": "23.0972702", "is_audit": 1, "status": 1, "is_audit_text": "审核通过", "status_text": "正常" }, "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 10 } } ~~~ #### 已完成订单列表 ~~~[api] get:/distributor/order/index *number:status=4#订单状态,1=>可配送订单,2=>可取货订单,3=>可完成订单,4=>已完成订单 number:p=1#当前页数 number:ps=10#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-11-02 22:58:58", "data": [ { "id": 1, "order_id": 1, "stores_id": 2, "sn": "20181016133706241334", "created_at": "2018-10-16 13:37:06", "status": 1, "consignee": "谢xx", "mobile": "13012347890", "province": "440000", "city": "441900", "district": "441903", "twon": "0", "address": "天安1路", "order_goods": [ { "id": 1, "order_id": 1, "name": "可口可乐1.25L", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/09/x4beGHFDtLRB52YNNeD3ueG2BImcHuSw.jpg", "number": 1, "status": 1, "status_text": "正常" }, { "id": 2, "order_id": 1, "name": "可口可乐汽水香草味500ml", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/09/TLRLuEulCw9dOVkLt78AXfGwuu0UyoFf.jpg", "status": 1, "status_text": "正常" }, { "id": 3, "order_id": 1, "name": "雪碧清爽柠檬味汽水600ml", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/09/34kgoiMQ9CLsDVTaXyHA2WjUFHfJdVwu.jpg", "status": 1, "status_text": "正常" } ], "stores": { "id": 2, "name": "华莱士", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/09/pjgFvCHSfIU9usnHdW2wbPcHzj2fp6a6.png", "mobile": "13012345678", "address": "天安1街", "longitude": "113.8593332", "latitude": "23.0972702", "is_audit": 1, "status": 1, "is_audit_text": "审核通过", "status_text": "正常" }, "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 10 } } ~~~ #### 接单 ~~~[api] post:/distributor/order/handle/id/:id <<< success { "code": 1, "msg": "接单成功,请前往商家取货", "time": "2018-01-10 13:55:24", "data": [] } ~~~ #### 取货 ~~~[api] post:/distributor/order/pickup/id/:id <<< success { "code": 1, "msg": "取货成功,请前往配送", "time": "2018-01-10 13:55:24", "data": [] } ~~~ #### 完成 ~~~[api] post:/distributor/order/complete/id/:id <<< success { "code": 1, "msg": "恭喜您的订单完成", "time": "2018-01-10 13:58:24", "data": [] } ~~~