查询备料任务
POST
/api/open/v3/inventory/task/materialOut/query
请求参数
Body 参数application/json
body
object (MaterialPrepareQueryV3Params)
必需
conditions
object (MaterialPrepareConditionsV3Param)
筛选条件
paging
object (PagingParams)
分页参数
示例
{
"body": {
"conditions": {
"workOrderCode": {
"conditionType": "KEYWORD",
"value": "WO-202410-8801"
}
}
},
"paging": {
"start": 0,
"length": 1
}
}
示例代码
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/materialOut/query' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"conditions": {
"workOrderCode": {
"conditionType": "KEYWORD",
"value": "WO-202410-8801"
}
}
},
"paging": {
"start": 0,
"length": 1
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
可选
message
string
可选
data
object (ListPagingResponseDataMaterialRequirementInventoryTask)
可选
list
array[object (MaterialRequirementInventoryTask) {11}]
可选
start
integer
可选
length
integer
可选
recordsTotal
integer
可选
示例
{
"code": 0,
"message": "",
"data": {
"list": [
{
"code": "",
"applyOrderCode": "",
"staffCode": "",
"planTime": 0,
"createTime": 0,
"workOrderCode": "",
"workOrderItemCode": "",
"workShopWarehouseCode": "",
"workOrderProcedureCode": "",
"workOrderProcedureName": "",
"records": [
{
"id": 0,
"code": "",
"itemCode": "",
"itemName": "",
"itemUnit": "",
"itemType": "",
"itemCustomizeFields": [
{
"name": "",
"value": ""
}
],
"defaultWarehouseCode": "",
"defaultLocationCode": "",
"batchNumber": "",
"quantity": 0.0,
"confirmedQuantity": 0.0,
"taskType": 0,
"executionOrderNumber": "",
"workshop": {
"code": "",
"name": "",
"comment": "",
"status": "",
"managers": [
{
"name": "",
"code": ""
}
],
"workCenters": [
{
"code": "",
"name": "",
"procedures": [
{
"code": null,
"name": null
}
]
}
]
}
}
]
}
],
"start": 0,
"length": 0,
"recordsTotal": 0
}
}