Skip to content

REST 开发接口

用户

获取用户信息

  • 参数说明

url: /co/user

method: get

return(json):

字段说明备注
er错误码0 表示未出错
avatar头像
id用户 ID
code登录名
name昵称
date注册时间
drop有效时间
email邮箱
phone联系电话
  • 请求示例
java
//axios请求:
 {
 	 url:"/co/user"
     method:"get"
 }

//返回数据:
{
    "avatar":"1-1708325722631.png",
    "code":"Admin",
    "date":"2029-01-01 12:00:00",
    "drop":"2100-11-16 0:00:00",
    "email":"163@qq.com",
    "er":0,
    "id":1,
    "name":"Admin",
    "phone":"18130022005"
}
//axios请求:
 {
 	 url:"/co/user"
     method:"get"
 }

//返回数据:
{
    "avatar":"1-1708325722631.png",
    "code":"Admin",
    "date":"2029-01-01 12:00:00",
    "drop":"2100-11-16 0:00:00",
    "email":"163@qq.com",
    "er":0,
    "id":1,
    "name":"Admin",
    "phone":"18130022005"
}

修改密码

  • 参数说明

url: /co/user/pswd

method: put

body(json):

字段说明类型是否必填
oldPswd旧密码String
newPswd新密码String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"/co/user/pswd"
     method:"put",
     body:{
        "oldPswd":"s+l/beC+/uE=",
        "newPswd":"+BgAkMr6NNg="
    }
 }

//返回数据:
{
    "er": 0
}
//axios请求:
 {
 	 url:"/co/user/pswd"
     method:"put",
     body:{
        "oldPswd":"s+l/beC+/uE=",
        "newPswd":"+BgAkMr6NNg="
    }
 }

//返回数据:
{
    "er": 0
}

获取头像

  • 参数说明

url: co/user/avatar

method: get

return(文件流):

  • 请求示例
java
//axios请求:
 {
 	 url:"co/user/avatar"
     method:"get"
 }

//axios请求:
 {
 	 url:"co/user/avatar"
     method:"get"
 }

设置头像

  • 参数说明

url: co/user/avatar

method: post

body(multipart/form-data):

字段说明类型是否必填
file头像文件file

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/user/avatar"
     method:"post",
     params:{
        "file":file
        }
 }

//返回数据:
{
	"er": 0,
}
//axios请求:
 {
 	 url:"co/user/avatar"
     method:"post",
     params:{
        "file":file
        }
 }

//返回数据:
{
	"er": 0,
}

重置头像

  • 参数说明

url: co/user/avatar

method: delete

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/user/avatar"
     method:"delete",
 }

//返回数据:
{
	"er": 0,
}
//axios请求:
 {
 	 url:"co/user/avatar"
     method:"delete",
 }

//返回数据:
{
	"er": 0,
}

获取用户列表

  • 参数说明

url: co/user/list

method: get

字段说明类型是否必填
search关键字String
pageSize每页条数int
page第几页int

return(json):

字段说明备注
er错误码0 表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/user/list"
     method:"get"
 }

//返回数据:
{
	"er": 0,
    "data":[]
}
//axios请求:
 {
 	 url:"co/user/list"
     method:"get"
 }

//返回数据:
{
	"er": 0,
    "data":[]
}

获取环节内的角色中的用户

  • 参数说明

url: /co/flow/tach/role/user/list

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号String
tach环节编号String
role角色 Idint
_parm类型参数:角色、部门String

return(json):

字段说明备注
er错误码0 表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"/co/flow/tach/role/user/list"
     method:"get"
     params:
        {
        "busi":0
        ,"inst":RZ20240001466
        ,"task":1
        ,"tach":1
        ,"role":""
        ,"_parm":""
        }
 }

//返回数据:
{
	"er": 0,
    "data":[]
}
//axios请求:
 {
 	 url:"/co/flow/tach/role/user/list"
     method:"get"
     params:
        {
        "busi":0
        ,"inst":RZ20240001466
        ,"task":1
        ,"tach":1
        ,"role":""
        ,"_parm":""
        }
 }

//返回数据:
{
	"er": 0,
    "data":[]
}

组织机构

获取组织机构树

  • 参数说明

url: co/orgn

method: get

字段说明类型是否必填
type类型(-1 所有部门;0 是顶级部门)int
search关键字String

return(json):

字段说明备注
er错误码0 表示未出错
data数据集
id机构 id
code编码
name名称
note备注
type
slug
  • 请求示例
java
//axios请求:
 {
 	 url:"/co/orgn"
     method:"get"
     params:
        {
        "type":-1
        ,"search":""
        }
 }

//返回数据:
{
    "data":[
        {
        "code":"",
        "id":1,
        "name":"苍穹数码技术股份有限公司",
        "note":"",
        "slug":"",
        "type":0
        }
    ],
    "er":0
}
//axios请求:
 {
 	 url:"/co/orgn"
     method:"get"
     params:
        {
        "type":-1
        ,"search":""
        }
 }

