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.
106 lines
2.0 KiB
106 lines
2.0 KiB
1 year ago
|
### 添加工单BOM信息(AddWorkorderBom)
|
||
|
|
||
|
此接口用于增加工单的BOM
|
||
|
|
||
|
---
|
||
|
|
||
|
### 基本信息
|
||
|
|
||
|
方法:POST
|
||
|
|
||
|
URL: http://localhost:8033/open/AddWorkorderBom
|
||
|
|
||
|
---
|
||
|
|
||
|
### 请求
|
||
|
|
||
|
请求参数
|
||
|
|
||
|
| 参数名 | 类型 | 必填 | 说明 |
|
||
|
| :-- | :-- | :-- | :-- |
|
||
|
| profile | string | 是 | 厂区代码 |
|
||
|
| workorder | string | 是 | 工单号 |
|
||
|
|
||
|
|
||
|
|
||
|
示例 1:模糊查询bom列表
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"data": {
|
||
|
"profile": "测试厂区",
|
||
|
"workorder": "1407",
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
---
|
||
|
|
||
|
### 响应
|
||
|
|
||
|
响应字段
|
||
|
|
||
|
| 参数名 | 类型 | 必填 | 说明 |
|
||
|
| :-- | :-- | :-- | :-- |
|
||
|
| workorder | string | 是 | 工单号 |
|
||
|
| productCode | string | 是 | 产品编码 |
|
||
|
| bomId | string | 是 | bomId |
|
||
|
| materialCode | string | 是 | 物料编码 |
|
||
|
| isPrimary | int | 否 | 是否主料 0否,1是|
|
||
|
| primaryPart | string | 否 | 主料物料编码,如果isPrimary=1,则与materialCode相同 |
|
||
|
| ProcessCode | string | 否 | 工序代码 |
|
||
|
| SerialRequirement | double | 否 | 物料单耗 |
|
||
|
| Uom | string | 否 | 单位 |
|
||
|
| PartType | string | 否 | 物料类别编码 |
|
||
|
| PartTypeDesc | string | 否 | 物料类别描述 |
|
||
|
| LostRatio | string | 否 | 物料损耗 |
|
||
|
| OrigBatchNbr | string | 否 | 母批号 |
|
||
|
|
||
|
查询成功时,响应如下:
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"clock": "2023-06-25 20:00:00.000",
|
||
|
"status": "ok",
|
||
|
"data": {
|
||
|
"list": [{
|
||
|
"workorder": "1407",
|
||
|
"productCode": "PD004",
|
||
|
"bomId": "1231413",
|
||
|
"materialCode": "CELL001",
|
||
|
"isPrimary": 1,
|
||
|
"primaryPart": "CELL001",
|
||
|
"ProcessCode": "M15",
|
||
|
"SerialRequirement": 3.2,
|
||
|
"Uom": "pcs",
|
||
|
"PartType": "CELL",
|
||
|
"LostRatio": 0.01,
|
||
|
"OrigBatchNbr": ""
|
||
|
}, {
|
||
|
"workorder": "1407",
|
||
|
"productCode": "PD004",
|
||
|
"bomId": "1231413",
|
||
|
"materialCode": "CELL002",
|
||
|
"isPrimary": 0,
|
||
|
"primaryPart": "CELL001",
|
||
|
"ProcessCode": "M15",
|
||
|
"SerialRequirement": 3.2,
|
||
|
"Uom": "pcs",
|
||
|
"PartType": "CELL",
|
||
|
"LostRatio": 0.01,
|
||
|
"OrigBatchNbr": ""
|
||
|
}]
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
查询报错:
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"clock": "2023-06-25 20:00:00.000",
|
||
|
"status": "exception",
|
||
|
"message": "错误信息",
|
||
|
"data": {}
|
||
|
}
|
||
|
```
|