获取单据流程预演

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

请求方式

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(100) 转交人名称,表示转交给谁
nextOperatorEmployeeIds String(100) 转交人工号
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
}
Copyright © 杭州每刻科技有限公司 www.maycur.com all right reserved,powered by Gitbook该文件修订时间: 2024-11-20 10:52:00

results matching ""

    No results matching ""

    results matching ""

      No results matching ""