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.
80 lines
1.2 KiB
80 lines
1.2 KiB
1 year ago
|
### 列出Bom(ListConfigBom)
|
||
|
|
||
|
此接口用于获取Bom列表,搜索Bom
|
||
|
|
||
|
---
|
||
|
|
||
|
### 基本信息
|
||
|
|
||
|
方法:POST
|
||
|
|
||
|
URL: http://localhost:8033/open/ListConfigBom
|
||
|
|
||
|
---
|
||
|
|
||
|
### 请求
|
||
|
|
||
|
请求参数
|
||
|
|
||
|
| 参数名 | 类型 | 必填 | 说明 |
|
||
|
| :-- | :-- | :-- | :-- |
|
||
|
| profile | string | 是 | 厂区代码 |
|
||
|
| search | string | 否 | BomId、Bom描述模糊查询 |
|
||
|
|
||
|
示例 1:模糊查询bom列表
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"data": {
|
||
|
profile:"测试厂区",
|
||
|
search: "bom",
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
---
|
||
|
|
||
|
### 响应
|
||
|
|
||
|
响应字段
|
||
|
|
||
|
| 字段 | 类型 | 说明 |
|
||
|
| :-- | :-- | :-- |
|
||
|
| bomId | string | bomId |
|
||
|
| descriptions | string | bom描述 |
|
||
|
| flag | int | 数据状态:0禁用 1启用 |
|
||
|
| createTime | string | 创建时间 |
|
||
|
|
||
|
|
||
|
查询成功时,响应如下:
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"clock": "2023-06-25 20:00:00.000",
|
||
|
"status": "ok",
|
||
|
"data": {
|
||
|
list:[{
|
||
|
bomId:"CXBOM",
|
||
|
descriptions:"CXBOM",
|
||
|
flag:1,
|
||
|
createTime:"2023-04-09 18:10:01"
|
||
|
},{
|
||
|
bomId:"testBom002",
|
||
|
descriptions:"测试BOM002",
|
||
|
flag:1,
|
||
|
createTime:"2023-04-09 18:10:01"
|
||
|
}]
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
查询报错:
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"clock": "2023-06-25 20:00:00.000",
|
||
|
"status": "exception",
|
||
|
"message": "错误信息",
|
||
|
"data": {}
|
||
|
}
|
||
|
```
|