You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.4 KiB
78 lines
1.4 KiB
12 months ago
|
### 列出所有仓库(ListStock)
|
||
|
|
||
|
此接口用于查询所有的仓库库位信息
|
||
|
|
||
|
---
|
||
|
|
||
|
### 基本信息
|
||
|
|
||
|
方法:POST
|
||
|
|
||
|
URL: http://localhost:8033/open/listStock
|
||
|
|
||
|
认证:需要(如何认证请查看《认证方式》)
|
||
|
|
||
|
---
|
||
|
|
||
|
### 请求
|
||
|
|
||
|
请求参数
|
||
|
|
||
|
| 参数名 | 类型 | 必填 | 说明 |
|
||
|
| :-- | :-- | :-- | :-- |
|
||
|
| profile | string | 是 | 厂区配置名称 |
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"data": {
|
||
|
"profile": "test"
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
---
|
||
|
|
||
|
### 响应
|
||
|
|
||
|
__响应字段__
|
||
|
|
||
|
| 字段 | 类型 | 说明 |
|
||
|
| :-- | :-- | :-- |
|
||
|
| stocks | array | 仓库数组 |
|
||
|
| - code | string | 仓库编号 |
|
||
|
| - name | string | 库位名称(暂未启用) |
|
||
|
| - type | string | 仓库类型 YLC:原料仓,CPC:成品仓,XBC:线边仓 |
|
||
|
| - locations | array | 仓库下库位信息 |
|
||
|
|
||
|
__locations__
|
||
|
| 字段 | 类型 | 说明 |
|
||
|
| :-- | :-- | :-- |
|
||
|
| stockCode | string | 仓库代码 |
|
||
|
| name | string | 库位名称 |
|
||
|
| fullNumber | long | 满库数量 |
|
||
|
|
||
|
认证成功时,响应如下:
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"clock": "2023-12-08 15:52:08.447",
|
||
|
"duration": "146ms",
|
||
|
"status": "ok",
|
||
|
"data": {
|
||
|
"stocks": [
|
||
|
{
|
||
|
"code": "YLC001",
|
||
|
"name": null,
|
||
|
"type": "YLC",
|
||
|
"locations": [
|
||
|
{
|
||
|
"stockCode": "YLC001",
|
||
|
"name": "4-C01",
|
||
|
"fullNumber": 4000000
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
```
|