Browse Source

工单bom删除接口

master
吕成旭 1 year ago
parent
commit
89d4f6b24a
  1. 64
      mes/BOM/删除单个BOM内容.md
  2. 62
      mes/BOM/删除工单所有BOM信息.md
  3. 146
      mes/BOM/查询工单BOM明细.md
  4. 10
      mes/BOM/添加工单BOM信息.md

64
mes/BOM/删除单个BOM内容.md

@ -0,0 +1,64 @@
### 删除单个BOM内容(DeleteBomMfgEntry)
此接口用于删除单个BOM内容
---
### 基本信息
方法:POST
URL: http://localhost:8033/open/DeleteBomMfgEntry
---
### 请求
请求参数
| 参数名 | 类型 | 必填 | 说明 |
| :-- | :-- | :-- | :-- |
| profile | string | 是 | 厂区代码 |
| Workorder | string | 是 | 工单号 |
| ProductCode | string | 是 | 产品编码 |
| MaterialCode | string | 是 | 物料编码 |
示例 1:删除指定产品
```
{
"data": {
"profile": "测试",
"Workorder": "2014568",
"ProductCode": "D020200-00038",
"MaterialCode": "自制"
}
}
```
---
### 响应
执行成功时,响应如下:
```
{
"clock": "2023-06-25 20:00:00.000",
"status": "ok",
"data": {}
}
```
执行报错:
```
{
"clock": "2023-06-25 20:00:00.000",
"status": "exception",
"message": "删除产品失败",
"data": {}
}
```

62
mes/BOM/删除工单所有BOM信息.md

@ -0,0 +1,62 @@
### 删除工单所有BOM信息(DeleteBomMfgEntry)
此接口用于删除工单所有BOM信息
---
### 基本信息
方法:POST
URL: http://localhost:8033/open/DeleteBomMfgEntry
---
### 请求
请求参数
| 参数名 | 类型 | 必填 | 说明 |
| :-- | :-- | :-- | :-- |
| profile | string | 是 | 厂区代码 |
| Workorder | string | 是 | 工单号 |
| ProductCode | string | 是 | 产品编码 |
示例 1:删除指定产品
```
{
"data": {
"profile": "测试",
"Workorder": "2014568",
"ProductCode": "D020200-00038"
}
}
```
---
### 响应
执行成功时,响应如下:
```
{
"clock": "2023-06-25 20:00:00.000",
"status": "ok",
"data": {}
}
```
执行报错:
```
{
"clock": "2023-06-25 20:00:00.000",
"status": "exception",
"message": "删除产品失败",
"data": {}
}
```

146
mes/BOM/查询工单BOM明细.md

