初始提交

This commit is contained in:
2026-01-04 11:09:06 +08:00
commit 8fa31df250
1326 changed files with 213907 additions and 0 deletions

139
api/workFlow/document.js Normal file
View File

@@ -0,0 +1,139 @@
import request from '@/utils/request'
// 获取文档列表
export function getDocumentList(data) {
return request({
url: `/api/file/Document?keyword=${data.keyword}&parentId=${data.parentId}`,
method: 'get'
})
}
// 文件下载
export function packDownload(e) {
return request({
url: `/api/file/Document/PackDownload`,
method: 'POST',
data:JSON.parse(e)
})
}
// 文件重命名
export function resetFileName(data) {
return request({
url: `/api/file/Document/${data.id}`,
method: 'PUT',
data
})
}
// 文件重命名详情
export function fileDetail(id) {
return request({
url: `/api/file/Document/${id}`,
method: 'get'
})
}
// 新建文件夹
export function addFolder(data) {
return request({
url: `/api/file/Document`,
method: 'POST',
data
})
}
// 文件删除
export function batchDelete(e) {
return request({
url: `/api/file/Document/BatchDelete`,
method: 'POST',
data:JSON.parse(e)
})
}
// 文件回收站
export function trash(data) {
return request({
url: `/api/file/Document/Trash`,
method: 'GET',
data
})
}
// 文件回收站删除
export function trashDelete(data) {
return request({
url: `/api/file/Document/Trash`,
method: 'post',
data
})
}
// 文件还原
export function recovery(data) {
return request({
url: `/api/file/Document/Trash/Actions/Recovery`,
method: 'POST',
data
})
}
// 文件树列表
export function folderTree(data) {
return request({
url: `/api/file/Document/FolderTree`,
method: 'POST',
data
})
}
// 文件移动
export function folderMove(data) {
return request({
url: `/api/file/Document/Actions/MoveTo/${data.id}`,
method: 'PUT',
data
})
}
// 文件共享列表
export function shareFolderList(data) {
return request({
url: `/api/file/Document/Share`,
method: 'GET',
data
})
}
// 文件共享
export function shareFolder(data) {
return request({
url: `/api/file/Document/Actions/Share`,
method: 'POST',
data
})
}
// 共享给我
export function shareTome(data) {
return request({
url: `/api/file/Document/ShareTome`,
method: 'GET',
data
})
}
// 取消共享
export function cancelShare(data) {
return request({
url: `/api/file/Document/Actions/CancelShare`,
method: 'POST',
data
})
}
// 获取共享人员
export function shareUser(id) {
return request({
url: `/api/file/Document/ShareUser/${id}`,
method: 'GET'
})
}
// 更新共享人员
export function shareAdjustment(data) {
return request({
url: `/api/file/Document/Actions/ShareAdjustment/${data.ids}`,
method: 'POST',
data
})
}

84
api/workFlow/entrust.js Normal file
View File

@@ -0,0 +1,84 @@
import request from '@/utils/request'
// 获取流程委托列表
export function FlowDelegateList(data) {
return request({
url: `/api/workflow/delegate`,
method: 'get',
data
})
}
// 获取流程委托信息
export function FlowDelegateInfo(id) {
return request({
url: `/api/workflow/delegate/${id}`,
method: 'get'
})
}
// 删除流程委托
export function DeleteDelagate(id) {
return request({
url: `/api/workflow/delegate/${id}`,
method: 'DELETE'
})
}
// 新建流程委托
export function Create(data) {
return request({
url: `/api/workflow/delegate`,
method: 'post',
data
})
}
// 更新流程委托
export function Update(data) {
return request({
url: `/api/workflow/delegate/${data.id}`,
method: 'PUT',
data
})
}
// 获取流程的所有委托人
export function getDelegateUser(id) {
return request({
url: `/api/workflow/delegate/UserList?templateId=${id}`,
method: 'get'
})
}
// 获取一个委托终止
export function entrustStop(id) {
return request({
url: `/api/workflow/delegate/Stop/${id}`,
method: 'put',
data: {}
})
}
// 获取用户下拉框列表
export const getListByAuthorize = (organizeId, keyword) => {
return request({
url: `/api/permission/Users/GetListByAuthorize/${organizeId}`,
method: 'post',
data: {
keyword
}
})
}
// 获取用户下拉框列表
export function getPrincipalDetails(id) {
return request({
url: `/api/workflow/delegate/Info/${id}`,
method: 'get'
})
}
// 接受委托
export function entrustHandle(id, data) {
return request({
url: `/api/workflow/delegate/Notarize/${id}?type=${data.type}`,
method: 'post',
data: {}
})
}

232
api/workFlow/flowBefore.js Normal file
View File

