### 列出物料类别(ListMaterialType)

此接口用于列出物料类别列表

---

### 基本信息

方法:POST

URL: http://localhost:8033/open/ListMaterialType

---

### 请求

请求参数

| 参数名 | 类型 | 必填 | 说明 |
| :-- | :-- | :-- | :-- |
| profile | string | 是 | 厂区代码 |
| search | string | 否 | 物料类型模糊查询 |

示例 1:查询物料类别

```
{
	"data": {
		"profile": "测试",
	}
}
```

---

### 响应

响应字段

| 字段 | 类型 |  说明 |
| :-- | :-- | :-- |
| materialTypeCode | string | 物料类别代码 |
| materialTypeDesc | string | 物料类别名称 |
| unit | string | 单位 |
| ManagerType | string | 创建时间 |
| Sort | int | 序号 |
| ErpCode | string |  |


查询成功时,响应如下:

```
{
    "clock": "2023-07-05 14:14:46.536",
    "status": "ok",
    "data": {
        "list": [

            {
                "materialTypeCode": "Battery",
                "materialTypeDesc": "电池材料",
                "unit": "",
                "managerType": "",
                "sort": 0,
                "erpCode": "  "
            },
            {
                "materialTypeCode": "BKSHEET",
                "materialTypeDesc": "背板",
                "unit": "m2",
                "managerType": "Photovoltaic",
                "sort": 5,
                "erpCode": "#F06#,#F06# "
            },
            {
                "materialTypeCode": "BOMID",
                "materialTypeDesc": "BOMID",
                "unit": "",
                "managerType": "Photovoltaic",
                "sort": 0,
                "erpCode": "  "
            },
            {
                "materialTypeCode": "CELL",
                "materialTypeDesc": "电池片",
                "unit": "pcs",
                "managerType": "Photovoltaic",
                "sort": 1,
                "erpCode": "#D#,#D# "
            },
            {
                "materialTypeCode": "EVA",
                "materialTypeDesc": "EVA",
                "unit": "m2",
                "managerType": "Photovoltaic",
                "sort": 2,
                "erpCode": "#H0603#,#H0603# "
            }
        ]
    }
}
```

查询报错:

```
{
  "clock": "2023-06-25 20:00:00.000",
  "status": "exception",
  "message": "错误信息",
  "data": {}
}
```