Skip to content

订单列表批量打印配送任务

获取配送任务打印信息的接口

接口名
     https://station.guanmai.cn/station/distribute/get_order_by_id [修改: 老接口]
Method
    GET

请求:
    ids                    O    list  (原有保持不变,全选当前页,把当前页的order_id列表传过来即可)批量的订单号列表
    //全选时需要传搜索条件过来,不需要传ids,以下搜索条件同搜索的接口https://station.guanmai.cn/station/task/distribute/orders/get一致
    order_start_time       O    date  下单开始日期,格式2019-05-01
    order_end_time         O    date  下单结束日期,格式2019-05-01
    time_config_id         O    str   运营时间id
    cycle_start_time       O    str   运营周期开始时间格式2017-01-01 09:30
    cycle_end_time         O    str   运营周期结束时间格式2017-01-01 09:30
    receive_start_time     O    date  收货开始日期格式2019-05-01
    receive_end_time       O    date  收货开始日期格式2019-05-01
    search_text            O    str   搜索关键字
    carrier_id             O    int   承运商id
    driver_id              O    int   过滤的司机id
    route_id               O    int   线路id(无线路为-1)
    area_id                O    str   区域编码
    area_level             O    int   区级
    order_status           O    int   订单状态
    is_print               O    bool  是否打印
    unassigned             O    bool  未分配
    receive_way            O    int   收货方式 1-配送 2-自提
    pick_up_st_id          O    int   自提点id


响应(不变):
    code                  M    int   错误码。0为成功、其他为错误。
    msg                   M    str   错误提示信息,成功为ok
    data                  M    list  返回字段没有任何变化,太长不罗列,看示例

示例:

request:

    order_start_time: "2019-08-01",
    order_end_time: "2019-08-22",
    order_status: 15,
    search_text: "PL6141921",

