MES标准开放接口
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.

133 lines
3.4 KiB

### 列出车间生产不良明细(ListSerialDefects)
此接口用于获取车间组件不良明细,搜索不良明细
---
### 基本信息
方法:POST
URL: http://localhost:8033/open/ListSerialDefects
---
### 请求
请求参数
| 参数名 | 类型 | 必填 | 说明 |
| :-- | :-- | :-- | :-- |
| profile | string | 是 | 厂区代码 |
| StartTime | string | 是 | 开始时间 |
| EndTime | string | 是 | 结束时间 |
| StationType | array[string] | 否 | 站点类型(QEL(前EL)\CYHJY(层压后检验)\HEL(后EL)\QJ(全检)\QC(品质管控)) |
示例 1:
```
{
"data": {
"profile": "测试",
"StartTime": "2024-09-30 00:00:00",
"EndTime": "2024-09-31 00:00:00"
}
}
```
---
### 响应
响应字段
| 字段 | 类型 | 说明 |
| :-- | :-- | :-- |
| StationType | string | 站点类型 |
| DefectList | Array | 物料属性 |
DefectList字段
| 字段 | 类型 | 说明 |
| :-- | :-- | :-- |
| SerialNbr | string | 组件序列号 |
| WksId | string | 机台号 |
| CreateTime | string | 不良创建时间 |
| DefectGroupDesc | string | 不良大类名称 |
| DefectTypeDesc | string | 不良小类名称 |
| DefectPosition | string | 不良位置 |
| Operator | string | 不良提交人 |
| Workorder | string | 工单号 |
| ProductCode | string | 产品编码 |
查询成功时,响应如下:
```
{
"clock": "2024-09-30 14:12:33.463",
"status": "ok",
"data": {
"list": [
{
"StationType": "QEL",
"DefectList": [
{
"SerialNbr": "20230704001",
"WksId": "QEL001",
"CreateTime": "2024-09-30 05:00:00",
"DefectGroupDesc": "EL不良",
"DefectTypeDesc": "破片",
"DefectPosition": "A-8",
"Operator": "admin",
"Workorder": "20241018001",
"ProductCode": "1001"
}
]
},
{
"StationType": "HEL",
"DefectList": [
{
"SerialNbr": "20230704001",
"WksId": "HEL001",
"CreateTime": "2024-09-30 05:00:00",
"DefectGroupDesc": "EL不良",
"DefectTypeDesc": "隐裂",
"DefectPosition": "C-6",
"Operator": "admin",
"Workorder": "20241018001",
"ProductCode": "1001"
}
]
},
{
"StationType": "QJ",
"DefectList": [
{
"SerialNbr": "20230704001",
"WksId": "QJ001",
"CreateTime": "2024-09-30 05:00:00",
"DefectGroupDesc": "外观不良",
"DefectTypeDesc": "玻璃脏污",
"DefectPosition": "",
"Operator": "admin",
"Workorder": "20241018001",
"ProductCode": "1001"
}
]
},
]
}
}
```
查询报错:
```
{
"clock": "2024-09-30 20:00:00.000",
"status": "exception",
"message": "错误信息",
"data": {}
}
```