//返回数据:
{
    "data":[
        {
        "code":"",
        "id":1,
        "name":"苍穹数码技术股份有限公司",
        "note":"",
        "slug":"",
        "type":0
        }
    ],
    "er":0
}

获取组织机构人员

  • 参数说明

url: co/orgn/user

method: get

字段说明类型是否必填
orgnId组织机构 idint

return(json):

字段说明备注
er错误码0 表示未出错
data数据集
id用户 id
code登录账号
name昵称
  • 请求示例
java
//axios请求:
 {
 	 url:"/co/orgn/user"
     method:"get"
     params:
        {
        "orgId":1
        }
 }

//返回数据:
{
    "data":[
        {
        "code":"Administrator",
        "id":6,
        "name":"Administrator"
        },
        {
        "code":"xurui",
        "id":29,
        "name":"xurui"
        },
        {
        "code":"xurui2",
        "id":46,
        "name":"xurui1"
        }
    ],
    "er":0
}
//axios请求:
 {
 	 url:"/co/orgn/user"
     method:"get"
     params:
        {
        "orgId":1
        }
 }

//返回数据:
{
    "data":[
        {
        "code":"Administrator",
        "id":6,
        "name":"Administrator"
        },
        {
        "code":"xurui",
        "id":29,
        "name":"xurui"
        },
        {
        "code":"xurui2",
        "id":46,
        "name":"xurui1"
        }
    ],
    "er":0
}

角色

获取环节内的角色

  • 参数说明

url: /co/flow/tach/role/list

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
tach环节编号String

return(json):

字段说明备注
er错误码0 表示未出错
data数据集
  • 请求示例
java
//axios请求:
 {
 	 url:"/co/flow/tach/role/list"
     method:"get"
     params:
        {
        "busi":0
        ,"inst":"ZZ20230000582"
        ,"task":"1"
        ,"tach":"1"
        }
 }

//返回数据:
{
    "data":[
    ],
    "er":0
}
//axios请求:
 {
 	 url:"/co/flow/tach/role/list"
     method:"get"
     params:
        {
        "busi":0
        ,"inst":"ZZ20230000582"
        ,"task":"1"
        ,"tach":"1"
        }
 }

//返回数据:
{
    "data":[
    ],
    "er":0
}

常用词

获取常用词

  • 参数说明

url: /co/sys/common-words

method: get

字段说明类型是否必填
busi业务编号int

return(json):

字段说明备注
er错误码0 表示未出错
data数据集
id常用词 Id
word常用词内容
children常用词子级
  • 请求示例
java
//axios请求:
 {
 	 url:"/co/sys/common-words"
     method:"get"
     params:
        {
        "busi":0
        }
 }

//返回数据:
{
    "data":[
        {
        "children":[
        ],
        "id":6,
        "word":"同意!"
        }
    ],
    "er":0
}
//axios请求:
 {
 	 url:"/co/sys/common-words"
     method:"get"
     params:
        {
        "busi":0
        }
 }

//返回数据:
{
    "data":[
        {
        "children":[
        ],
        "id":6,
        "word":"同意!"
        }
    ],
    "er":0
}

增加常用词

  • 参数说明

url: /co/sys/common-words

method: post

字段说明类型是否必填
busi业务编号int

body:

字段说明类型是否必填
folderId文件目录 idString
word常用词String

return(json):

字段说明备注
er错误码0 表示未出错
id常用词 Id
  • 请求示例
java
//axios请求:
 {
 	 url:"/co/sys/common-words"
     method:"post"
     params:
        {
        "busi":0
        }
    body:{
        "word":"同意"
    }
 }

//返回数据:
{
    "er":0,
    "id":84
}
//axios请求:
 {
 	 url:"/co/sys/common-words"
     method:"post"
     params:
        {
        "busi":0
        }
    body:{
        "word":"同意"
    }
 }

//返回数据:
{
    "er":0,
    "id":84
}

修改常用词

  • 参数说明

url: /co/sys/common-words

method: put

字段说明类型是否必填
busi业务编号int

body:

字段说明类型是否必填
id常用词 idint
word常用词String

return(json):

字段说明备注
er错误码0 表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"/co/sys/common-words"
     method:"put"
     params:
        {
        "busi":0
        }
    body:{
        "id":"84",
        "word":"同意"
    }
 }

//返回数据:
{
    "er":0
}
//axios请求:
 {
 	 url:"/co/sys/common-words"
     method:"put"
     params:
        {
        "busi":0
        }
    body:{
        "id":"84",
        "word":"同意"
    }
 }

//返回数据:
{
    "er":0
}

删除常用词

  • 参数说明

url: /co/sys/common-words

method: delete

字段说明类型是否必填
busi业务编号int
id常用词 Idint

return(json):

字段说明备注
er错误码0 表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"/co/sys/common-words"
     method:"delete"
     params:
        {
        "busi":0
        ,"id":84
        }
 }

