审批流查询
- 接口:/common/customize/workflow/list
- Method:GET
- 数据格式:JSON
- 接口说明:
- 该接口用于查询指定单据的审批流信息
- 返回单据的完整审批路径和审批节点信息
参数
请求参数
| 字段名称 |
字段类型 |
字段描述 |
默认值 |
是否必填 |
长度限制 |
| document_num |
String |
单据号 |
|
TRUE |
64 |
返回参数
响应信息
| 字段名称 |
字段类型 |
字段描述 |
| resCode |
String |
响应状态码 |
| resMsg |
String |
返回信息描述 |
| data |
Array |
审批流信息列表 |
审批流信息
以下字段在 data 路径下返回
| 字段名称 |
字段类型 |
字段描述 |
| path_id |
Integer |
审批路径ID |
| company_id |
Integer |
公司ID |
| workflow_id |
Integer |
审批流ID |
| workflow_type |
String |
审批流类型 |
| source_id |
Integer |
来源ID |
| sequence_num |
Integer |
序号 |
| parent_id |
Integer |
父节点ID |
| status |
String |
审批状态 |
| type |
String |
审批类型 |
| function |
String |
功能 |
| created_by |
Integer |
创建人ID |
| reason |
String |
原因 |
| value |
Integer |
值 |
| workflow_step |
String |
审批步骤 |
| header_column |
String |
表头列 |
| line_column |
String |
行列 |
| timeout_rule_id |
Integer |
超时规则ID |
| position_id |
Integer |
岗位ID |
| user_id |
Integer |
用户ID |
| agent_id |
Integer |
代理人ID |
| question |
String |
问题 |
| note |
String |
备注 |
| open_date |
Long |
审批开始时间(时间戳) |
| end_date |
Long |
审批结束时间(时间戳) |
| last_update_date |
Long |
最后更新时间(时间戳) |
| my_version |
Integer |
版本号 |
| detail |
String |
详情 |
| fin_reject_reason |
String |
财务驳回原因 |
示例
请求示例
GET /common/customize/workflow/list?document_num=EXP0000012345
返回示例
{
"resCode": 200000,
"resMsg": "success",
"data": [
{
"path_id": 80001,
"company_id": 1,
"workflow_id": 5001,
"workflow_type": "approve",
"source_id": 123456,
"sequence_num": 1,
"parent_id": null,
"status": "approved",
"type": "submit",
"function": "approve",
"created_by": 10001,
"reason": null,
"value": null,
"workflow_step": "部门经理审批",
"header_column": null,
"line_column": null,
"timeout_rule_id": null,
"position_id": 100,
"user_id": 10002,
"agent_id": null,
"question": null,
"note": "同意",
"open_date": 1672588800000,
"end_date": 1672675200000,
"last_update_date": 1672675200000,
"my_version": 1,
"detail": null,
"fin_reject_reason": null
},
{
"path_id": 80002,
"company_id": 1,
"workflow_id": 5001,
"workflow_type": "approve",
"source_id": 123456,
"sequence_num": 2,
"parent_id": 80001,
"status": "approved",
"type": "approve",
"function": "approve",
"created_by": 10002,
"reason": null,
"value": null,
"workflow_step": "财务审批",
"header_column": null,
"line_column": null,
"timeout_rule_id": null,
"position_id": 101,
"user_id": 10003,
"agent_id": null,
"question": null,
"note": "同意",
"open_date": 1672675200000,
"end_date": 1672761600000,
"last_update_date": 1672761600000,
"my_version": 1,
"detail": null,
"fin_reject_reason": null
}
]
}