response:
    {
    "data": [
        {
            "coupon_amount": "0.00",
            "bill_receiver": null,
            "settle_way": 1,
            "receive_way": 1,
            "abnormals": [],
            "username": "mmsh01",
            "carrier": "",
            "driver_name": "",
            "sid": "77838",
            "refund_money": "0.00",
            "bill_address": null,
            "freight": "0.00",
            "address": "广东省深圳市福田区华强北街道群星广场A座群星广场",
            "address_sign_id": "30200100000",
            "receiver_phone": "13244543342",
            "address_sign": "南山中心区",
            "refunds": [],
            "real_price": "208.00",
            "pay_method": {
                "begin_day": 1,
                "settle_day": 3,
                "pay_method": 2,
                "cycle_length": null
            },
            "pay_status": 1,
            "tax_number": 2,
            "id": "PL6141921",
            "address_route_name": null,
            "sort_id": "1",
            "template_id": 2294,
            "area_l1": "南山区",
            "driver_phone": "",
            "resname": "海底捞(南山店)",
            "receive_end_time": "2019-08-23 11:00",
            "child_sort_id": "",
            "total_tax": "0.00",
            "create_user": null,
            "origin_customer": {},
            "receive_begin_time": "2019-08-22 20:00",
            "abnormal_money": "0.00",
            "remark": null,
            "source_origin_id": "",
            "total_price": "208.00",
            "details": [
                {
                    "tax_rate": 0,
                    "sale_price_without_tax": "13.00",
                    "saleunit_weighting_quantity": 6.0,
                    "org_std_sale_price": 13.0,
                    "real_item_price_without_tax": "78.00",
                    "name": "猪手",
                    "org_sale_price": 13.0,
                    "specs": "-",
                    "real_is_weight": true,
                    "org_item_price": 78.0,
                    "real_weight": 6.0,
                    "std_sale_price": 13.0,
                    "remark": null,
                    "quantity": 6.0,
                    "tax": "0.00",
                    "production_time": null,
                    "sale_ratio": 1.0,
                    "union_dispatch": true,
                    "purchase_station_id": "T7936",
                    "std_unit_name": "斤",
                    "real_item_price": 78.0,
                    "salemenu_id": "S12731",
                    "origin_item_price": 78.0,
                    "supplier_id": "T13384",
                    "sale_price": 13.0,
                    "category_title_1": "畜类",
                    "spu_name": "猪手",
                    "category_title_2": "猪",
                    "total_item_price": 78.0,
                    "is_price_timing": false,
                    "life_time": null,
                    "pinlei_title": "猪",
                    "sale_unit_name": "斤",
                    "is_weigh": false,
                    "outer_id": "",
                    "desc": "",
                    "id": "D7552759",
                    "supplier_name": "综合供应商"
                },
                {
                    "tax_rate": 0,
                    "sale_price_without_tax": "13.00",
                    "saleunit_weighting_quantity": 3.0,
                    "org_std_sale_price": 13.0,
                    "real_item_price_without_tax": "39.00",
                    "name": "牛冧",
                    "org_sale_price": 13.0,
                    "specs": "-",
                    "real_is_weight": true,
                    "org_item_price": 39.0,
                    "real_weight": 3.0,
                    "std_sale_price": 13.0,
                    "remark": null,
                    "quantity": 3.0,
                    "tax": "0.00",
                    "production_time": null,
                    "sale_ratio": 1.0,
                    "union_dispatch": true,
                    "purchase_station_id": "T7936",
                    "std_unit_name": "斤",
                    "real_item_price": 39.0,
                    "salemenu_id": "S12731",
                    "origin_item_price": 39.0,
                    "supplier_id": "T13384",
                    "sale_price": 13.0,
                    "category_title_1": "畜类",
                    "spu_name": "牛冧",
                    "category_title_2": "牛",
                    "total_item_price": 39.0,
                    "is_price_timing": false,
                    "life_time": null,
                    "pinlei_title": "牛",
                    "sale_unit_name": "斤",
                    "is_weigh": false,
                    "outer_id": "",
                    "desc": "",
                    "id": "D7552584",
                    "supplier_name": "综合供应商"
                },
                {
                    "tax_rate": 0,
                    "sale_price_without_tax": "13.00",
                    "saleunit_weighting_quantity": 5.0,
                    "org_std_sale_price": 13.0,
                    "real_item_price_without_tax": "65.00",
                    "name": "海带丝",
                    "org_sale_price": 13.0,
                    "specs": "-",
                    "real_is_weight": true,
                    "org_item_price": 65.0,
                    "real_weight": 5.0,
                    "std_sale_price": 13.0,
                    "remark": null,
                    "quantity": 5.0,
                    "tax": "0.00",
                    "production_time": null,
                    "sale_ratio": 1.0,
                    "union_dispatch": true,
                    "purchase_station_id": "T7936",
                    "std_unit_name": "斤",
                    "real_item_price": 65.0,
                    "salemenu_id": "S12731",
                    "origin_item_price": 65.0,
                    "supplier_id": "T13384",
                    "sale_price": 13.0,
                    "category_title_1": "蔬果类",
                    "spu_name": "海带丝",
                    "category_title_2": "叶菜类",
                    "total_item_price": 65.0,
                    "is_price_timing": false,
                    "life_time": null,
                    "pinlei_title": "叶菜类",
                    "sale_unit_name": "斤",
                    "is_weigh": false,
                    "outer_id": "",
                    "desc": "",
                    "id": "D7557108",
                    "supplier_name": "综合供应商"
                },
                {
                    "tax_rate": 0,
                    "sale_price_without_tax": "13.00",
                    "saleunit_weighting_quantity": 2.0,
                    "org_std_sale_price": 13.0,
                    "real_item_price_without_tax": "26.00",
                    "name": "红鸡蛋",
                    "org_sale_price": 13.0,
                    "specs": "-",
                    "real_is_weight": true,
                    "org_item_price": 26.0,
                    "real_weight": 2.0,
                    "std_sale_price": 13.0,
                    "remark": null,
                    "quantity": 2.0,
                    "tax": "0.00",
                    "production_time": null,
                    "sale_ratio": 1.0,
                    "union_dispatch": true,
                    "purchase_station_id": "T7936",
                    "std_unit_name": "斤",
                    "real_item_price": 26.0,
                    "salemenu_id": "S12731",
                    "origin_item_price": 26.0,
                    "supplier_id": "T13384",
                    "sale_price": 13.0,
                    "category_title_1": "蛋品类",
                    "spu_name": "红鸡蛋",
                    "category_title_2": "蛋品类",
                    "total_item_price": 26.0,
                    "is_price_timing": false,
                    "life_time": null,
                    "pinlei_title": "蛋品类",
                    "sale_unit_name": "斤",
                    "is_weigh": false,
                    "outer_id": "",
                    "desc": "",
                    "id": "D7553028",
                    "supplier_name": "综合供应商"
                }
            ],
            "date_time": "2019-08-22 19:47:36",
            "total_pay": "208.00",
            "sale_manager": {
                "id": null,
                "phone": null,
                "name": null
            },
            "sales_name": "",
            "receiver_name": "小猫1",
            "area_l2": "南山中心区",
            "city": "深圳市",
            "cname": "商户1"
        }
    ],
    "code": 0,
    "msg": "ok"
}

批量/全选司机

接口名          

https://station.guanmai.cn/station/task/distribute/edit_assign/v2 

[修改: 老接口]
Method
    POST

请求:
    order_ids              O    list   普通多选的订单列表
    assign_driver_id       O    int    要分配的司机(原来这叫driver_id,因为跟全选参数的driver_id重名,改为assign_driver_id)
    operation_type         M    int    1-分配司机 0-取消分配司机
//全选时需要传搜索条件过来,不需要传ids,以下搜索条件同搜索的接口https://station.guanmai.cn/station/task/distribute/orders/get一致
    order_start_time       O    date  下单开始日期,格式2019-05-01
    order_end_time         O    date  下单结束日期,格式2019-05-01
    time_config_id         O    str   运营时间id
    cycle_start_time       O    str   运营周期开始时间格式2017-01-01 09:30
    cycle_end_time         O    str   运营周期结束时间格式2017-01-01 09:30
    receive_start_time     O    date  收货开始日期格式2019-05-01
    receive_end_time       O    date  收货开始日期格式2019-05-01
    search_text            O    str   搜索关键字
    carrier_id             O    int   承运商id
    driver_id              O    int   过滤的司机id
    route_id               O    int   线路id(无线路为-1)
    area_id                O    str   区域编码
    area_level             O    int   区级
    order_status           O    int   订单状态
    is_print               O    bool  是否打印
    unassigned             O    bool  未分配
    receive_way            O    int   收货方式 1-配送 2-自提
    pick_up_st_id          O    int   自提点id

响应
    code                  M    int   错误码。0为成功、其他为错误。
    msg                   M    str   错误提示信息,成功为ok
    data                  M    null