@ -28,8 +28,8 @@ URL: http://localhost:8033/open/getWorkorderBom
``` ```
{ {
"data": { "data": {
"profile": "测试厂区", "profile": "测试",
"workorder": "1407", "workorder": "workorders"
} }
} }
``` ```
@ -40,57 +40,107 @@ URL: http://localhost:8033/open/getWorkorderBom
响应字段 响应字段
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 说明 |
| :-- | :-- | :-- | :-- | | :-- | :-- | :-- |
| workorder | string | 是 | 工单号 | | workorder | string | 工单号 |
| productCode | string | 是 | 产品编码 | | productCode | string | 产品编码 |
| bomId | string | 是 | bomId | | bomId | string | bomId |
| materialCode | string | 是 | 物料编码 | | materialCode | string | 物料编码 |
| isPrimary | int | 否 | 是否主料 0否,1是| | isPrimary | int | 是否主料 0否,1是|
| primaryPart | string | 否 | 主料物料编码,如果isPrimary=1,则与materialCode相同 | | primaryPart | string | 主料物料编码,如果isPrimary=1,则与materialCode相同 |
| ProcessCode | string | 否 | 工序代码 | | ProcessCode | string | 工序代码 |
| SerialRequirement | double | 否 | 物料单耗 | | SerialRequirement | double | 物料单耗 |
| Uom | string | 否 | 单位 | | uom | string | 单位 |
| PartType | string | 否 | 物料类别编码 | | PartType | string | 物料类别编码 |
| PartTypeDesc | string | 否 | 物料类别描述 | | partTypeDesc | string | 物料类别描述 |
| LostRatio | string | 否 | 物料损耗 | | lostRatio | string | 物料损耗 |
| OrigBatchNbr | string | 否 | 母批号 | | origBatchNbr | string | 母批号 |
查询成功时,响应如下: 查询成功时,响应如下:
``` ```
{ {
"clock": "2023-06-25 20:00:00.000", "clock": "2023-07-04 18:07:52.287",
"status": "ok", "status": "ok",
"data": { "data": {
"list": [{ "list": [
"workorder": "1407", {
"productCode": "PD004", "workorder": "workorders",
"bomId": "1231413", "productCode": "prodect_code",
"materialCode": "CELL001", "bomId": "",
"isPrimary": 1, "materialCode": "1002211010018723",
"primaryPart": "CELL001", "isPrimary": 1,
"ProcessCode": "M15", "primaryPart": "1002211010018723",
"SerialRequirement": 3.2, "processCode": "M15",
"Uom": "pcs", "serialRequirement": 1.0,
"PartType": "CELL", "uom": "m2",
"LostRatio": 0.01, "partType": "EVA",
"OrigBatchNbr": "" "partTypeDesc": "EVA",
}, { "lostRatio": 0.0,
"workorder": "1407", "origBatchNbr": "1002211010018723"
"productCode": "PD004", },
"bomId": "1231413", {
"materialCode": "CELL002", "workorder": "workorders",
"isPrimary": 0, "productCode": "prodect_code",
"primaryPart": "CELL001", "bomId": "",
"ProcessCode": "M15", "materialCode": "333",
"SerialRequirement": 3.2, "isPrimary": 1,
"Uom": "pcs", "primaryPart": "333",
"PartType": "CELL", "processCode": "M10",
"LostRatio": 0.01, "serialRequirement": 1.0,
"OrigBatchNbr": "" "uom": "pcs",
}] "partType": "CELL",
} "partTypeDesc": "电池片",
"lostRatio": 0.0,
"origBatchNbr": "333"
},
{
"workorder": "workorders",
"productCode": "prodect_code",
"bomId": "",
"materialCode": "boli001",
"isPrimary": 1,
"primaryPart": "boli001",
"processCode": "M10",
"serialRequirement": 1.0,
"uom": "pcs",
"partType": "GLASS",
"partTypeDesc": "玻璃",
"lostRatio": 0.0,
"origBatchNbr": "boli001"
},
{
"workorder": "workorders",
"productCode": "prodect_code",
"bomId": "",
"materialCode": "flux_materials_class",
"isPrimary": 1,
"primaryPart": "flux_materials_class",
"processCode": "M10",
"serialRequirement": 1.0,
"uom": "桶_describe",
"partType": "Solder",
"partTypeDesc": "助焊剂",
"lostRatio": 0.0,
"origBatchNbr": "flux_materials_class"
},
{
"workorder": "workorders",
"productCode": "prodect_code",
"bomId": "",
"materialCode": "flux_materials_class_2",
"isPrimary": 1,
"primaryPart": "flux_materials_class_2",
"processCode": "M10",
"serialRequirement": 100.0,
"uom": "桶_describe",
"partType": "Solder",
"partTypeDesc": "助焊剂",
"lostRatio": 0.0,
"origBatchNbr": "flux_materials_class_2"
}
]
}
} }
``` ```

10
mes/BOM/添加工单BOM信息.md

@ -32,11 +32,11 @@ bom字段
| isPrimary | int | 否 | 是否主料 0否,1是| | isPrimary | int | 否 | 是否主料 0否,1是|
| primaryPart | string | 否 | 主料物料编码,如果isPrimary=1,则与materialCode相同 | | primaryPart | string | 否 | 主料物料编码,如果isPrimary=1,则与materialCode相同 |
| ProcessCode | string | 否 | 工序代码 | | ProcessCode | string | 否 | 工序代码 |
| SerialRequirement | double | 否 | 物料单耗 | | serialRequirement | double | 是 | 物料单耗 |
| Uom | string | 否 | 单位 | | uom | string | 否 | 单位 |
| PartType | string | 否 | 物料类别 | | partType | string | 否 | 物料类别 |
| LostRatio | string | 否 | 物料损耗 | | lostRatio | string | 否 | 物料损耗 |
| OrigBatchNbr | string | 否 | 母批号 | | origBatchNbr | string | 否 | 母批号 |
示例 1:保存工单bom信息 示例 1:保存工单bom信息

Loading…
Cancel
Save