GET 生产质检列表指标
参数位置:此接口无需 query 或 body 参数。 GET 查询,无参数。返回待检验数、检验中数、我领取的数、卡着数量的单数和数量、今天判定数、今天判不合格数、今天判出让步数;按车间数据权限统计。
| 接口编码 | 所需范围 | 后端接口 |
|---|---|---|
production.qc-order.stats | production:read | GET /v1/production-inspection/stats(comap-srm) |
员工权限:本接口按权限码 production:inspections:list 对照绑定员工的主站功能权限。
请求示例
curl -X POST https://open.risemap.cn/v1/api/invoke \
-H "Authorization: Bearer <访问令牌>" \
-H "Content-Type: application/json" \
-d '{
"apiCode": "production.qc-order.stats"
}'
响应 data 字段
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
pendingCount | integer(int64) | — | 待检验 |
inspectingCount | integer(int64) | — | 检验中 |
mineCount | integer(int64) | — | 我领取了、还没判的 |
holdCount | integer(int64) | — | 卡着数量还没判的单 |
holdQty | number | — | 卡着的件数 |
judgedTodayCount | integer(int64) | — | 今天判定的 |
failedTodayCount | integer(int64) | — | 今天判不合格的(列表「判定不合格」指标,续-56) |
concessionTodayCount | integer(int64) | — | 今天判出让步的单(006 Q5:判定有让步数的;这些单的结论是不合格,已算在「判定不合格」里,提示里另写) |
错误处理
响应统一信封 { code, message, data },code == 200 为成功。以下是本接口可能返回的开放平台层错误:
| 错误码 | 说明 | 可重试 |
|---|---|---|
| 92101 | 访问凭证无效 | 否 |
| 92201 | 接口未登记或已停用 | 否 |
| 92202 | 超出凭证授权范围——本接口需 production:read | 否 |
| 92204 | 绑定员工无此接口的功能权限 | 否 |
| 92203 | 上游服务调用失败 | 是 |
| 92301 | 请求过于频繁 | 是 |
除此之外,comap-srm 自身的业务校验失败会原样透传其业务码与提示
(如字段校验、状态不允许、数据不存在),这类码不在开放平台的号段内,
以响应里的 message 为准。完整的平台层错误码见错误码说明。
← 返回qc-order