import { getAction, postAction } from '@/api/manage'

export const queryTreeListBySysDepart = data => postAction('/sys/sysDepart/queryTreeListBySysDepart', data)
export const queryUserByDepId = params => getAction('/sys/user/queryUserByDepId', params)
export const queryUserListByUserIds = params => getAction('/sys/user/userListByUserIds', params)
export const selectUserlistByDeptIdAndParam = data => postAction('/sys/user/selectUserlistByDeptIdAndParam', data)

// 流程跟踪
export const processTrack = data => postAction('/activiti/histoicFlow', data)
// 流程图
export const processImage = params => getAction('/workflow/getProcessImageBase64', params)

// 获取任务节点
export const approvalGetFirstUserTask = params => getAction('/ticket/task/getFristUserTask', params)
export const getUserBusinessTaskByCurrentTaskId = params =>
  getAction('/activiti/getUserBusinessTaskByCurrentTaskId', params)
// 撤销
export const getTaskCancelUrl = params => getAction('/activiti/getTaskCancelUrl', params)
// 催办
export const approvalTicketTaskUrge = data => postAction('/ticket/task/taskUrge', data)
// 获取流程配置
export const selectProjectPurchaseMainJsonConfig = params =>
  getAction('/project/projectPurchaseMain/selectProjectPurchaseMainJsonConfig', params)