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.
4.6 KiB
4.6 KiB
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
}
}