//返回数据:
{
    "er":0
}
//axios请求:
 {
 	 url:"/co/sys/common-words"
     method:"delete"
     params:
        {
        "busi":0
        ,"id":84
        }
 }

//返回数据:
{
    "er":0
}

移动常用词

  • 参数说明

url: /co/sys/common-words/move

method: put

字段说明类型是否必填
busi业务编号int

body:

字段说明类型是否必填
id常用词 idint
prevId前一个常用词 Idint

return(json):

字段说明备注
er错误码0 表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"/co/sys/common-words/move"
     method:"put"
     params:
        {
        "busi":0
        }
    body:{
        "id":"84",
        "prevId":"83"
    }
 }

//返回数据:
{
    "er":0
}
//axios请求:
 {
 	 url:"/co/sys/common-words/move"
     method:"put"
     params:
        {
        "busi":0
        }
    body:{
        "id":"84",
        "prevId":"83"
    }
 }

//返回数据:
{
    "er":0
}

附件

获取附件列表

  • 参数说明

url: co/affix/list

method: get

字段说明类型是否必填
busi业务编号int
parentId上一级 IDString
keyWord关键字String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
images附件/目录信息
idid
name名称
skey附件多目录前缀
time创建时间
type类型
url地址
user创建人
  • 请求示例
java
//axios请求:
 {
 	 url:"co/affix/list"
     method:"get",
     params:{
            "parentId":BBFD43C4174DEA4F978FE4E0D11AEBE576
            ,"busi":0
            ,"keyWord":''
            }
 }

//返回数据:
{
	"er": 0,
	"images":[
        {
        "id":"018F405BED984D10901F5088F380D8D7",
        "name":"南京.txt",
        "skey":"bb",
        "time":"2023-07-27 15:25:31",
        "type":"TXTFILE",
        "url":"2023/07/27/0000/4ED0DCD2BF3D401588A1CFB8553D506B.txt",
        "user":"Admin"
        },
        {
        "id":"413581656D414D1DB63CAF1B2A366967",
        "name":"5106.log",
        "skey":"bb",
        "time":"2023-07-27 15:26:35",
        "type":"LOGFILE",
        "url":"2023/07/27/0000/200E9F4B9289461DBFC9960CD70C9668.log",
        "user":"Admin"
        }
    ]
//axios请求:
 {
 	 url:"co/affix/list"
     method:"get",
     params:{
            "parentId":BBFD43C4174DEA4F978FE4E0D11AEBE576
            ,"busi":0
            ,"keyWord":''
            }
 }

//返回数据:
{
	"er": 0,
	"images":[
        {
        "id":"018F405BED984D10901F5088F380D8D7",
        "name":"南京.txt",
        "skey":"bb",
        "time":"2023-07-27 15:25:31",
        "type":"TXTFILE",
        "url":"2023/07/27/0000/4ED0DCD2BF3D401588A1CFB8553D506B.txt",
        "user":"Admin"
        },
        {
        "id":"413581656D414D1DB63CAF1B2A366967",
        "name":"5106.log",
        "skey":"bb",
        "time":"2023-07-27 15:26:35",
        "type":"LOGFILE",
        "url":"2023/07/27/0000/200E9F4B9289461DBFC9960CD70C9668.log",
        "user":"Admin"
        }
    ]

附件上传

  • 参数说明

url: co/affix/file

method: post

字段说明类型是否必填
busi业务编号int
topId绑定控件 IDString
parentId上一级 IDString

body(multipart/form-data):

字段说明类型是否必填
files:多附件(list 集合)file

return:

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
id附件 id
path附件路径
  • 请求示例
java
//axios请求:
 {
 	 url:"co/affix/file"
     method:"post",
     params:{
            "topId":BBFD43C4174DEA4F978FE4E0D11AEBE576
            ,"busi":0
            ,"parentId": BBFD43C4174DEA4F978FE4E0D11AEBE576
            ,"files": files
            }
 }

//返回数据:
{
    "er":0,
    "id":"29319D0610254DB88D0E5FAE89923653",
    "path":"2024\\02\\19\\0000\\1455536AC7464AAA9A79D1EA029365E0.png"
}
//axios请求:
 {
 	 url:"co/affix/file"
     method:"post",
     params:{
            "topId":BBFD43C4174DEA4F978FE4E0D11AEBE576
            ,"busi":0
            ,"parentId": BBFD43C4174DEA4F978FE4E0D11AEBE576
            ,"files": files
            }
 }

//返回数据:
{
    "er":0,
    "id":"29319D0610254DB88D0E5FAE89923653",
    "path":"2024\\02\\19\\0000\\1455536AC7464AAA9A79D1EA029365E0.png"
}

获取附件

  • 参数说明

url: co/affix/file

method: get

字段说明类型是否必填
busi业务编号int
fileId文件 IDString
path文件路径String
isDownloadtrue:文件下载;false:文件预览boolean
originalName原文件名String

return: 文件流

  • 请求示例
java
//axios请求:
 {
 	 url:"co/affix/file"
     method:"get",
     params:{
            "busi":0
            ,"isDownload": true
            ,"fileId": 29319D0610254DB88D0E5FAE89923653
            ,"originalName": 2003.doc
            ,"path":""
            }
 }

//axios请求:
 {
 	 url:"co/affix/file"
     method:"get",
     params:{
            "busi":0
            ,"isDownload": true
            ,"fileId": 29319D0610254DB88D0E5FAE89923653
            ,"originalName": 2003.doc
            ,"path":""
            }
 }

删除附件

  • 参数说明

url: co/affix/file

method: delete

字段说明类型是否必填
busi业务编号int
fileId文件 IDString
path文件路径String

return:

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/affix/file"
     method:"delete",
     params:{
            "busi":0
            ,"fileId": 29319D0610254DB88D0E5FAE89923653
            }
 }

//返回数据:
{
    "er":0
}
//axios请求:
 {
 	 url:"co/affix/file"
     method:"delete",
     params:{
            "busi":0
            ,"fileId": 29319D0610254DB88D0E5FAE89923653
            }
 }

//返回数据:
{
    "er":0
}

新增附件目录

  • 参数说明

url: co/affix/folder

method: post

字段说明类型是否必填
busi业务编号int
parentId父类 IDString

Body

字段说明类型是否必填
name目录名称String

return:

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
id附件目录 Id
  • 请求示例
java
//axios请求:
 {
 	 url:"co/affix/folder"
     method:"post",
     params:{
            "busi":0
            ,"parentId": BBF6ED182BDB5E4207A3C00C00A4014070
            }
     body:{
            "name": "新建目录"
         }
 }

//返回数据:
{
  "er": 0,
  "id": "6BD2D00C9B1F4010AC29BC7D9997A921"
}
//axios请求:
 {
 	 url:"co/affix/folder"
     method:"post",
     params:{
            "busi":0
            ,"parentId": BBF6ED182BDB5E4207A3C00C00A4014070
            }
     body:{
            "name": "新建目录"
         }
 }

//返回数据:
{
  "er": 0,
  "id": "6BD2D00C9B1F4010AC29BC7D9997A921"
}

删除附件目录

  • 参数说明

url: co/affix/folder

method: delete

字段说明类型是否必填
busi业务编号int
folderId文件 IDString

return:

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/affix/folder"
     method:"delete",
     params:{
            "busi":0
            ,"folderId": 6BD2D00C9B1F4010AC29BC7D9997A921
            }
 }

