在生产入库后调用领料的接口报错
入库接口:
请求参数:{“id”:“37183387”,“records”:[{“quantity”:“1”,“warehouseCode”:“通用仓库”,“locationCode”:“”,“snCode”:“U725HD107319__20250917_1402_A020_1 +0.00_2 +0.00_3 +0.00_4 +0.00_5 +0.00_6 +0.00_7 +0.00_8 +0.00_9 +0.00 10 +0.00_ 11 +0.00_ 12 +0.00_ 13 +0.00_ 14 +0.00_ 15 +0.00”}]}
接口:/api/open/v4/inventory/task/productionIn/confirm
领料接口信息:
错误提示:{“code”:403,“message”:“物料任务确认失败:2160300000012库存数不足或被占用,无法操作[BaseResultMsgDTO(uniqueKey=7319383396483944448-0, errorMsg=2160300000012库存数不足或被占用,无法操作, errorCode=0, extendErrorInfo=null)]”}
请求参数:{“body”:{“type”:1,“records”:[{“batchNumber”:“250917096”,“itemCode”:“2160300000012”,“quantity”:1,“snNumber”:“U725HD107319__20250917_1402_A020_1 +0.00_2 +0.00_3 +0.00_4 +0.00_5 +0.00_6 +0.00_7 +0.00_8 +0.00_9 +0.00 10 +0.00_ 11 +0.00_ 12 +0.00_ 13 +0.00_ 14 +0.00_ 15 +0.00”,“warehouseCode”:“通用仓库”,“workOrderCode”:“MOLC06250912010”}]}}
接口:api/open/v2/inventory/task/materialTask/confirm/v2