@@ -0,0 +1,232 @@
import request from '@/utils/request'
import jnpf from '@/utils/jnpf'
// 获取待我审批信息
export function FlowTask(id, data) {
const userInfo = uni.getStorageSync('userInfo') || {}
const newId = jnpf.aesEncryption.encrypt(id + ',' + userInfo.userId + ',' + jnpf.idGenerator());
return request({
url: `/api/workflow/task/${newId}`,
method: 'get',
data,
options: {
load: true
}
})
}
// 流程记录
export function recordList(data) {
return request({
url: `/api/workflow/operator/RecordList`,
method: 'get',
data
})
}
// 获取流程任务
export function taskList(data) {
return request({
url: `/api/workflow/trigger/task/List`,
method: 'get',
data
})
}
//减签列表
export function AddSignUserIdList(data, id) {
return request({
url: `/api/workflow/operator/AddSignUserIdList/${id}`,
method: 'post',
data
})
}
//减签
export function ReduceApprover(data, id) {
return request({
url: `/api/workflow/operator/ReduceApprover/${id}`,
method: 'post',
data
})
}
// 流程签收
export function SignFor(data) {
return request({
url: `/api/workflow/operator/Sign`,
method: 'post',
data
})
}
// 退回
export function back(id) {
return request({
url: `/api/workflow/operator/SendBackNodeList/${id}`,
method: 'get'
})
}
// 确认退回
export function sendBack(data, id) {
return request({
url: `/api/workflow/operator/SendBack/${id}`,
method: 'post',
data
})
}
// 开始办理
export function Transact(data) {
return request({
url: `/api/workflow/operator/Transact`,
method: 'post',
data
})
}
// 待我审核审核
export function Audit(id, data) {
return request({
url: `/api/workflow/operator/Audit/${id}`,
method: 'post',
data,
options: {
load: true
}
})
}
// 待我审核退回
export function Reject(id, data) {
return request({
url: `/api/workflow/operator/Audit/${id}`,
method: 'post',
data
})
}
// 撤回审核
export function auditRecall(id, data) {
return request({
url: `/api/workflow/operator/Recall/${id}`,
method: 'post',
data
})
}
export function launchRecall(id, data) {
return request({
url: `/api/workflow/task/Recall/${id}`,
method: 'PUT',
data
})
}
//减签
export function addSignUserIdList(id, data) {
return request({
url: `/api/workflow/operator/AddSignUserIdList/${id}`,
method: 'POST',
data
})
}
// 驳回审核
export function cancel(id, data) {
return request({
url: `/api/workflow/Engine/FlowBefore/Cancel/${id}`,
method: 'post',
data
})
}
// 待我审核转审
export function Transfer(id, data) {
return request({
url: `/api/workflow/operator/Transfer/${id}`,
method: 'post',
data
})
}
// 审批汇总
export function getRecordList(id, data) {
return request({
url: `/api/workflow/Engine/FlowBefore/RecordList/${id}`,
method: 'get',
data
})
}
// 待我审核保存草稿
export function saveAudit(id, data) {
return request({
url: `/api/workflow/operator/SaveAudit/${id}`,
method: 'post',
data
})
}
export function saveAssist(id, data) {
return request({
url: `/api/workflow/operator/AssistSave/${id}`,
method: 'post',
data
})
}
// 判断是否有候选人
export function Candidates(id, data) {
return request({
url: `/api/workflow/operator/CandidateNode/${id}`,
method: 'post',
data
})
}
// 获取候选人列表(分页)
export function CandidateUser(id, data) {
return request({
url: `/api/workflow/operator/CandidateUser/${id}`,
method: 'post',
data
})
}
// 获取审批退回类型
export function RejectList(id) {
return request({
url: `/api/workflow/Engine/FlowBefore/RejectList/${id}`,
method: 'get'
})
}
//协办
export function Assist(id, data) {
return request({
url: `/api/workflow/operator/Assist/${id}`,
method: 'post',
data
})
}
// 加签
export function FreeApprover(id, data) {
return request({
url: `/api/workflow/operator/AddSign/${id}`,
method: 'post',
data
})
}
// 返回多个子流程信息
export function SubFlowInfo(id) {
return request({
url: `/api/workflow/Engine/FlowBefore/SubFlowInfo/${id}`,
method: 'get'
})
}
// 获取流程实例相关人员(分页)
export function getTaskUserList(taskId, data) {
return request({
url: `/api/workflow/task/TaskUserList/${taskId}`,
method: 'get',
data
})
}
// 外部节点重试
export function retryOutside(nodeId) {
return request({
url: `/api/workflow/task/Hooks/Retry/${nodeId}`,
method: 'get',
})
}

120
api/workFlow/flowEngine.js Normal file
View File

