Skip to content

转户任务

字段可选

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

搜索转户任务

接口名
    /warehouse/transfer_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/transfer_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": "ZH00080",
                "ware_category_2_name": "b1",
                "status": 1,
                "id": "ZR00025",
                "operate_date": "2016-09-29"
            }],
            "code": 0,
            "pagination": {
                "offset": 0,
                "count": 23,
                "limit": 10
            },
            "msg": "ok"
        }

转户任务明细

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

    "details": [{   M   list    库存操作详情
        "new_ware_category_3_name"  M   string  转入库位名
        "new_ware_category_2_name"  M   string  转入库区名
        "goods_category_1_name" M   string  一级商品分类名
        "old_ware_category_1_name"  M   string  转出仓库名
        "transfer_count"    M   int 转户件数
        "pallet_count"  M   int 转户板数
        "old_ware_category_3_name"  M   string  转出库位名
        "old_ware_category_4_name"  M   string  转出通道名
        "name"  M   string  商品名
        "goods_category_2_name" M   string  二级商品分类名
        "old_batch_id"  M   string  转出批次号
        "new_ware_category_1_name"  M   string  转入仓库名
        "old_ware_category_2_name"  M   string  转出库区名
        "count_per_pallet"  M   int 每板件数
        "unit_weight"   M   float   件重(kg)
        "new_ware_category_4_name"  M   string  转入通道名
        "tail_pallet_count" M   int 尾板数
        "new_batch_id"  M   string  转入批次号
        "goods_category_3_name" M   string  品类名
    }],
    "new_customer_id"   M   string  转入客户ID
    "ware_category_1_name"  M   string  仓库名(转出)
    "old_customer_id"   M   string  转出客户ID
    "new_customer_name" M   string  转入客户名
    "receipt_id"    M   string  转户单ID
    "ware_category_2_name"  M   string  库区名
    "old_customer_name" M   string  转出客户名
    "status"    M   int 转户任务状态(1:未完成;2:已完成;3:已删除)
    "id"    M   string  转户任务ID
    "operate_date"  M   datetime    操作日期
示例
    request
        http://test.guanmai.cn:8888/warehouse/transfer_task/detail?id=ZR00001
    response
        {
            "data": {
                "details": [{
                    "new_ware_category_3_name": "sadf",
                    "new_ware_category_2_name": "qewr",
                    "goods_category_1_name": "干货",
                    "old_ware_category_1_name": "A1",
                    "transfer_count": 1,
                    "pallet_count": 1,
                    "old_ware_category_3_name": "sadf",
                    "old_ware_category_4_name": "sdf",
                    "name": "test",
                    "goods_category_2_name": "香菇",
                    "old_batch_id": "24-1",
                    "new_ware_category_1_name": "A1",
                    "old_ware_category_2_name": "qewr",
                    "count_per_pallet": 2,
                    "unit_weight": 5.0,
                    "new_ware_category_4_name": "sdf",
                    "tail_pallet_count": 1,
                    "new_batch_id": "24-1Z1",
                    "goods_category_3_name": "XX香菇"
                }],
                "new_customer_id": "K00002",
                "ware_category_1_name": "A1",
                "old_customer_id": "K00001",
                "new_customer_name": "test234",
                "receipt_id": "ZH00040",
                "ware_category_2_name": "qewr",
                "old_customer_name": "hahasadf",
                "status": 1,
                "id": "ZR00014",
                "operate_date": "2016-09-29"
            },
            "code": 0,
            "msg": "ok"
        }

创建转户任务

接口名
    /warehouse/transfer_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/transfer_task/create
    form-data
        receipt_id: ZH0002
    response
        {
            "data": ["ZR01", "ZR02"],
            "code": 0,
            "msg": "ok"
        }

完成转户任务

接口名
    /warehouse/transfer_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/transfer_task/finish
    form-data
        id: ZR0002
    response
        {
            "data": "",
            "code": 0,
            "msg": "ok"
        }

转户任务基础信息

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