//返回数据:
{
  "er": 0
}
//axios请求:
 {
 	 url:"co/affix/folder"
     method:"delete",
     params:{
            "busi":0
            ,"folderId": 6BD2D00C9B1F4010AC29BC7D9997A921
            }
 }

//返回数据:
{
  "er": 0
}

修改附件目录

  • 参数说明

url: co/affix/folder

method: put

字段说明类型是否必填
busi业务编号int
folderId文件目录 IDString

Body

字段说明类型是否必填
name目录名称String

return:

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/affix/folder"
     method:"put",
     params:{
            "busi":0
            ,"folderId": 84146A816116486694BD9CB2CE76E20A
            }
     body:{
            "name": "修改目录"
         }
 }

//返回数据:
{
  "er": 0
}
//axios请求:
 {
 	 url:"co/affix/folder"
     method:"put",
     params:{
            "busi":0
            ,"folderId": 84146A816116486694BD9CB2CE76E20A
            }
     body:{
            "name": "修改目录"
         }
 }

//返回数据:
{
  "er": 0
}

附件移动

  • 参数说明

url: co/affix/move

method: put

字段说明类型是否必填
id被移动编号String
prevId移动到该位置的前面的编号String
parentId移动后的父节点编号String

return:

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/affix/move"
     method:"put",
     params:{
            "id":"115A9E1F50E44E5E83521B75FCDFDFAF"
            ,"prevId": "A560D8A169F3413C8DEC30E01489006B"
            ,"parentId": "BB867B00BD060F42B496628715AAFCFF28"
            }
 }

//返回数据:
{
  "er": 0
}
//axios请求:
 {
 	 url:"co/affix/move"
     method:"put",
     params:{
            "id":"115A9E1F50E44E5E83521B75FCDFDFAF"
            ,"prevId": "A560D8A169F3413C8DEC30E01489006B"
            ,"parentId": "BB867B00BD060F42B496628715AAFCFF28"
            }
 }

//返回数据:
{
  "er": 0
}

图片上传

  • 参数说明

url: co/image/file

method: post

字段说明类型是否必填
busi业务编号int
id绑定控件 IDString

body(multipart/form-data):

字段说明类型是否必填
file附件file

return:

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
id文件 id
  • 请求示例
java
//axios请求:
 {
 	 url:"co/image/file"
     method:"post",
     params:{
            "id":BB65461C8EFA794B57924C2F96E7236A8E
            ,"busi":0
            ,"file": file
            }
 }

