确认备料出库任务
POST
/api/open/v3/inventory/task/prepare/materialTask/confirm
请求参数
Body 参数application/json
body
object (InventoryMaterialTaskConfirmV3Params)
必需
records
array[object (InventoryMaterialTaskRecord) {8}]
出入库明细
comment
string
备注信息
<= 150 字符
示例
{
"body": {
"records": [
{
"code": "MAT-PREP-202410-001",
"warehouseCode": "WH-CHIP-VACUUM",
"locationCode": "BIN-05-12",
"batchNumber": "BATCH-202410-5NM",
"snNumber": "SN-CHIP-202410-0001~0200",
"quantity": 1,
"assistQuantity": 1,
"comment": "5nm制程芯片 | ESD防护包装 | 湿度敏感等级MSL-2"
},
{
"code": "MAT-PREP-202410-002",
"warehouseCode": "WH-PCB",
"locationCode": "BIN-03-08",
"batchNumber": "PCB-LOT-202410-A",
"quantity": 1500,
"assistQuantity": 45,
"comment": "6层HDI板 | 防潮包装已校验(湿度<10%RH)"
},
{
"code": "MAT-PREP-202410-003",
"warehouseCode": "WH-CHEM",
"locationCode": "BIN-12-05",
"batchNumber": "PASTE-LOT-202410-B",
"snNumber": "SN-PASTE-202410-001",
"quantity": 1,
"assistQuantity": 1,
"comment": "无铅锡膏 | 冷藏运输要求(10-15℃)"
}
],
"comment": "华为P80主板生产备料 | 工单号:WO-202410-1001 | 紧急等级:A1"
}
}
示例代码
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/prepare/materialTask/confirm' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"records": [
{
"code": "MAT-PREP-202410-001",
"warehouseCode": "WH-CHIP-VACUUM",
"locationCode": "BIN-05-12",
"batchNumber": "BATCH-202410-5NM",
"snNumber": "SN-CHIP-202410-0001~0200",
"quantity": 1,
"assistQuantity": 1,
"comment": "5nm制程芯片 | ESD防护包装 | 湿度敏感等级MSL-2"
},
{
"code": "MAT-PREP-202410-002",
"warehouseCode": "WH-PCB",
"locationCode": "BIN-03-08",
"batchNumber": "PCB-LOT-202410-A",
"quantity": 1500,
"assistQuantity": 45,
"comment": "6层HDI板 | 防潮包装已校验(湿度<10%RH)"
},
{
"code": "MAT-PREP-202410-003",
"warehouseCode": "WH-CHEM",
"locationCode": "BIN-12-05",
"batchNumber": "PASTE-LOT-202410-B",
"snNumber": "SN-PASTE-202410-001",
"quantity": 1,
"assistQuantity": 1,
"comment": "无铅锡膏 | 冷藏运输要求(10-15℃)"
}
],
"comment": "华为P80主板生产备料 | 工单号:WO-202410-1001 | 紧急等级:A1"
}
}'
返回响应
🟢200成功
application/json
Body
com.xinheyun.model.response.BaseResponse
code
integer
可选
message
string
可选
示例
{
"code": 0,
"message": ""
}