GET 变更单详情
GET 查询。query 参数见接口参考。
| 接口编码 | 所需范围 | 后端接口 |
|---|---|---|
project.drawing.changes.detail | project:read | GET /v1/drawing/changes/detail(comap-project) |
请求参数(query)
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | integer(int64) | 是 | — |
「必填」仅反映接口规格声明的部分。服务内还有未体现在规格里的校验, 标「—」不等于可以不传;租户在主站配置的字段必填不约束本接口。 详见必填字段的判定与字段清单与自定义字段。
请求示例
curl -X POST https://open.risemap.cn/v1/api/invoke \
-H "Authorization: Bearer <访问令牌>" \
-H "Content-Type: application/json" \
-d '{
"apiCode": "project.drawing.changes.detail",
"query": {
"id": "1961000000000000001"
}
}'
响应 data 字段
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | string | — | ID |
changeNo | string | — | 变更单号 |
drawingId | string | — | 图纸ID |
drawingNo | string | — | 图纸编号 |
drawingName | string | — | 图纸名称 |
oldVersionNo | string | — | 旧版本编号 |
newVersionNo | string | — | 新版本编号 |
changeTypeCode | string | — | 变更类型编码 |
changeTypeName | string | — | — |
changeLevel | string | — | 变更等级(取值来源:CHANGE_LEVEL 配置字典) |
changeLevelName | string | — | — |
status | string | — | 变更状态:DRAFT=草稿, PENDING=审批中, APPROVED=审批通过, REJECTED=审批驳回, EXECUTING=执行中, COMPLETED=已完成, CLOSED=已关闭, OBSOLETE=已作废 |
isUrgent | integer(int32) | — | 是否紧急 |
applicantId | string | — | 申请人ID |
applicantName | string | — | 申请人名称 |
applicantDeptName | string | — | 申请部门名称 |
applyTime | string(date-time) | — | 申请时间 |
approverId | string | — | 审批人ID |
approverName | string | — | 审批人姓名 |
approveTime | string(date-time) | — | 审批时间 |
completeTime | string(date-time) | — | 完成时间 |
closeTime | string(date-time) | — | 关闭时间 |
flowInstanceCode | string | — | 流程实例编码 |
problemDescription | string | — | 问题描述 |
changeReason | string | — | changeReason |
background | string | — | background |
involvesCustomer | integer(int32) | — | involvesCustomer |
involvesQuality | integer(int32) | — | involvesQuality |
involvesCostReduction | integer(int32) | — | involvesCostReduction |
involvesProcessOpt | integer(int32) | — | involvesProcessOpt |
affectsFunction | integer(int32) | — | affectsFunction |
affectsInterchangeability | integer(int32) | — | affectsInterchangeability |
affectsInventory | integer(int32) | — | affectsInventory |
affectsInTransit | integer(int32) | — | affectsInTransit |
affectsBom | integer(int32) | — | affectsBom |
affectsDelivered | integer(int32) | — | affectsDelivered |
affectsSpare | integer(int32) | — | affectsSpare |
affectsInProduction | integer(int32) | — | affectsInProduction |
affectsPurchase | integer(int32) | — | affectsPurchase |
needSwitchSupplier | integer(int32) | — | needSwitchSupplier |
handlingSuggestion | string | — | handlingSuggestion |
purchaseHandlingSuggestion | string | — | purchaseHandlingSuggestion |
bomHandlingSuggestion | string | — | bomHandlingSuggestion |
inventoryHandlingSuggestion | string | — | inventoryHandlingSuggestion |
projectHandlingSuggestion | string | — | projectHandlingSuggestion |
effectSuggestion | string | — | effectSuggestion |
closeReason | string | — | closeReason |
executionSummary | string | — | executionSummary |
plannedCompleteDate | string(date-time) | — | 计划完成日期 |
actualCompleteDate | string(date-time) | — | 实际完成日期 |
createTime | string(date-time) | — | 创建时间 |
updateTime | string(date-time) | — | 更新时间 |
attachments9 | DrawingChangeAttachmentVO[] | — | 变更申请上传的附件(新图纸/变更说明/对比图等) |
approvals13 | DrawingChangeApprovalVO[] | — | 审批列表 |
impacts18 | DrawingChangeImpactVO[] | — | 影响列表 |
executions9 | DrawingChangeExecutionVO[] | — | 执行列表 |
logs8 | DrawingChangeLogVO[] | — | 操作日志列表 |
错误处理
响应统一信封 { code, message, data },code == 200 为成功。以下是本接口可能返回的开放平台层错误:
| 错误码 | 说明 | 可重试 |
|---|---|---|
| 92101 | 访问凭证无效 | 否 |
| 92201 | 接口未登记或已停用 | 否 |
| 92202 | 超出凭证授权范围——本接口需 project:read | 否 |
| 92204 | 绑定员工无此接口的功能权限 | 否 |
| 92203 | 上游服务调用失败 | 是 |
| 92301 | 请求过于频繁 | 是 |
除此之外,comap-project 自身的业务校验失败会原样透传其业务码与提示
(如字段校验、状态不允许、数据不存在),这类码不在开放平台的号段内,
以响应里的 message 为准。完整的平台层错误码见错误码说明。
← 返回图纸变更管理