//返回数据:
{
    "er":0,
    "id":"7452C8F1F3934180BDFEC6332B8D2FF2"
}
//axios请求:
 {
 	 url:"co/image/file"
     method:"post",
     params:{
            "id":BB65461C8EFA794B57924C2F96E7236A8E
            ,"busi":0
            ,"file": file
            }
 }

//返回数据:
{
    "er":0,
    "id":"7452C8F1F3934180BDFEC6332B8D2FF2"
}

图片更新

  • 参数说明

url: co/image/file

method: put

字段说明类型是否必填
busi业务编号int
id绑定控件 IDString

body(multipart/form-data):

字段说明类型是否必填
file附件file

return:

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
id文件 id
  • 请求示例
java
//axios请求:
 {
 	 url:"co/image/file"
     method:"put",
     params:{
            "id":BB65461C8EFA794B57924C2F96E7236A8E
            ,"busi":0
            ,"file": file
            }
 }
//返回数据:
{
    "er":0,
    "id":"7452C8F1F3934180BDFEC6332B8D2FF2"
}
//axios请求:
 {
 	 url:"co/image/file"
     method:"put",
     params:{
            "id":BB65461C8EFA794B57924C2F96E7236A8E
            ,"busi":0
            ,"file": file
            }
 }
//返回数据:
{
    "er":0,
    "id":"7452C8F1F3934180BDFEC6332B8D2FF2"
}

图片查询

  • 参数说明

url: co/image/file

method: get

字段说明类型是否必填
busi业务编号int
id文件 IDString
isDownloadtrue:文件下载;false:文件预览boolean

return: 文件流

  • 请求示例
java
//axios请求:
 {
 	 url:"co/image/file"
     method:"get",
     params:{
            "busi":0
            ,"isDownload": false
            ,"id": BBE8CF8182F2404240B5F421CEECEFEE2B
            }
 }

//axios请求:
 {
 	 url:"co/image/file"
     method:"get",
     params:{
            "busi":0
            ,"isDownload": false
            ,"id": BBE8CF8182F2404240B5F421CEECEFEE2B
            }
 }

图片删除

  • 参数说明

url: co/image/file

method: delete

字段说明类型是否必填
busi业务编号int
id文件 IDString
path文件路径String

return:

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/image/file"
     method:"delete",
     params:{
            "busi":0
            ,"id": BBE8CF8182F2404240B5F421CEECEFEE2B
            ,"path":
            }
 }

//返回数据:
{
    "er":0
}
//axios请求:
 {
 	 url:"co/image/file"
     method:"delete",
     params:{
            "busi":0
            ,"id": BBE8CF8182F2404240B5F421CEECEFEE2B
            ,"path":
            }
 }

//返回数据:
{
    "er":0
}

打印

获取 PDF

  • 参数说明

url: co/print/pdf

method: get

字段说明类型是否必填
busi业务编号int
name打印模板名称String
type打印方式, TD表示套打,XD表示续打,空代表一般打印String
parm打印参数String
pkey主键参数String
code打印模板 IDString

return:(文件流)

  • 请求示例
java
//axios请求:
 {
 	 url:"co/print/pdf"
     method:"get",
     params:{
            "busi":0
            ,"code":"1066079250"
            ,"pkey":"27QJSQ202405234155"
            ,"parm":""
            ,"type":""
            ,"name":"请假申请"
            }
 }

//axios请求:
 {
 	 url:"co/print/pdf"
     method:"get",
     params:{
            "busi":0
            ,"code":"1066079250"
            ,"pkey":"27QJSQ202405234155"
            ,"parm":""
            ,"type":""
            ,"name":"请假申请"
            }
 }

获取 PDF 文件 BASE64 编码

  • 参数说明

url: co/print/pdf-base64

method: get

字段说明类型是否必填
busi业务编号int
name打印模板名称String
type打印方式, TD表示套打,XD表示续打,空代表一般打印String
parm打印参数String
pkey主键参数String
code打印模板 IDString

return:(文件流)

  • 请求示例
java
//axios请求:
 {
 	 url:"co/print/pdf-base64"
     method:"get",
     params:{
            "busi":0
            ,"code":"1066079250"
            ,"pkey":"27QJSQ202405234155"
            ,"parm":""
            ,"type":""
            ,"name":"请假申请"
            }
 }

//axios请求:
 {
 	 url:"co/print/pdf-base64"
     method:"get",
     params:{
            "busi":0
            ,"code":"1066079250"
            ,"pkey":"27QJSQ202405234155"
            ,"parm":""
            ,"type":""
            ,"name":"请假申请"
            }
 }

流程

流程保存

  • 参数说明

url: co/flow/inst

method: post

Body

字段说明类型是否必填
inst实例编号String
flow流程编号String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst"
     method:"post",
     body:{
            "flow":'1010004'
            ,"inst":'R20240004242'
            }
 }

