查询审批单详情
查询审批单的详情
请求说明
| 请求地址 | 配置域名+/o/woa/api/v2/workflow/developer/approvals/ |
|---|---|
| 请求方法 | GET |
| 签名方式 | wps-4 |
| 支持应用类型 | 企业自建应用、第三方企业应用 |
| 权限要求 | 查询审批单信息(kso.workflow.approval.read) |
请求头
| Header名称 | 是否必填 | 说明 |
|---|---|---|
| Content-Type | 是 | 目前固定为:"application/json" |
| Wps-Docs-Date | 是 | 取当前时间, 示例: Wed, 23 Jan 2013 06:43:08 GMT |
| Wps-Docs-Authorization | 是 | 计算方法参考签名说明 |
| Authorization | 是 | access_token(企业授权获取的token) |
请求地址示例
http
[GET] 配置域名+/o/woa/api/v2/workflow/developer/approvals/{approval_id}?operator=查询参数(Path)
| 名称 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| approval_code | string | 是 | 审批单code |
查询参数(Query)
| 名称 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| operator | int | 是 | 操作人(wpsUid) |
请求体(Body)
无
请求体示例
无
响应体
| 名称 | 类型 | 说明 |
|---|---|---|
| template_code | string | 模板混淆id |
| name | string | 审批单名称 |
| current_approver | []long | 当前审批人id |
| content | []object | 审批单内容 |
| ∟ type | int | 控件类型,枚举如下:(1. 单行文本2. 多行文本3. 文件文本4. 富文本5. 日期6. 单选7. info信息8. 联系人9. 多选10. 数字11. 金额12.图片组件) |
| ∟ title | string | 控件标题 |
| ∟ text | string | 控件内容 |
| ∟ not_print | bool | 是否参与打印(true:是,false:否) |
| attachments | []object | 附件列表 |
| ∟ fileid | string | 云文档文件id |
| ∟ name | string | 附件名称 |
| ∟ type | int | 附件类型,1-审批内容附件,2-评论附件,3-审批内容图片,4-评论区图片附件 |
| ∟ store_type | int | 存储类型,1-云存储,2-云文档 |
| ∟ store_key | string | 云存储key |
| ∟ store | string | 存储端的名称,例如ks3 |
| ∟ thumb_store_key | string | 存储key |
| flow_data | []object | 多条件节点 |
| ∟ id | int | 模板流程设置的数据流,包含节点配置信息 |
| ∟ node_type | int | 流程节点类型 1:审批 2:抄送 |
| ∟ title | string | 流程节点名称 |
| ∟ select_type | int | 用户个数类型 1:单选 2:多选 |
| ∟ user_type | int | 用户类型 0:指定成员 1:发起人自选,3:上级,4:连续多级上级,5:部门负责人,6:连续多级部门负责人 |
| ∟ all_user_dismiss | int | 所有审批用户离职采取操作 1:转交模板管理员 2:自动审批通过 |
| ∟ rule | int | 审批规则:0 逐级审批 1 会签 2 或签 |
| ∟ add_more_copyers | int | 允许继续添加抄送人(抄送节点user_type=0时有效。 1为允许添加,0不允许) |
| ∟ source | int | 节点来源(区分是否来自于加签,0正常流程创建,1加签) |
| ∟ approvers | []long | 审批用户成员 |
| ∟ copyers | []long | 抄送人id数组 |
响应体示例
json
{
"approval_code": "xxxx",
"approval_order": 202208290000,
"content": [
{
"body": "",
"date": "",
"dateplace": "",
"extra": "{\"not_print\":false}",
"id": 0,
"not_print": false,
"options": null,
"placeholder": "",
"required": false,
"select_value": "",
"step": "",
"time": "",
"timeplace": "",
"title": "单行文本",
"type": 1
}
],
"corpid": "aplzzl6xxx",
"ctime": 1661744827,
"current_user_ids": ["exxpP7Q4d1Qxxx"],
"cuser": {
"account": "",
"avatar": "https://xxx",
"departments": [
{
"abs_path": "金山软件/146环境-名字",
"ctime": 1655083947,
"id": "exvKbzPxM5Axxx",
"id_path": "584210946286xxxx",
"name": "146环境-名字搞长一点",
"parent_id": "exxpP7mzBlxxxxx"
}
],
"desc": "",
"email": "xxx@wps.cn",
"level": 0,
"name": "admin",
"sex": "",
"user_id": "exxpP7Q4d1Qxxxx"
},
"flow_data": [
{
"add_more_copyers": 0,
"all_user_dismiss": 1,
"approvers": null,
"copyers": null,
"id": 2,
"node_type": 1,
"rule": 0,
"select_type": 1,
"source": 0,
"title": "审批",
"user_type": 1
}
],
"group_chat_id": 0,
"id": "xyz",
"name": "admin的开放test2",
"operator_logs": [
{
"action": 1,
"comment_attachments": null,
"ctime": 1661744827,
"id": 879,
"node_title": "",
"operate_user": {
"account": "",
"avatar": "https://xxx",
"departments": [
{
"abs_path": "金山软件/146环境-名字搞长一点",
"ctime": 1655083947,
"id": "exvKbzPxM5Axxxx",
"id_path": "584210946286243xxx",
"name": "146环境-名字搞长一点",
"parent_id": "exxpP7mzBlxxxxx"
},
{
"abs_path": "金山软件/146环境-名字搞长一点0",
"ctime": 1656313917,
"id": "axnDamdPBwdxxxx",
"id_path": "584210946286243xxx",
"name": "汇报D-400",
"parent_id": "exvKbzPxM5AQxxx"
}
],
"desc": "",
"email": "xxx@wps.cn",
"level": 0,
"name": "admin",
"sex": "",
"user_id": "exxpP7Q4d1Qxxxx"
},
"operator": "exxpP7Q4d1Qxxxx",
"utime": 1661744827,
"value": ""
}
],
"result": 0,
"state": 1,
"template_id": "abc",
"utime": 1661744827,
"waiting_users": [
{
"add_more_copyers": 0,
"all_user_dismiss": 1,
"approvers": null,
"copyers": null,
"id": 2,
"node_type": 1,
"rule": 0,
"select_type": 1,
"source": 0,
"title": "审批",
"user_type": 1
}
]
}