更新生产领料出库任务
POST
/api/open/v3/inventory/task/picking/materialTask/confirm
请求参数
Body 参数application/json
body
object (InventoryMaterialTaskConfirmV3Params)
必需
records
array[object (InventoryMaterialTaskRecord) {8}]
出入库明细
comment
string
备注信息
<= 150 字符
示例
{
"body": {
"records": [
{
"code": "IC-CHIP-5NM",
"warehouseCode": "WH-CHIP-VACUUM",
"locationCode": "BIN-05-12",
"batchNumber": "BATCH-20240726-5NM",
"snNumber": "SN-CHIP-0726-001/SN-CHIP-0726-220",
"quantity": 1,
"assistQuantity": 1,
"comment": "追加1片备品 | 湿度敏感等级MSL-3"
},
{
"code": "PCB-MAIN-001A",
"warehouseCode": "WH-PCB",
"locationCode": "BIN-03-08",
"batchNumber": "PCB-LOT-0725C",
"quantity": 1250,
"assistQuantity": 37.5,
"comment": "新增50片工程试验板"
},
{
"code": "THERMAL-GREASE",
"warehouseCode": "WH-CHEM",
"locationCode": "BIN-15-02",
"batchNumber": "TG-LOT-0726A",
"quantity": 15,
"assistQuantity": 1.5,
"comment": "新型导热系数8.5W/m·K"
}
],
"comment": "ECN-0726-01工艺变更适配"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sit.newcoretech.com/api/open/v3/inventory/task/picking/materialTask/confirm' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"records": [
{
"code": "IC-CHIP-5NM",
"warehouseCode": "WH-CHIP-VACUUM",
"locationCode": "BIN-05-12",
"batchNumber": "BATCH-20240726-5NM",
"snNumber": "SN-CHIP-0726-001/SN-CHIP-0726-220",
"quantity": 1,
"assistQuantity": 1,
"comment": "追加1片备品 | 湿度敏感等级MSL-3"
},
{
"code": "PCB-MAIN-001A",
"warehouseCode": "WH-PCB",
"locationCode": "BIN-03-08",
"batchNumber": "PCB-LOT-0725C",
"quantity": 1250,
"assistQuantity": 37.5,
"comment": "新增50片工程试验板"
},
{
"code": "THERMAL-GREASE",
"warehouseCode": "WH-CHEM",
"locationCode": "BIN-15-02",
"batchNumber": "TG-LOT-0726A",
"quantity": 15,
"assistQuantity": 1.5,
"comment": "新型导热系数8.5W/m·K"
}
],
"comment": "ECN-0726-01工艺变更适配"
}
}'
返回响应
🟢200成功
application/json
Body
com.xinheyun.model.response.BaseResponse
code
integer
可选
message
string
可选
示例
{
"code": 0,
"message": ""
}