接口 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
}, {...}]
}
}