//返回数据:
{
    "er":0
}
//axios请求:
 {
 	 url:"co/flow/inst"
     method:"post",
     body:{
            "flow":'1010004'
            ,"inst":'R20240004242'
            }
 }

//返回数据:
{
    "er":0
}

启动指定流程

  • 参数说明

url: co/flow/start

method: get

字段说明类型是否必填
busi业务编号int
flow流程编号String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
act
inst流程实例
task任务
flowname流程名称
flowcode流程编号
flowsrnb序列号
role角色
stat状态
form表单数据
tbar工具栏
autoSave自动保存
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/start"
     method:"get",
     params:{
            "flow":'1010004'
            ,"busi":0
            }
 }

//返回数据:
{
  "er": 0,
  "act": 7,
  "inst": "",
  "task": 0,
  "flowname": "入职申请",
  "flowcode": 1010004,
  "flowsrnb": "5E0E69A2BC8E431E820AC868788F114A",
  "role": 10023,
  "stat": 10024,
  "form": [

  ],
  "tbar": [

  ],
  "sign": "0.10023.145.10024.3.1010004",
  "autoSave": true
}
//axios请求:
 {
 	 url:"co/flow/start"
     method:"get",
     params:{
            "flow":'1010004'
            ,"busi":0
            }
 }

//返回数据:
{
  "er": 0,
  "act": 7,
  "inst": "",
  "task": 0,
  "flowname": "入职申请",
  "flowcode": 1010004,
  "flowsrnb": "5E0E69A2BC8E431E820AC868788F114A",
  "role": 10023,
  "stat": 10024,
  "form": [

  ],
  "tbar": [

  ],
  "sign": "0.10023.145.10024.3.1010004",
  "autoSave": true
}

查询流程图

  • 参数说明

url: co/flow/inst/chart

method: get

字段说明类型是否必填
busi业务编号int
flow流程编号String
inst实例编号String
task任务编号int
srnb序列号String
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
flowindex流程 Id
flowname流程名称
lines流转线数据
nodes节点数据
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/chart"
     method:"get",
     params:{
        "inst": "R20240004260"
        "busi": 0
        "srnb": "5E0E69A2BC8E431E820AC868788F114A"
        "flow": 1010004
    }
 }

//返回数据:
{
  "er": 0,
  "flowindex": "1010004",
  "flowname": "入职申请",
  "flowtype": "0",
  "actalertstate": "5D",
  "flowtime": "1",
  "ontimetype": "10D",
  "warntime": "3D",
  "flowconnector": "normal",
  "x": 431,
  "y": 269,
  "min_x": 38,
  "min_y": 40,
  "nodes": [

  ],
  "lines": [

  ],
  "areas": [

  ]
}
//axios请求:
 {
 	 url:"co/flow/inst/chart"
     method:"get",
     params:{
        "inst": "R20240004260"
        "busi": 0
        "srnb": "5E0E69A2BC8E431E820AC868788F114A"
        "flow": 1010004
    }
 }

//返回数据:
{
  "er": 0,
  "flowindex": "1010004",
  "flowname": "入职申请",
  "flowtype": "0",
  "actalertstate": "5D",
  "flowtime": "1",
  "ontimetype": "10D",
  "warntime": "3D",
  "flowconnector": "normal",
  "x": 431,
  "y": 269,
  "min_x": 38,
  "min_y": 40,
  "nodes": [

  ],
  "lines": [

  ],
  "areas": [

  ]
}

查询流程日志

  • 参数说明

url: co/flow/inst/log

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
data流转数据
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/log"
     method:"get",
     params:{
        "inst": "R20240004260"
        "busi": 0
    }
 }

//返回数据:
{
  "data": [
    {
      "eTime": "",
      "id": 1,
      "limitStat": 1,
      "limitTime": "2023-06-05 18:00:00",
      "link": 9,
      "note": "",
      "rRole": 10026,
      "rRoleN": "申请人",
      "rTach": 2,
      "rTachN": "申请",
      "rTime": "2023-04-23 15:18:09",
      "rUser": 145,
      "rUserN": "wh1",
      "sign": 2,
      "signame": "",
      "task": 1
    }
  ],
  "er": 0
}
//axios请求:
 {
 	 url:"co/flow/inst/log"
     method:"get",
     params:{
        "inst": "R20240004260"
        "busi": 0
    }
 }

//返回数据:
{
  "data": [
    {
      "eTime": "",
      "id": 1,
      "limitStat": 1,
      "limitTime": "2023-06-05 18:00:00",
      "link": 9,
      "note": "",
      "rRole": 10026,
      "rRoleN": "申请人",
      "rTach": 2,
      "rTachN": "申请",
      "rTime": "2023-04-23 15:18:09",
      "rUser": 145,
      "rUserN": "wh1",
      "sign": 2,
      "signame": "",
      "task": 1
    }
  ],
  "er": 0
}

流程任务办理

  • 参数说明

