|
|
|
### 原材料批次详细信息
|
|
|
|
此接口用于查询mes中对应的原材料批次的详细信息。
|
|
|
|
此接口需要认证,详情请查看《认证方式》。
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 基本信息
|
|
|
|
方法:POST
|
|
|
|
URL: http://localhost:8033/open/materialBatchDetail
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 请求
|
|
|
|
|
|
|
|
__请求参数__
|
|
|
|
|
|
|
|
| 参数名 | 类型 | 必填 | 说明 |
|
|
|
|
| :-- | :-- | :-- | :-- |
|
|
|
|
| profile | String | 是 | 厂区 |
|
|
|
|
| workOrder | String | 是 | 工单号 |
|
|
|
|
| batchNumber | String | 是 | 母批号 |
|
|
|
|
| subBatchNumber | String | 否 | 子批号 |
|
|
|
|
|
|
|
|
__请求示例:__
|
|
|
|
```
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"data":{
|
|
|
|
"profile": "测试",
|
|
|
|
"workOrder": "12346",
|
|
|
|
"batchNumber": "CELL1000",
|
|
|
|
"subBatchNumber": "CELL1000-01"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
````
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 响应
|
|
|
|
__响应字段__
|
|
|
|
| 字段 | 类型 | 说明 |
|
|
|
|
| :-- | :-- | :-- |
|
|
|
|
| clock | String | 当前服务器时钟。 |
|
|
|
|
| status | String | 状态,ok:成功,error:错误,exception:异常 |
|
|
|
|
| data | Object | 成功后返回具体内容 |
|
|
|
|
|
|
|
|
__data:__
|
|
|
|
| 字段 | 类型 | 说明 |
|
|
|
|
| :-- | :-- | :-- |
|
|
|
|
| key | String | 批次记录主键 |
|
|
|
|
| workOrder | String | 工单号 |
|
|
|
|
| batchNumber | String | 母批号 |
|
|
|
|
| subBatchNumber | String | 子批号 |
|
|
|
|
| materialCode | String | 物料代码 |
|
|
|
|
| materialName | String | 物料名称 |
|
|
|
|
| materialTypeCode | String | 物料类别代码 |
|
|
|
|
| materialTypeDesc | String | 物料类别名称 |
|
|
|
|
| uom | String | 物料单位 |
|
|
|
|
| count | Double | 批次物料数量 |
|
|
|
|
| surplusQty | Double | 剩余数量 |
|
|
|
|
| supplierBatchNo | String | 供应商来料批次号 |
|
|
|
|
| supplierCode | String | 供应商代码 |
|
|
|
|
| supplier | String | 供应商名称 |
|
|
|
|
| secondSupplierCode | String | 第二供应商代码 |
|
|
|
|
| secondSupplier | String | 第二供应商名称 |
|
|
|
|
| createTime | String | 分批时间 |
|
|
|
|
| remark | String | 备注 |
|
|
|
|
| materialAttrs | Array | 批次物料属性 |
|
|
|
|
|
|
|
|
__materialAttrs:__
|
|
|
|
| 字段 | 类型 | 说明 |
|
|
|
|
| :-- | :-- | :-- |
|
|
|
|
| materialTypeCode | String | 物料类别代码 |
|
|
|
|
| materialTypeDesc | String | 物料类别 |
|
|
|
|
| attrCode | String | 属性代码 |
|
|
|
|
| attrName | String | 属性名称 |
|
|
|
|
| valueCode | String | 属性值代码 |
|
|
|
|
| value | String | 属性值名称 |
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"clock": "2023-06-25 20:00:00.000",
|
|
|
|
"status": "ok",
|
|
|
|
"data": {
|
|
|
|
"batch":{
|
|
|
|
"key":"",
|
|
|
|
"workOrder":"123456",
|
|
|
|
"batchNumber":"CELL1000",
|
|
|
|
"subBatchNumber":"",
|
|
|
|
"materialCode":"CELL12",
|
|
|
|
"materialName": "12号电池片",
|
|
|
|
"materialTypeCode":"CELL",
|
|
|
|
"materialTypeDesc":"电池片",
|
|
|
|
"uom":"块",
|
|
|
|
"count":1000,
|
|
|
|
"surplusQty": 534,
|
|
|
|
"supplierBatchNo": "ZL0902001",
|
|
|
|
"supplierCode":"ZL",
|
|
|
|
"supplier": "中来",
|
|
|
|
"secondSupplierCode": "ZL",
|
|
|
|
"secondSupplier": "中来",
|
|
|
|
"createTime": "2021-01-01 09:00:00",
|
|
|
|
"remark": "这里是备注",
|
|
|
|
"materialAttrs": [
|
|
|
|
{
|
|
|
|
"materialTypeCode":"CELL",
|
|
|
|
"materialTypeDesc":"电池片",
|
|
|
|
"attrCode":"Color",
|
|
|
|
"attrName":"颜色",
|
|
|
|
"valueCode":"Blue",
|
|
|
|
"value":"蓝色"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"materialTypeCode":"CELL",
|
|
|
|
"materialTypeDesc":"电池片",
|
|
|
|
"attrCode":"Size",
|
|
|
|
"attrName":"规格",
|
|
|
|
"valueCode":"144T",
|
|
|
|
"value":"144T"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|