资源介绍
资源定义
字段说明
名称展开子列表 | 类型 | 描述 |
---|---|---|
instance_code | string | 审批实例 Code |
approval_name | string | 审批名称 |
approval_code | string | 审批定义 Code |
start_time | string | 审批创建时间 |
end_time | string | 审批结束时间 |
user_id | string | 发起审批用户 |
open_id | string | 发起审批用户 open id |
serial_number | string | 审批单编号 |
department_id | string | 发起审批用户所在部门 |
status | string | 审批实例状态可选值有:PENDING :审批中APPROVED :通过REJECTED :拒绝CANCELED :撤回DELETED :删除 |
uuid | string | 用户的唯一标识id |
form | string | json字符串,控件值详情见下方 |
task_list | instance_task[] | 审批任务列表 |
comment_list | instance_comment[] | 评论列表 |
timeline | instance_timeline[] | 审批动态 |
modified_instance_code | string | 修改的原实例 code,仅在查询修改实例时显示该字段 |
reverted_instance_code | string | 撤销的原实例 code,仅在查询撤销实例时显示该字段 |
reverted | boolean | 单据是否被撤销 |
数据示例
{
"approval_name": "Payment",
"start_time": "1564590532967",
"end_time": "1564590532967",
"user_id": "f3ta757q",
"open_id": "ou_3cda9c969f737aaa05e6915dce306cb9",
"serial_number": "202102060002",
"department_id": "od-8ec33ffec336c3a39a278bc25e931676",
"status": "PENDING",
"uuid": "1234567",
"form": "[{\"id\": \"widget1\",\"custom_id\": \"user_info\",\"name\": \"Item application\",\"type\": \"textarea\"},\"value\":\"aaaa\"]",
"task_list": [
{
"id": "1234",
"user_id": "f7cb567e",
"open_id": "ou_123457",
"status": "PENDING",
"node_id": "46e6d96cfa756980907209209ec03b64",
"node_name": "开始",
"custom_node_id": "manager",
"type": "AND",
"start_time": "1564590532967",
"end_time": "0"
}
],
"comment_list": [
{
"id": "1234",
"user_id": "f7cb567e",
"open_id": "ou_123456",
"comment": "ok",
"create_time": "1564590532967"
}
],
"timeline": [
{
"type": "PASS",
"create_time": "1564590532967",
"user_id": "f7cb567e",
"open_id": "ou_123456",
"user_id_list": [
"Eeea5gefe"
],
"open_id_list": [
"ou_123456"
],
"task_id": "1234",
"comment": "ok",
"cc_user_list": [
{
"user_id": "eea5gefe",
"cc_id": "123445",
"open_id": "ou_12345"
}
],
"ext": "{\"user_id\":\"62d4a44c\",\"open_id\":\"ou_123456\"}",
"node_key": "APPROVAL_240330_4058663"
}
],
"modified_instance_code": "81D31358-93AF-92D6-7425-01A5D67C4E71",
"reverted_instance_code": "81D31358-93AF-92D6-7425-01A5D67C4E71",
"approval_code": "7C468A54-8745-2245-9675-08B7C63E7A85",
"reverted": false
}
表单说明
审批动态说明
用户ID说明
部门ID说明
修改于