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.
90 lines
1.7 KiB
90 lines
1.7 KiB
1 year ago
|
### 原材料批次列表
|
||
|
此接口用于查询mes中对应的原材料批次信息。
|
||
|
此接口需要认证,详情请查看《认证方式》。
|
||
|
|
||
|
---
|
||
|
|
||
|
### 基本信息
|
||
|
方法:POST
|
||
|
URL: http://localhost:8033/open/materialBatchList
|
||
|
|
||
|
---
|
||
|
|
||
|
### 请求
|
||
|
|
||
|
__请求参数__
|
||
|
|
||
|
| 参数名 | 类型 | 必填 | 说明 |
|
||
|
| :-- | :-- | :-- | :-- |
|
||
|
| profile | String | 是 | 厂区配置profile |
|
||
|
| WorkOrder | String | 否 | 工单号 |
|
||
|
| BatchNumber | String | 否 | 母批号 |
|
||
|
| SubBatchNumber | String | 否 | 子批号 |
|
||
|
|
||
|
__请求示例:__
|
||
|
```
|
||
|
|
||
|
{
|
||
|
{
|
||
|
"data":{
|
||
|
"profile": "测试",
|
||
|
"WorkOrder": "12346",
|
||
|
"BatchNumber": "CELL1000",
|
||
|
"SubBatchNumber": "CELL1000-01"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
````
|
||
|
|
||
|
---
|
||
|
|
||
|
### 响应
|
||
|
__响应字段__
|
||
|
| 字段 | 类型 | 说明 |
|
||
|
| :-- | :-- | :-- |
|
||
|
| clock | String | 当前服务器时钟。 |
|
||
|
| status | String | 状态,ok:成功,error:错误,exception:异常 |
|
||
|
| data | Array | 成功后返回具体内容 |
|
||
|
|
||
|
__data:__
|
||
|
| 字段 | 类型 | 说明 |
|
||
|
| :-- | :-- | :-- |
|
||
|
| key | String | 批次记录主键 |
|
||
|
| workOrder | String | 工单号 |
|
||
|
| batchNumber | String | 母批号 |
|
||
|
| subBatchNumber | String | 子批号 |
|
||
|
| materialCode | String | 物料代码 |
|
||
|
| uom | String | 物料单位 |
|
||
|
| count | Double | 批次物料数量 |
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"clock": "2023-06-25 20:00:00.000",
|
||
|
"status": "ok",
|
||
|
"data": [
|
||
|
{
|
||
|
"key":"123",
|
||
|
"workOrder":"123456",
|
||
|
"batchNumber":"CELL1000",
|
||
|
"subBatchNumber":"",
|
||
|
"materialCode":"CELL12",
|
||
|
"uom":"块",
|
||
|
"count":1000
|
||
|
},
|
||
|
{
|
||
|
"key":"1234",
|
||
|
"workOrder":"123456",
|
||
|
"batchNumber":"CELL1000",
|
||
|
"subBatchNumber":"CELL1000-01",
|
||
|
"materialCode":"CELL12",
|
||
|
"uom":"块",
|
||
|
"count":80
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
|
||
|
```
|
||
|
|
||
|
|