GET 处置执行单详情
参数位置:query:id。 GET 查询。query 参数:id(执行单ID,必填)。
| 接口编码 | 所需范围 | 后端接口 |
|---|---|---|
quality.ncr.execution.detail | quality:read | GET /v1/ncr/execution/detail(comap-srm) |
员工权限:本接口按权限码 inventory:ncr:execution:list 对照绑定员工的主站功能权限。
请求参数(query)
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | integer(int64) | 是 | — |
「必填」仅反映接口规格声明的部分。服务内还有未体现在规格里的校验, 标「—」不等于可以不传;租户在主站配置的字段必填不约束本接口。 详见必填字段的判定与字段清单与自定义字段。
请求示例
curl -X POST https://open.risemap.cn/v1/api/invoke \
-H "Authorization: Bearer <访问令牌>" \
-H "Content-Type: application/json" \
-d '{
"apiCode": "quality.ncr.execution.detail",
"query": {
"id": "1961000000000000001"
}
}'
响应 data 字段
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | integer(int64) | — | — |
no | string | — | — |
ncrId | integer(int64) | — | — |
ncrNo | string | — | — |
dispositionId | integer(int64) | — | — |
action | string | — | — |
actionName | string | — | — |
returnSubtype | string | — | — |
returnSubtypeName | string | — | — |
sourceType | string | — | — |
sourceTypeName | string | — | — |
sourceNo | string | — | — |
productId | integer(int64) | — | — |
skuId | integer(int64) | — | — |
productName | string | — | — |
productNo | string | — | — |
productUnit | string | — | — |
storeId | integer(int64) | — | — |
storeName | string | — | — |
locationId | integer(int64) | — | — |
locationName | string | — | — |
traceRefs | string[] | — | — |
responsibleParty | string | — | — |
targetQty | number | — | — |
completedQty | number | — | — |
remainingQty | number | — | — |
exceptionQty | number | — | — |
approvalStatus | string | — | 审批状态(本期恒 NOT_REQUIRED) |
approvalStatusName | string | — | — |
executionStatus | string | — | — |
executionStatusName | string | — | — |
currentStep | integer(int32) | — | — |
steps4 | NcrExecutionStepVO[] | — | — |
nextActionLabel | string | — | 下一步动作按钮文案;已完成或报废为 null |
statusMessage | string | — | — |
completionOutcome | string | — | SUCCESS / FAILED |
relatedDocuments8 | NcrRelatedDocument[] | — | — |
shipmentRecords15 | NcrExecutionShipmentVO[] | — | 退回执行单的分批发货记录 |
operationLogs6 | NcrOperationLogVO[] | — | 操作日志(详情) |
createTime | string | — | — |
updateTime | string | — | — |
错误处理
响应统一信封 { code, message, data },code == 200 为成功。以下是本接口可能返回的开放平台层错误:
| 错误码 | 说明 | 可重试 |
|---|---|---|
| 92101 | 访问凭证无效 | 否 |
| 92201 | 接口未登记或已停用 | 否 |
| 92202 | 超出凭证授权范围——本接口需 quality:read | 否 |
| 92204 | 绑定员工无此接口的功能权限 | 否 |
| 92203 | 上游服务调用失败 | 是 |
| 92301 | 请求过于频繁 | 是 |
除此之外,comap-srm 自身的业务校验失败会原样透传其业务码与提示
(如字段校验、状态不允许、数据不存在),这类码不在开放平台的号段内,
以响应里的 message 为准。完整的平台层错误码见错误码说明。
← 返回不合格处理