Skip to content

按路线打印配送单

station

/station/task/distribute/route_task 新接口

接口描述
    用户可按时间段查找线路任务数据
Method
    GET
request
    date_type       O   int       查询类型 1:按下单日期查询,2:按运营周期查询,3:按收货日期查询
    start_date      M   datetime  开始时间
    end_date        M   datetime  结束时间 
    q               O   string    查询信息(线路名)
    page_obj        O   string    起始页(不包含),默认第0页
    reverse         O   bool      是否反向查询。1:是,0:不是。默认为否。
    limit           O   int       返回条数,默认10。传0表示返回所有数据。
response
    {
        "msg": "ok",
        "code": 0,
        “data”: {
            route_tasks[                 M   list   线路任务列表
                {
                    id                   M   string  线路id
                    order_amount         M   int     订单数量
                    sale_money           M   float   销售额(不含运费)                 
                    route_name           M   路线名
                    order_ids            M   list    订单ID列表
                    has_unweighted       M   bool    是否有未称重商品
                }
            ]
        }
        pagination {            M   dict
            more                M   bool    是否有更多数据
            page_obj            M   string
            count               O   int     前端传 count 的话,后端就会返回这个字段
        }
    } 

http://station.devhost.guanmai.cn:33556/station/new#/system/setting/distribute_templete/print?order_ids=PL3619797&order_ids=PL3619796&template_id=-1&to_print_distribute=true