Skip to content

出库任务

字段可选

M:must 必填
O:optional 选填
C: conditional 某些条件下必选

搜索出库任务

接口名
    /warehouse/stock_out_task
Method
    GET
请求
    start_date  M   datetime    开始查询日期
    end_date    M   datetime    结束查询日期
    ware_category_1_id  O   string  仓库ID
    ware_category_2_id  O   string  库区ID
    status  O   int 出库任务状态(1:未完成;2:已完成;3:已删除)
    offset  O   int 分页缩进,默认0
    limit   O   int 分页每页数量,默认10
响应
    code    M   int     返回码,0表示成功,其他表示错误
    msg     M   string  错误信息
    data    M   string  返回json数据

    [
        {
            "ware_category_1_name"  M   string  仓库名
            "receipt_id"    M   string  对应的出库单ID
            "ware_category_2_name"  M   string  库区名
            "status"    M   int 出库任务状态(1:未完成;2:已完成;3:已删除)
            "id"    M   string  出库任务ID
            "operate_date"  M   datetime    操作日期
        }
    ]
示例
    request
        http://test.guanmai.cn:8888/warehouse/stock_out_task?start_date=2016-09-09&end_date=2016-10-01&offset=0&limit=10
    response
        {
            "data": [{
                "ware_category_1_name": "mila-b",
                "receipt_id": "CK00080",
                "ware_category_2_name": "b1",
                "status": 1,
                "id": "CR00025",
                "operate_date": "2016-09-29"
            }],
            "code": 0,
            "pagination": {
                "offset": 0,
                "count": 23,
                "limit": 10
            },
            "msg": "ok"
        }

出库任务明细

接口名
    /warehouse/stock_out_task/detail
Method
    GET
请求
    id  M   string  出库任务ID
响应
    code    M   int     返回码,0表示成功,其他表示错误
    msg     M   string  错误信息
    data    M   string  返回json数据

    "remark"    M   string  出库备注
    "ware_category_1_name"  M   string  仓库名
    "customer_name" M   string  客户名
    "receipt_id"    M   string  出库单ID
    "id"    M   string  出库任务ID
    "delivery_address"  M   string  送货地址
    "customer_cellphone"    M   string  客户手机
    "operate_date"  M   datetime    操作日期
    "details": [{   M   list    库存操作详情
        "origin_count"  M   int 原库存件数
        "ware_category_1_name"  M   string  仓库名
        "batch_id"  M   string  批次号
        "ware_category_2_name"  M   string  库区名
        "pallet_count"  M   int 出库板数
        "ware_category_3_name"  M   string  库位名
        "name"  M   string  商品名
        "count_per_pallet"  M   string  每板件数
        "ware_category_4_name"  M   string  通道名
        "out_count" M   int 出库件数
        "unit_weight"   M   float   件重(kg)
        "tail_pallet_count" M   int 尾板数
        "remain_count"  M   int 剩余件数
        "pile_up_num"   M   int 叠板数
    }],
    "customer_id"   M   string  客户ID
    "license_plate" M   string  车牌号
    "status"    M   int 出库任务状态(1:未完成;2:已完成;3:已删除)
    "type"  M   int 出库类型(1:自取;2:送货上门;3:送货上车)
    "ware_category_2_name"  M   string  库区名
示例
    request
        http://test.guanmai.cn:8888/warehouse/stock_out_task/detail?id=CR00001
    response
        {
            "data": {
                "remark": "qweqwewqewq",
                "ware_category_1_name": "mila-b",
                "customer_name": "客户20",
                "receipt_id": "CK00080",
                "id": "CR00025",
                "delivery_address": "",
                "customer_cellphone": "12335435452",
                "operate_date": "2016-09-29",
                "details": [{
                    "origin_count": 110,
                    "ware_category_1_name": "mila-b",
                    "batch_id": "100007-1",
                    "ware_category_2_name": "b1",
                    "pallet_count": 1,
                    "ware_category_3_name": "b12",
                    "name": "gk1",
                    "count_per_pallet": 11,
                    "ware_category_4_name": "b121",
                    "out_count": 1,
                    "unit_weight": 11.0,
                    "tail_pallet_count": 1,
                    "remain_count": 109,
                    "pile_up_num": 1
                }],
                "customer_id": "K00079",
                "license_plate": "",
                "status": 1,
                "type": 1,
                "ware_category_2_name": "b1"
            },
            "code": 0,
            "msg": "ok"
        }

创建出库任务

接口名
    /warehouse/stock_out_task/create
Method
    POST
请求
    "receipt_id"    M   string  出库单ID
响应
    code    M   int     返回码,0表示成功,其他表示错误
    msg     M   string  错误信息
    data    M   string  出库任务ID列表

示例
    request
        http://test.guanmai.cn:8888/warehouse/stock_out_task/create
    form-data
        receipt_id: CK0002
    response
        {
            "data": ["CR01", "CR02"],
            "code": 0,
            "msg": "ok"
        }

完成出库任务

接口名
    /warehouse/stock_out_task/finish
Method
    POST
请求
    "id"    M   string  出库任务ID
响应
    code    M   int     返回码,0表示成功,其他表示错误
    msg     M   string  错误信息
    data    M   string  空

示例
    request
        http://test.guanmai.cn:8888/warehouse/stock_out_task/finish
    form-data
        id: CR0002
    response
        {
            "data": "",
            "code": 0,
            "msg": "ok"
        }

出库任务基础信息

接口名
    /warehouse/stock_out_task/base_info
Method
    GET
请求
    无
响应
    code    M   int     返回码,0表示成功,其他表示错误
    msg     M   string  错误信息
    data    M   string  基础信息
示例
    request
        127.0.0.1:8888/warehouse/stock_out_task/base_info
    response
        {
            "data": {
                "status": {
                    "UNFINISHED": 1,
                    "DELETED": 3,
                    "FINISHED": 2
                },
                "type": {
                    "HOMEDELIVERY": 2,
                    "SELFCOLLECTION": 1,
                    "BOARD": 3
                }
            },
            "code": 0,
            "msg": "ok"
        }