@@ -0,0 +1,120 @@
import request from '@/utils/request'
// 获取流程引擎列表
export function FlowEngineList(data) {
return request({
url: `/api/workflow/Engine/flowTemplate`,
method: 'get',
data
})
}
// 获取流程引擎信息
export function FlowEngineInfo(id) {
return request({
url: `/api/workflow/Engine/flowTemplate/${id}`,
method: 'get'
})
}
//获取流程引擎分页
export function getFlowSelector(data) {
return request({
url: `/api/workflow/template/Selector`,
method: 'get',
data,
options: {
load: true
}
})
}
//表单预览
export function flowForm(id) {
return request({
url: `/api/flowForm/Form/${id}`,
method: 'get'
})
}
// 列表ListAll
export function FlowEngineListAll() {
return request({
url: `/api/workflow/Engine/flowTemplate/ListAll`,
method: 'get',
options: {
load: false
}
})
}
// 流程引擎下拉框
export function FlowEngineSelector(type) {
return request({
url: `/api/workflow/Engine/flowTemplate/Selector`,
method: 'get',
data: {
type
}
})
}
// 获取流程评论列表
export function getCommentList(data) {
return request({
url: `/api/workflow/comment`,
method: 'get',
data
})
}
// 新建流程评论
export function createComment(data) {
return request({
url: `/api/workflow/comment`,
method: 'post',
data
})
}
// 删除流程评论
export function delComment(id) {
return request({
url: `/api/workflow/comment/${id}`,
method: 'delete'
})
}
// 委托可选全部流程
export function FlowEngineAll(data) {
return request({
url: `/api/workflow/Engine/flowTemplate/getflowAll`,
method: 'get',
data
})
}
// 获取引擎id
export function getFlowIdByCode() {
return request({
url: `/api/extend/CrmOrder`,
method: 'get'
})
}
// 获取待办未读
export function getFlowTodoCount(data) {
return request({
url: `/api/workflow/monitor/FlowTodoCount`,
method: 'post',
data
})
}
// 委托 通过list<flowId>获取流程引擎列表
export function getFlowEngineListByIds(data) {
return request({
url: `/api/workflow/template/GetFlowList`,
method: 'post',
data
})
}
// 获取流程版本Id和发起节点表单id(大流程id)
export function getFlowStartFormId(id) {
return request({
url: `/api/workflow/template/StartFormId/${id}`,
method: 'get',
})
}

View File

@@ -0,0 +1,16 @@
import request from '@/utils/request'
// 撤销
export function Revoke(id, data) {
return request({
url: `/api/workflow/task/Revoke/${id}`,
method: 'PUT',
data
})
}
// 发起催办
export function Press(id) {
return request({
url: `/api/workflow/task/Press/${id}`,
method: 'post'
})
}

65
api/workFlow/schedule.js Normal file
View File

@@ -0,0 +1,65 @@
import request from '@/utils/request'
// 获取日程安排列表
export function List(data) {
return request({
url: '/api/system/Schedule/AppList',
method: 'get',
data,
options: {
load: false
}
})
}
// 新建日程安排
export function ScheduleCreate(data) {
return request({
url: '/api/system/Schedule',
method: 'post',
data,
options: {
load: false
}
})
}
// 删除日程安排
export function ScheduleDelete(id, type) {
return request({
url: `/api/system/Schedule/${id}/${type}`,
method: 'DELETE',
options: {
load: false
}
})
}
// 获取日程安排信息
export function ScheduleInfo(id) {
return request({
url: `/api/system/Schedule/${id}`,
method: 'get',
options: {
load: false
}
})
}
// 更新日程安排
export function ScheduleUpdate(data, type) {
return request({
url: `/api/system/Schedule/${data.id}/${type}`,
method: 'PUT',
data,
options: {
load: false
}
})
}
//查看日程详情
export function ScheduleDetail(groupId, id) {
return request({
url: `/api/system/Schedule/detail?groupId=${groupId}&id=${id}`,
method: 'get',
options: {
load: false
}
})
}

49
api/workFlow/template.js Normal file
View File

@@ -0,0 +1,49 @@
import request from '@/utils/request'
// 获取发起
export function getFlowLaunchList(data) {
return request({
url: `/api/workflow/task`,
method: 'get',
data,
options: {
load: false
}
})
}
// 删除流程发起
export function delFlowLaunch(id) {
return request({
url: '/api/workflow/task/' + id,
method: 'delete',
});
}
// 获取待签
export function getOperatorList(data) {
return request({
url: `/api/workflow/operator/List/${data.category}`,
method: 'get',
data,
options: {
load: false
}
})
}
// 获取流程发起列表
// export function TreeList() {
// return request({
// url: `/api/workflow/template/TreeList`,
// method: 'get'
// })
// }
// 获取流程发起列表
// export function OperatorList() {
// return request({
// url: `api/workflow/operator/List/0`,
// method: 'get'
// })
// }

View File

@@ -0,0 +1,35 @@
import request from '@/utils/request'
// 新建表单
export function Create(data) {
return request({
url: `/api/workflow/task`,
method: 'post',
data,
options: {
load: true
}
})
}
// 修改表单
export function Update(data) {
return request({
url: `/api/workflow/task/${data.id}`,
method: 'put',
data
})
}
//通过表单id获取流程id
export function getFormById(id) {
return request({
url: `/api/flowForm/Form/getFormById/${id}`,
method: 'get'
})
}
//查看发起表单
export function getStartFormInfo(id) {
return request({
url: `/api/workflow/task/ViewStartForm/${id}`,
method: 'get'
})
}