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.

91 lines
1.4 KiB

### 列出物料类别(ListMaterialType)
此接口用于列出物料类别列表
---
### 基本信息
方法:POST
URL: http://localhost:8033/open/ListMaterialType
---
### 请求
请求参数
| 参数名 | 类型 | 必填 | 说明 |
| :-- | :-- | :-- | :-- |
| profile | string | 是 | 厂区代码 |
| search | string | 否 | 物料类型模糊查询 |
示例 1:模糊查询电池物料类别
```
{
"data": {
profile: "测试厂区",
search: "电池",
}
}
```
---
### 响应
响应字段
| 字段 | 类型 | 说明 |
| :-- | :-- | :-- |
| materialTypeCode | string | 物料类别代码 |
| materialTypeDesc | string | 物料类别名称 |
| unit | string | 单位 |
| flag | int | 数据状态:0禁用 1启用 |
| ManagerType | string | 创建时间 |
| Sort | int | 序号 |
| ErpCode | string | |
查询成功时,响应如下:
```
{
"clock": "2023-06-25 20:00:00.000",
"status": "ok",
"data": {
list: [{
materialTypeCode: "CELL",
materialTypeDesc: "电池片",
unit: "pcs",
flag: 1,
ManagerType: "Photovoltaic",
Sort: 1,
ErpCode: "",
},
{
materialTypeCode: "EVA",
materialTypeDesc: "EVA",
unit: "m2",
flag: 1,
ManagerType: "Photovoltaic",
Sort: 2,
ErpCode: "",
}
]
}
}
```
查询报错:
```
{
"clock": "2023-06-25 20:00:00.000",
"status": "exception",
"message": "错误信息",
"data": {}
}
```