{
"body": {
"workOrderCode": "WO-20240720-X1-001",
"code": "SCRAP-20240728-001",
"comments": "华为P70主板客户退货报废 | 缺陷代码:PCB-DEF-0728-05",
"records": [
{
"itemCode": "SMARTPHONE-X1-PLUS",
"quantity": 2,
"warehouseCode": "WH-SCRAP",
"locationCode": "BIN-09-03",
"batchNumber": "BATCH-MB-20240728",
"snInfos": [
{
"sn": "SN-MB-0728-0456",
"assistQuantity": 1
},
{
"sn": "SN-MB-0728-0457",
"assistQuantity": 1
}
]
},
{
"itemCode": "IC-CHIP-5NM",
"quantity": 2,
"warehouseCode": "WH-SCRAP-ELECTRONIC",
"locationCode": "BIN-11-02",
"batchNumber": "BATCH-20240724-5NM",
"snInfos": [
{
"sn": "SN-CHIP-0724-0217",
"assistQuantity": 1
},
{
"sn": "SN-CHIP-0724-0218",
"assistQuantity": 1
}
]
},
{
"itemCode": "SOLDER-PASTE",
"quantity": 3,
"warehouseCode": "WH-SCRAP-CHEM",
"locationCode": "BIN-15-08",
"batchNumber": "PASTE-LOT-0724A",
"assistQuantity": 75,
"comment": "过期化学品(有效期至2024-07-25)"
}
]
}
}curl --location --request POST 'https://c2.xinheyun.com/api/open/v3/inventory/task/scrap/confirm' \
--header 'Cookie;' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"workOrderCode": "WO-20240720-X1-001",
"code": "SCRAP-20240728-001",
"comments": "华为P70主板客户退货报废 | 缺陷代码:PCB-DEF-0728-05",
"records": [
{
"itemCode": "SMARTPHONE-X1-PLUS",
"quantity": 2,
"warehouseCode": "WH-SCRAP",
"locationCode": "BIN-09-03",
"batchNumber": "BATCH-MB-20240728",
"snInfos": [
{
"sn": "SN-MB-0728-0456",
"assistQuantity": 1
},
{
"sn": "SN-MB-0728-0457",
"assistQuantity": 1
}
]
},
{
"itemCode": "IC-CHIP-5NM",
"quantity": 2,
"warehouseCode": "WH-SCRAP-ELECTRONIC",
"locationCode": "BIN-11-02",
"batchNumber": "BATCH-20240724-5NM",
"snInfos": [
{
"sn": "SN-CHIP-0724-0217",
"assistQuantity": 1
},
{
"sn": "SN-CHIP-0724-0218",
"assistQuantity": 1
}
]
},
{
"itemCode": "SOLDER-PASTE",
"quantity": 3,
"warehouseCode": "WH-SCRAP-CHEM",
"locationCode": "BIN-15-08",
"batchNumber": "PASTE-LOT-0724A",
"assistQuantity": 75,
"comment": "过期化学品(有效期至2024-07-25)"
}
]
}
}'{
"code": 0,
"message": ""
}