单据下发
简要描述
> 用户在上位机系统中完成出库单创建流程后,将单据中的涉及到的所有库位信息调用接口进行下发,成功后WCS将进行后续的出库流程。
请求URL
> http://{IP}:9527/api/order/issue
请求参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
orderType | 是 | int | 工单类型 <br/>2-出库<br/>3-移库 |
wmsId | 是 | string | WMS系统唯一号 |
fromLocation | 是 | string | 起点库位 |
toLocation | 是 | string | 终点库位或出库口 |
请求示例
{
"data": [
{
"orderType": 2,
"wmsId": "2208GqTpHHY6siDokXNUCyddje",
"fromLocation": "L020501",
"toLocation": "P1"
},
{
"orderType": 3,
"wmsId": "2208GqTpHHY6siDokXNUCyddjf",
"fromLocation": "L020501",
"toLocation": "L020502"
}
]
}
响应参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
wmsId | 是 | string | WMS系统唯一号 |
orderNo | 是 | int | WCS单据号 |
orderType | 是 | int | 工单类型<br/>2-出库单<br/>3-移库单 |
orderState | 是 | int | 工单状态<br/>1-已创建 |
createdTime | 是 | string | 创建时间 |
响应示例
{
"data": [
{
"wmsId": "W002",
"orderNo": "002",
"orderType": 3,
"fromLocation": "P1",
"toLocation": "L020202",
"orderState": 1,
"createdTime": "2022-10-20 09:54:56"
},
{
"wmsId": "W001",
"orderNo": "001",
"orderType": 2,
"fromLocation": "P1",
"toLocation": "L020202",
"orderState": 1,
"createdTime": "2022-10-20 09:54:56"
}
],
"respCode": 0,
"respMsg": "成功"
}