2 changed files with 256 additions and 0 deletions
@ -0,0 +1,96 @@ |
|||
### 修改工单 |
|||
|
|||
此接口可修改工单的状态("O"(字母O):开启;"C":关闭)。 |
|||
|
|||
--- |
|||
|
|||
### 基本信息 |
|||
|
|||
方法:POST |
|||
|
|||
URL:http://localhost:8033/open/UpdateWorkStatus |
|||
|
|||
认证:需要 |
|||
|
|||
--- |
|||
|
|||
### 请求 |
|||
|
|||
请求参数 |
|||
|
|||
| 参数名 | 类型 | 必填 | 说明 | |
|||
| :-- | :-- | :-- | :-- | |
|||
| profile | string | 是 | 厂区。 | |
|||
| code | string | 是 | 工单号。 | |
|||
| wo_status | string | 否 | 工单状态("O"(字母O):开启;"C":关闭) | |
|||
|
|||
请求示例 |
|||
|
|||
``` |
|||
{ |
|||
"data": { |
|||
"profile": "测试", |
|||
"code": "NewWorkorder001", |
|||
"wo_status": "C" |
|||
} |
|||
} |
|||
``` |
|||
|
|||
--- |
|||
|
|||
### 响应 |
|||
|
|||
响应字段 |
|||
|
|||
| 字段 | 类型 | 说明 | |
|||
| :-- | :-- | :-- | |
|||
| workorder | object | 工单。 | |
|||
| - code | string | 工单号。 | |
|||
| - areaCode | string | 车间编号。 | |
|||
| - areaDesc | string | 车间描述。 | |
|||
| - typeCode | string | 工单类型。 | |
|||
| - typeDesc | string | 工单类型。 | |
|||
| - orderCode | string | 订单号。 | |
|||
| - orderTypeCode | string | 订单类型。 | |
|||
| - orderTypeDesc | string | 订单类型。 | |
|||
| - customer | string | 客户。 | |
|||
| - oemCustomer | string | OEM 客户。 | |
|||
| - productCode | string | 产品编码。 | |
|||
| - productGrade | string | 产品等级。 | |
|||
| - planNum | int | 计划数量。 | |
|||
| - warnNum | int | 预警数量。 | |
|||
| - targetNum | int | 工单交付数量。 | |
|||
| - beginTime | string | 工单开始时间。 | |
|||
| - endTime | string | 工单结束时间 | |
|||
| - createTime | string | 工单创建时间。 | |
|||
|
|||
成功时的响应示例: |
|||
|
|||
``` |
|||
{ |
|||
"clock": "2023-01-01 20:00:00.000", |
|||
"status": "ok", |
|||
"data": { |
|||
"workorder": { |
|||
"code": "NewWorkorder001", |
|||
"areaCode": "1", |
|||
"areaDesc": null, |
|||
"typeCode": "301", |
|||
"typeDesc": "正常工单", |
|||
"orderCode": "NewOrder001", |
|||
"orderTypeCode": "General", |
|||
"orderTypeDesc": "常规订单", |
|||
"customer": "客户", |
|||
"oemCustomer": "OEM 客户", |
|||
"productCode": "1000", |
|||
"productGrade": "600", |
|||
"planNum": 5200, |
|||
"warnNum": 4800, |
|||
"targetNum": 5000, |
|||
"beginTime": "2008-08-08 20:00:00", |
|||
"endTime": "2008-08-24 20:00:00", |
|||
"createTime": "2023-01-01 20:00:00" |
|||
} |
|||
} |
|||
} |
|||
``` |
@ -0,0 +1,160 @@ |
|||
### WMS增加委外用料清单 |
|||
此接口用于新增WMS中的委外用料清单(委托代工) |
|||
此接口需要认证,详情请查看《认证方式》。 |
|||
|
|||
--- |
|||
|
|||
### 基本信息 |
|||
方法:POST |
|||
URL: http://localhost:8033/open/AddListOfOutsourcedMaterials |
|||
|
|||
--- |
|||
|
|||
### 请求 |
|||
|
|||
__请求参数__ |
|||
|
|||
| 参数名 | 类型 | 必填 | 说明 | |
|||
| :-- | :-- | :-- | :-- | |
|||
| profile | string | 是 | 厂区 | |
|||
| BillNo | string | 是 | 单据编号 | |
|||
| OutsourceOrd | string | 是 | 委外订单编号 | |
|||
| OutsourceOrdId | string | 是 | 委外订单行号 | |
|||
| OutsourceInCode | string | 是 | 委外订单内码 | |
|||
| OutsourceLineInCode | string | 是 | 委外订单行内码 | |
|||
| OutsourceOrdType | string | 是 | 委外订单类型 | |
|||
| OutsourceMaterialInCode | string | 是 | 委外用料清单内码 | |
|||
| ProductCode | string | 是 | 产品编码 | |
|||
| Status | string | 是 | 状态(0 禁用,1 启用) | |
|||
| 数量 | string | 是 | 数量 | |
|||
| UnitId | string | 是 | 主单位 | |
|||
| AstUnitId | string | 是 | 辅单位 | |
|||
| ChangeRate | string | 是 | 换算率 | |
|||
| Remark | string | 否 | 备注 | |
|||
| OutsourcedMaterialsDetail | Array | 是 | 委外订单明细 | |
|||
|
|||
_OutsourcedMaterialsDetail:__ |
|||
| 参数名 | 类型 | 必填 | 说明 | |
|||
| :-- | :-- | :-- | :-- | |
|||
| LineId | string | 是 | 委外用料清单行内码 | |
|||
| MaterialCode | string | 是 | 物料编码 | |
|||
| ShoudIssued | string | 是 | 应发数量 | |
|||
| UnitId | string | 是 | 主单位 | |
|||
| AstUnitId | string | 是 | 辅单位 | |
|||
| ChangeRate | string | 是 | 换算率 | |
|||
| OwnerType | string | 否 | 货主类型 | |
|||
| OwnerCode | string | 否 | 货主 | |
|||
| cellGrade | string | 否 | 辅助属性:等级 | |
|||
| cellColor | string | 否 | 辅助属性:颜色 | |
|||
| cellEff | string | 否 | 辅助属性:效率 | |
|||
| cellUop | string | 否 | 辅助属性:功率 | |
|||
| currentGrade | string | 否 | 辅助属性:电流 | |
|||
|
|||
__请求示例:__ |
|||
``` |
|||
{ |
|||
"data": { |
|||
"Profile": "test", |
|||
"BillNo": "123456", |
|||
"OutsourceOrd": "OutsourceOrd", |
|||
"OutsourceOrdId": "OutsourceOrdId", |
|||
"OutsourceInCode": "OutsourceInCode", |
|||
"OutsourceLineInCode": "OutsourceLineInCode", |
|||
"OutsourceOrdType": "OutsourceOrdType", |
|||
"OutsourceMaterialInCode": "OutsourceMaterialInCode", |
|||
"ProductCode": "ProductCode", |
|||
"Status": "1", |
|||
"Number": "500", |
|||
"UnitId": "UnitId", |
|||
"AstUnitId": "AstUnitId", |
|||
"ChangeRate": "ChangeRate", |
|||
"remark": "remark", |
|||
"OutsourcedMaterialsDetail": [ |
|||
{ |
|||
"LineId": "LineId", |
|||
"MaterialCode": "MaterialCode", |
|||
"ShoudIssued": "123.5625", |
|||
"UnitId": "UnitId", |
|||
"AstUnitId": "AstUnitId", |
|||
"ChangeRate": "ChangeRate", |
|||
"OwnerType": "组织", |
|||
"OwnerCode": "100", |
|||
} |
|||
] |
|||
} |
|||
} |
|||
```` |
|||
|
|||
--- |
|||
|
|||
### 响应 |
|||
__响应字段__ |
|||
| 字段 | 类型 | 说明 | |
|||
| :-- | :-- | :-- | |
|||
| clock | string | 当前服务器时钟。 | |
|||
| status | string | 状态,ok:成功,error:错误,exception:异常 | |
|||
| data | object | 成功后返回具体内容 | |
|||
|
|||
__data:__ |
|||
| 字段 | 类型 | 说明 | |
|||
| :-- | :-- | :-- | |
|||
|
|||
``` |
|||
{ |
|||
"clock": "2024-12-12 13:26:22.860", |
|||
"duration": "570ms", |
|||
"status": "ok", |
|||
"data": { |
|||
"bill_no": "123456", |
|||
"outsource_ord": "OutsourceOrd", |
|||
"outsource_ord_id": "OutsourceOrdId", |
|||
"outsourc_in_code": "OutsourceInCode", |
|||
"outsource_line_in_code": "OutsourceLineInCode", |
|||
"outsource_ord_type": "OutsourceOrdType", |
|||
"outsource_material_in_code": "OutsourceMaterialInCode", |
|||
"product_code": "ProductCode", |
|||
"product_name": null, |
|||
"specification": null, |
|||
"status": 1, |
|||
"number": "500", |
|||
"unit_id": "UnitId", |
|||
"astunit_id": "AstUnitId", |
|||
"change_rate": "ChangeRate", |
|||
"remark": "remark", |
|||
"create_username": "ERP", |
|||
"outsourcedMaterialsDetail": [ |
|||
{ |
|||
"parent_key": "23a9d58dd3e144ccb554270f8141d845", |
|||
"line_id": "LineId", |
|||
"material_code": "MaterialCode", |
|||
"material_name": null, |
|||
"specification": null, |
|||
"shoud_issued": 123.5625, |
|||
"issued_quantity": 0, |
|||
"unit_id": "UnitId", |
|||
"astunit_id": "AstUnitId", |
|||
"change_rate": "ChangeRate", |
|||
"owner_type": "组织", |
|||
"owner_code": "100", |
|||
"materialTypeName": null, |
|||
"materialDesc": null, |
|||
"unitName": null, |
|||
"astUnitName": null, |
|||
"created": 1734009982777, |
|||
"updated": 1734009982777, |
|||
"profile": "test", |
|||
"key": "b56520572ad2493a9335247783902cf3", |
|||
"flag": 1 |
|||
} |
|||
], |
|||
"created": 1734009982769, |
|||
"updated": 1734009982769, |
|||
"profile": "segtest", |
|||
"key": "23a9d58dd3e144ccb554270f8141d845", |
|||
"flag": 1 |
|||
} |
|||
} |
|||
|
|||
``` |
|||
|
|||
|
Loading…
Reference in new issue