url: co/flow/inst/task/tran

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
act
flowcode流程编号
flowname流程名称
flowsrnb流程序列号
form表单数据
inst实例编号
role角色
task任务编号
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/tran"
     method:"get",
     params:{
        "inst": "RZ20240001466"
        "busi": 0
        "task": 1
    }
 }

//返回数据:
{
  "act": 7,
  "er": 0,
  "flowcode": 1110001,
  "flowname": "员工入职",
  "flowsrnb": "10CEF33F6B6A450FBD18DBE72880109D",
  "form": [

  ],
  "inst": "RZ20240001466",
  "msg": "",
  "role": 10023,
  "sign": "0.10023.145.10067.3.1110001",
  "stat": 10067,
  "task": 1,
  "tbar": [
  ]
}
//axios请求:
 {
 	 url:"co/flow/inst/task/tran"
     method:"get",
     params:{
        "inst": "RZ20240001466"
        "busi": 0
        "task": 1
    }
 }

//返回数据:
{
  "act": 7,
  "er": 0,
  "flowcode": 1110001,
  "flowname": "员工入职",
  "flowsrnb": "10CEF33F6B6A450FBD18DBE72880109D",
  "form": [

  ],
  "inst": "RZ20240001466",
  "msg": "",
  "role": 10023,
  "sign": "0.10023.145.10067.3.1110001",
  "stat": 10067,
  "task": 1,
  "tbar": [
  ]
}

流程任务撤回办理

  • 参数说明

url: co/flow/inst/task/recall

method: post

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/recall"
     method:"post",
     params:{
        "inst": "RZ20240001466"
        "busi": 0
        "task": 1
    }
 }

//返回数据:
{
    "act":7,
    "autoSave":true,
    "er":0,
    "flowcode":1010004,
    "flowname":"入职申请",
    "flowsrnb":"70DD669201BA4328A3565591B63BAFAC",
    "form":[
    ],
    "inst":"R20240004242",
    "msg":"",
    "role":10023,
    "sign":"0.10023.145.10024.3.1010004",
    "stat":10024,
    "task":1,
    "tbar":[

    ]
}
//axios请求:
 {
 	 url:"co/flow/inst/task/recall"
     method:"post",
     params:{
        "inst": "RZ20240001466"
        "busi": 0
        "task": 1
    }
 }

//返回数据:
{
    "act":7,
    "autoSave":true,
    "er":0,
    "flowcode":1010004,
    "flowname":"入职申请",
    "flowsrnb":"70DD669201BA4328A3565591B63BAFAC",
    "form":[
    ],
    "inst":"R20240004242",
    "msg":"",
    "role":10023,
    "sign":"0.10023.145.10024.3.1010004",
    "stat":10024,
    "task":1,
    "tbar":[

    ]
}

获取流程任务发送信息

  • 参数说明

url: co/flow/inst/task/send

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
data实例编号,任务编号
flow流程编号
tach下节点候选人
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/send"
     method:"get",
     params:{
        "inst": "RZ20240001466"
        "busi": 0
        "task": 1
        "_parm":""
    }
 }

//返回数据:
{
  "data": "RZ20240001466,1",
  "er": 0,
  "flow": 1110001,
  "recv": 0,
  "tach": [
  ]
}
//axios请求:
 {
 	 url:"co/flow/inst/task/send"
     method:"get",
     params:{
        "inst": "RZ20240001466"
        "busi": 0
        "task": 1
        "_parm":""
    }
 }

//返回数据:
{
  "data": "RZ20240001466,1",
  "er": 0,
  "flow": 1110001,
  "recv": 0,
  "tach": [
  ]
}

获取流程任务退回信息

  • 参数说明

url: co/flow/inst/task/back

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
data回退数据
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/back"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 2
        "_parm":""
    }
 }

//返回数据:
{
  "data": [
    {
      "children": [
        {
          "children": [
            {
              "checked": true,
              "disabled": false,
              "expanded": true,
              "id": "1-1",
              "leaf": true,
              "text": "Admin"
            }
          ],
          "expanded": true,
          "id": "10023-1",
          "leaf": false,
          "text": "申请人员"
        }
      ],
      "expanded": true,
      "id": 3,
      "leaf": false,
      "text": "申请1"
    }
  ],
  "er": 0
}
//axios请求:
 {
 	 url:"co/flow/inst/task/back"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 2
        "_parm":""
    }
 }

//返回数据:
{
  "data": [
    {
      "children": [
        {
          "children": [
            {
              "checked": true,
              "disabled": false,
              "expanded": true,
              "id": "1-1",
              "leaf": true,
              "text": "Admin"
            }
          ],
          "expanded": true,
          "id": "10023-1",
          "leaf": false,
          "text": "申请人员"
        }
      ],
      "expanded": true,
      "id": 3,
      "leaf": false,
      "text": "申请1"
    }
  ],
  "er": 0
}

提交流程任务退回

  • 参数说明

url: co/flow/inst/task/back

method: post

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
note意见String
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
data回退数据
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/back"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 2
        "note":""
    }
 }

