获取单据流程预演

用于外部系统对接每刻单据的流程预演,获取单据的流程预演数据。

请求方式

GET

请求地址

/api/openapi/process/logs/view/{formType}/{formCode}

请求参数

参数说明

参数名 类型 是否必须 参数说明
formCode String 是 单据code(非内码)
formType String 是 单据类型 REIMBURSE,PRECONSUME,LOAN,CONTRACT,REPAYMENT,INSTALLMENT

参数示例

/api/openapi/process/logs/view/REIMBURSE/MK24030139

响应参数

参数说明

响应参数说明

字段名称 字段类型 是否必填 字段说明
operatorName String[ ] 是 节点候选人名称
operatorEmployeeIds String[ ] 是 节点候选人工号
operationText String(100) 是 操作记录展示信息
optReason String(200) 是 审批理由或者评论
nextOperatorName String[] 是 转交人名称,表示转交给谁
nextOperatorEmployeeIds String[] 是 转交人工号
delegater String(100) 是 授权其他人审批的人
delegaterEmployeeId String(100) 是 授权人工号
processNodeSubType String(20) 是 节点候选人名称
processNodeSubTypeCode String(10) 是 节点类型编码
optTime Long 是 操作时间
lastOperatorEmployeeId String(100) 是 最近一个已完成任务的操作人工号
taskName String(100) 是 节点名
taskCategory String(100) 是 节点类型
attachments AttachInput 是 附件列表
filename String(100) 是 文件名
type String(20) 是 文件类型
downloadUrl String(200) 是 下载链接
status String(20) 是 任务状态(history历史日志 pending待处理日志 predict预演日志)

示例:

{
  "code": "ACK",
  "message": null,
  "data": {
    "lastOperatorEmployeeId": "XXX",
    "openApiFormProcessLogs": [
      {
        "operatorName": [
          "XXX"
        ],
        "operatorEmployeeIds": [
          "XXX"
        ],
        "nextOperatorName": null,
        "operationText": "[XXX]提交单据",
        "optReason": "",
        "delegater": "",
        "delegaterCode": "",
        "delegaterEmployeeId": "",
        "nextOperatorEmployeeIds": null,
        "processNodeSubType": "其他节点",
        "processNodeSubTypeCode": "OTHER",
        "taskName": "发起审批",
        "taskCategory": null,
        "optTime": 1706164984140,
        "state": "history",
        "attachments": null
      },
      {
        "operatorName": [
          "XXX"
        ],
        "operatorEmployeeIds": [
          "XXX"
        ],
        "nextOperatorName": null,
        "operationText": "[XXX]添加评论",
        "optReason": "这个是附件",
        "delegater": "",
        "delegaterCode": "",
        "delegaterEmployeeId": "",
        "nextOperatorEmployeeIds": null,
        "processNodeSubType": "其他节点",
        "processNodeSubTypeCode": "OTHER",
        "taskName": "",
        "taskCategory": null,
        "optTime": 1711697152702,
        "state": "history",
        "attachments": [
          {
            "filename": "文字文稿2.docx",
            "type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
            "downloadUrl": "https://xxx.doc",
            "handSign": false
          }
        ]
      },
      {
        "operatorName": [
          "XXX"
        ],
        "operatorEmployeeIds": [
          "XXX"
        ],
        "nextOperatorName": null,
        "operationText": "待[XXX]或签 (审批中) ",
        "optReason": "",
        "delegater": "",
        "delegaterCode": "",
        "delegaterEmployeeId": "",
        "nextOperatorEmployeeIds": null,
        "processNodeSubType": "审批节点",
        "processNodeSubTypeCode": "APPROVAL",
        "taskName": "领导审批",
        "taskCategory": "APPROVAL",
        "optTime": null,
        "state": "pending",
        "attachments": null
      }
    ]
  },
  "errorCode": null,
  "success": true
}

修改记录

2026-02-26 nextOperatorName、nextOperatorEmployeeIds格式调整,从字符串改成数组
Copyright © 杭州每刻科技有限公司 www.maycur.com all right reserved,powered by Gitbook该文件修订时间: 2026-09-23 10:19:53

results matching ""

    No results matching ""

    results matching ""

      No results matching ""