接口 operators.depot.stock.list

接口说明

库存查询列表

业务参数

参数名称 类型 是否必须 说明
page int N 页数
pageSize int N 条数
criteria Object N 过滤条件
criteria.Filter String N 按商品名称、条码搜索
criteria.DepotID String N 仓库 id
criteria.FilterZero Boolean N 是否过滤库存为 0
criteria.IsEarlyWarningQty int N 过滤预警值以下的

请求示例

{
    "method": "operators.depot.stock.list",
    "biz_content": {
        "page": 1,
        "pageSize": 10,
        "criteria": {
            "Filter": "123",
            "DepotID": "69c39945314d630011fc2b8c",
            "FilterZero": true,
            "IsEarlyWarningQty": 0,
        },
    }
}

返回结果

参数名称 类型 说明
- - -

返回示例

{
    "error_code": 0,
    "error_msg": "SUCCESS"
    "data": {
        "total": 316,
        "per_page": 10,
        "current_page": 1,
        "last_page": 32,
        "from": 0,
        "to": 10,
        "data": [{
            "OID": "5a1e1b3a2928b400124ab1f3",
            "DepotID": "69c39945314d630011fc2b8c",
            "BarCode": "9555613800451",
            "Qty": 25, // 数量
            "AvgPrice": 20, // 平均价
            "EarlyWarningQty": 1, // 预警数量
            "TurnoverCount": 0, // 周转次数
            "CreateAt": 1555933281,
            "UpdatedAt": 1556069949,
            "id": "5cbda861fb10c230652f8431",
            "ProductVO": {
                "id": "59c39945314d630011fc2b8c",
                "Name": "果汁饮料350ml",
                "ImageUrl": "https://res.xxx.com/product/2112.png",
                "ImageFixWidthUrl": "https://res.xxx.com/product/2112.png",
                "ColSpan": 1,
                "CategoryVO": {
                    "Name": "果汁饮料",
                    "ParentID": "58e6ee4369c7ef1100ad2f06",
                    "Level": 2,
                    "CreateAt": 1493776825,
                    "UpdatedAt": 1512457804,
                    "id": "590939b9b9128e1100e477cf"
                },
                "ParentCategoryVO": {
                    "Name": "饮料",
                    "ParentID": "",
                    "Level": 1,
                    "CreateAt": 1491529283,
                    "UpdatedAt": 1491529283,
                    "id": "58e6ee4369c7ef1100ad2f06"
                }
            },
            "DepotVO": {
                "id": "69c39945314d630011fc2b8c",
                "Name": "仓库"
            },
            "SalesVolume": 10 // 近七天销售单数
        }, {...}]
    }
}
Copyright © YoPoint.com 2019 all right reserved,powered by Gitbook该文件修订时间: 2024-01-04 16:21:22

results matching ""

    No results matching ""