From 89d4f6b24ada69fd143830f68a121c339868eca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=95=E6=88=90=E6=97=AD?= <1043274364@qq.com> Date: Tue, 4 Jul 2023 18:30:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95bom=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mes/BOM/删除单个BOM内容.md | 64 +++++++++++ mes/BOM/删除工单所有BOM信息.md | 62 +++++++++++ mes/BOM/查询工单BOM明细.md | 146 +++++++++++++++++-------- mes/BOM/添加工单BOM信息.md | 10 +- 4 files changed, 229 insertions(+), 53 deletions(-) create mode 100644 mes/BOM/删除单个BOM内容.md create mode 100644 mes/BOM/删除工单所有BOM信息.md diff --git a/mes/BOM/删除单个BOM内容.md b/mes/BOM/删除单个BOM内容.md new file mode 100644 index 0000000..d544b9f --- /dev/null +++ b/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": {} +} +``` \ No newline at end of file diff --git a/mes/BOM/删除工单所有BOM信息.md b/mes/BOM/删除工单所有BOM信息.md new file mode 100644 index 0000000..101c9d5 --- /dev/null +++ b/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": {} +} +``` \ No newline at end of file diff --git a/mes/BOM/查询工单BOM明细.md b/mes/BOM/查询工单BOM明细.md index 6682166..a639ccb 100644 --- a/mes/BOM/查询工单BOM明细.md +++ b/mes/BOM/查询工单BOM明细.md @@ -28,8 +28,8 @@ URL: http://localhost:8033/open/getWorkorderBom ``` { "data": { - "profile": "测试厂区", - "workorder": "1407", + "profile": "测试", + "workorder": "workorders" } } ``` @@ -40,57 +40,107 @@ URL: http://localhost:8033/open/getWorkorderBom 响应字段 -| 参数名 | 类型 | 必填 | 说明 | -| :-- | :-- | :-- | :-- | -| 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 | 否 | 母批号 | +| 参数名 | 类型 | 说明 | +| :-- | :-- | :-- | +| 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-07-04 18:07:52.287", + "status": "ok", + "data": { + "list": [ + { + "workorder": "workorders", + "productCode": "prodect_code", + "bomId": "", + "materialCode": "1002211010018723", + "isPrimary": 1, + "primaryPart": "1002211010018723", + "processCode": "M15", + "serialRequirement": 1.0, + "uom": "m2", + "partType": "EVA", + "partTypeDesc": "EVA", + "lostRatio": 0.0, + "origBatchNbr": "1002211010018723" + }, + { + "workorder": "workorders", + "productCode": "prodect_code", + "bomId": "", + "materialCode": "333", + "isPrimary": 1, + "primaryPart": "333", + "processCode": "M10", + "serialRequirement": 1.0, + "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" + } + ] + } } ``` diff --git a/mes/BOM/添加工单BOM信息.md b/mes/BOM/添加工单BOM信息.md index ece596a..73fca81 100644 --- a/mes/BOM/添加工单BOM信息.md +++ b/mes/BOM/添加工单BOM信息.md @@ -32,11 +32,11 @@ bom字段 | isPrimary | int | 否 | 是否主料 0否,1是| | primaryPart | string | 否 | 主料物料编码,如果isPrimary=1,则与materialCode相同 | | ProcessCode | string | 否 | 工序代码 | -| SerialRequirement | double | 否 | 物料单耗 | -| Uom | string | 否 | 单位 | -| PartType | string | 否 | 物料类别 | -| LostRatio | string | 否 | 物料损耗 | -| OrigBatchNbr | string | 否 | 母批号 | +| serialRequirement | double | 是 | 物料单耗 | +| uom | string | 否 | 单位 | +| partType | string | 否 | 物料类别 | +| lostRatio | string | 否 | 物料损耗 | +| origBatchNbr | string | 否 | 母批号 | 示例 1:保存工单bom信息