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.
75 lines
1.3 KiB
75 lines
1.3 KiB
1 year ago
|
### BOM添加材料(BomAddPart)
|
||
|
|
||
|
此接口用于向Bom添加材料信息
|
||
|
|
||
|
---
|
||
|
|
||
|
### 基本信息
|
||
|
|
||
|
方法:POST
|
||
|
|
||
|
URL: http://localhost:8033/open/BomAddPart
|
||
|
|
||
|
---
|
||
|
|
||
|
### 请求
|
||
|
|
||
|
请求参数
|
||
|
|
||
|
| 参数名 | 类型 | 必填 | 说明 |
|
||
|
| :-- | :-- | :-- | :-- |
|
||
|
| profile | string | 是 | 厂区代码 |
|
||
|
| bomId | string | 是 | BomId |
|
||
|
| bomPartNbr | string | 是 | 物料料号 |
|
||
|
| isPrimary | int | 是 | 是否为主料:0否 1是 |
|
||
|
| PrimaryPart | string | 是 | 主料料号,如果isPrimary=0,则需要传递该字段 |
|
||
|
| SerialRequirement | double | 是 | 材料单耗 |
|
||
|
| PartType | string | 是 | 物料类别id |
|
||
|
| LostRatio | double | 是 | 物料耗损 |
|
||
|
| GlueType | string | 否 | |
|
||
|
| Supplier | string | 否 | 供应商编码 |
|
||
|
|
||
|
示例 1:向Bom添加材料信息
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"data": {
|
||
|
profile:"测试厂区",
|
||
|
bomId:"1407",
|
||
|
bomPartNbr:"M.1.1.N.100",
|
||
|
isPrimary:1,
|
||
|
PrimaryPart:"M.1.1.N.100",
|
||
|
SerialRequirement:3,
|
||
|
PartType:"CELL",
|
||
|
LostRatio:3,
|
||
|
GlueType:"",
|
||
|
Supplier:"CS2",
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
---
|
||
|
|
||
|
### 响应
|
||
|
|
||
|
|
||
|
执行成功时,响应如下:
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"clock": "2023-06-25 20:00:00.000",
|
||
|
"status": "ok",
|
||
|
"data": {}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
执行报错:
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"clock": "2023-06-25 20:00:00.000",
|
||
|
"status": "exception",
|
||
|
"message": "添加材料失败",
|
||
|
"data": {}
|
||
|
}
|
||
|
```
|