跳到主要内容

GET 变更单详情

GET 查询。query 参数见接口参考。

接口编码所需范围后端接口
project.drawing.changes.detailproject:readGET /v1/drawing/changes/detail(comap-project)

请求参数(query)

字段类型必填说明
idinteger(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 字段

字段类型必填说明
idstring—ID
changeNostring—变更单号
drawingIdstring—图纸ID
drawingNostring—图纸编号
drawingNamestring—图纸名称
oldVersionNostring—旧版本编号
newVersionNostring—新版本编号
changeTypeCodestring—变更类型编码
changeTypeNamestring——
changeLevelstring—变更等级(取值来源:CHANGE_LEVEL 配置字典)
changeLevelNamestring——
statusstring—变更状态:DRAFT=草稿, PENDING=审批中, APPROVED=审批通过, REJECTED=审批驳回, EXECUTING=执行中, COMPLETED=已完成, CLOSED=已关闭, OBSOLETE=已作废
isUrgentinteger(int32)—是否紧急
applicantIdstring—申请人ID
applicantNamestring—申请人名称
applicantDeptNamestring—申请部门名称
applyTimestring(date-time)—申请时间
approverIdstring—审批人ID
approverNamestring—审批人姓名
approveTimestring(date-time)—审批时间
completeTimestring(date-time)—完成时间
closeTimestring(date-time)—关闭时间
flowInstanceCodestring—流程实例编码
problemDescriptionstring—问题描述
changeReasonstring—changeReason
backgroundstring—background
involvesCustomerinteger(int32)—involvesCustomer
involvesQualityinteger(int32)—involvesQuality
involvesCostReductioninteger(int32)—involvesCostReduction
involvesProcessOptinteger(int32)—involvesProcessOpt
affectsFunctioninteger(int32)—affectsFunction
affectsInterchangeabilityinteger(int32)—affectsInterchangeability
affectsInventoryinteger(int32)—affectsInventory
affectsInTransitinteger(int32)—affectsInTransit
affectsBominteger(int32)—affectsBom
affectsDeliveredinteger(int32)—affectsDelivered
affectsSpareinteger(int32)—affectsSpare
affectsInProductioninteger(int32)—affectsInProduction
affectsPurchaseinteger(int32)—affectsPurchase
needSwitchSupplierinteger(int32)—needSwitchSupplier
handlingSuggestionstring—handlingSuggestion
purchaseHandlingSuggestionstring—purchaseHandlingSuggestion
bomHandlingSuggestionstring—bomHandlingSuggestion
inventoryHandlingSuggestionstring—inventoryHandlingSuggestion
projectHandlingSuggestionstring—projectHandlingSuggestion
effectSuggestionstring—effectSuggestion
closeReasonstring—closeReason
executionSummarystring—executionSummary
plannedCompleteDatestring(date-time)—计划完成日期
actualCompleteDatestring(date-time)—实际完成日期
createTimestring(date-time)—创建时间
updateTimestring(date-time)—更新时间
attachments9DrawingChangeAttachmentVO[]—变更申请上传的附件(新图纸/变更说明/对比图等)
approvals13DrawingChangeApprovalVO[]—审批列表
impacts18DrawingChangeImpactVO[]—影响列表
executions9DrawingChangeExecutionVO[]—执行列表
logs8DrawingChangeLogVO[]—操作日志列表

错误处理​

响应统一信封 { code, message, data },code == 200 为成功。以下是本接口可能返回的开放平台层错误:

错误码说明可重试
92101访问凭证无效否
92201接口未登记或已停用否
92202超出凭证授权范围——本接口需 project:read否
92204绑定员工无此接口的功能权限否
92203上游服务调用失败是
92301请求过于频繁是

除此之外,comap-project 自身的业务校验失败会原样透传其业务码与提示 (如字段校验、状态不允许、数据不存在),这类码不在开放平台的号段内, 以响应里的 message 为准。完整的平台层错误码见错误码说明。

← 返回图纸变更管理