//返回数据:
{
  "er": 0
}
//axios请求:
 {
 	 url:"co/flow/inst/task/back"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 2
        "note":""
    }
 }

//返回数据:
{
  "er": 0
}

获取流程任务退回信息(可跳环节)

  • 参数说明

url: co/flow/inst/task/back-jump

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/back-jump"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "_parm":""
    }
 }

//返回数据:
{
    "data":[],
    "er":0
}
//axios请求:
 {
 	 url:"co/flow/inst/task/back-jump"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "_parm":""
    }
 }

//返回数据:
{
    "data":[],
    "er":0
}

流程任务退回(可跳环节)

  • 参数说明

url: co/flow/inst/task/back-jump

method: post

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
note发送意见String
preTask原任务编号int
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/back-jump"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "note":""
        "preTask":2
    }
 }

//返回数据:
{
    "er":0
}
//axios请求:
 {
 	 url:"co/flow/inst/task/back-jump"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "note":""
        "preTask":2
    }
 }

//返回数据:
{
    "er":0
}

获取流程任务补件信息

  • 参数说明

url: co/flow/inst/task/mend

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/mend"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "_parm":""
    }
 }

//返回数据:
{
    "data":[],
    "er":0
}
//axios请求:
 {
 	 url:"co/flow/inst/task/mend"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "_parm":""
    }
 }

//返回数据:
{
    "data":[],
    "er":0
}

提交流程任务补件

  • 参数说明

url: co/flow/inst/task/mend

method: post

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
note发送意见String
preTask原任务编号int
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/mend"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "note":""
        "preTask":2
    }
 }

//返回数据:
{
    "er":0
}
//axios请求:
 {
 	 url:"co/flow/inst/task/mend"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "note":""
        "preTask":2
    }
 }

//返回数据:
{
    "er":0
}

获取所有环节

  • 参数说明

url: co/flow/inst/tach

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/tach"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
    }
 }

//返回数据:
{
    "er":0,
    "tach":[
        {
        "id":4,
        "text":"审批"
        },
        {
        "id":9,
        "text":"人事"
        },
        {
        "id":13,
        "text":"申请人通知"
        }
    ]
}
//axios请求:
 {
 	 url:"co/flow/inst/tach"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
    }
 }

//返回数据:
{
    "er":0,
    "tach":[
        {
        "id":4,
        "text":"审批"
        },
        {
        "id":9,
        "text":"人事"
        },
        {
        "id":13,
        "text":"申请人通知"
        }
    ]
}

获取流程清单

  • 参数说明

url: co/flow/list

method: get

字段说明类型是否必填
busi业务编号int

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/list"
     method:"get",
     params:{
        "busi": 0
    }
 }

//返回数据:
{
  "er": 0,
  "data": [
    {
      "text": "人事关系",
      "id": "0",
      "cls": "flow-ct00",
      "children": [
        {
          "text": "入职申请",
          "id": "1010004",
          "cls": "flow-ct00"
        }
      ]
    }
  ]
}
//axios请求:
 {
 	 url:"co/flow/list"
     method:"get",
     params:{
        "busi": 0
    }
 }

//返回数据:
{
  "er": 0,
  "data": [
    {
      "text": "人事关系",
      "id": "0",
      "cls": "flow-ct00",
      "children": [
        {
          "text": "入职申请",
          "id": "1010004",
          "cls": "flow-ct00"
        }
      ]
    }
  ]
}

获取环节内发送过的任务

  • 参数说明

url: co/flow/inst/task/tach/send

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
flow流程编号
tach环节编号
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/tach/send"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 5
        "_parm":""
    }
 }

//返回数据:
{
    "children":[
        {
        "children":[
        ],
        "id":"10023-3",
        "leaf":false,
        "text":"申请人员"
        }
    ],
    "data":"R20240003904,5",
    "er":0,
    "flow":1100123,
    "tach":3
}
//axios请求:
 {
 	 url:"co/flow/inst/task/tach/send"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 5
        "_parm":""
    }
 }

//返回数据:
{
    "children":[
        {
        "children":[
        ],
        "id":"10023-3",
        "leaf":false,
        "text":"申请人员"
        }
    ],
    "data":"R20240003904,5",
    "er":0,
    "flow":1100123,
    "tach":3
}

环节内发送

  • 参数说明

url: co/flow/inst/task/tach/send

method: post

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
flow流程编号String
_parm附加参数String

Body

字段说明类型是否必填
user用户 Idint
role角色 Idint
note发送意见String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/tach/send"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 5
        "flow":"1100123"
    }
    body:{
        "user":"145",
        "role":"1",
        "note":""
    }
 }

//返回数据:
{
    "er":0
}
//axios请求:
 {
 	 url:"co/flow/inst/task/tach/send"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 5
        "flow":"1100123"
    }
    body:{
        "user":"145",
        "role":"1",
        "note":""
    }
 }

//返回数据:
{
    "er":0
}

Powerd by Vitepress.