用户中心和采购计划完善

This commit is contained in:
砂糖
2025-10-13 17:51:27 +08:00
parent 8db5eb7707
commit d0520e7872
48 changed files with 4833 additions and 713 deletions

View File

@@ -0,0 +1,53 @@
import request from "@/util/oaRequest"
// 查询流程分类列表
export function listCategory(query) {
return request({
url: '/workflow/category/list',
method: 'get',
params: query
})
}
// 查询流程分类列表
export function listAllCategory(query) {
return request({
url: '/workflow/category/listAll',
method: 'get',
params: query
})
}
// 查询流程分类详细
export function getCategory(categoryId) {
return request({
url: '/workflow/category/' + categoryId,
method: 'get'
})
}
// 新增流程分类
export function addCategory(data) {
return request({
url: '/workflow/category',
method: 'post',
data: data
})
}
// 修改流程分类
export function updateCategory(data) {
return request({
url: '/workflow/category',
method: 'put',
data: data
})
}
// 删除流程分类
export function delCategory(categoryId) {
return request({
url: '/workflow/category/' + categoryId,
method: 'delete'
})
}

51
api/oa/workflow/deploy.js Normal file
View File

@@ -0,0 +1,51 @@
import request from "@/util/oaRequest"
// 查询流程部署列表
export function listDeploy(query) {
return request({
url: '/workflow/deploy/list',
method: 'get',
params: query
})
}
export function listPublish(query) {
return request({
url: '/workflow/deploy/publishList',
method: 'get',
params: query
})
}
// 获取流程模型流程图
export function getBpmnXml(definitionId) {
return request({
url: '/workflow/deploy/bpmnXml/' + definitionId,
method: 'get'
})
}
// 修改流程状态
export function changeState(params) {
return request({
url: '/workflow/deploy/changeState',
method: 'put',
params: params
})
}
// 删除流程部署
export function delDeploy(deployIds) {
return request({
url: '/workflow/deploy/' + deployIds,
method: 'delete'
})
}
// 查询流程部署关联表单信息
export function getFormByDeployId(deployId) {
return request({
url: '/workflow/deploy/form/' + deployId,
method: 'get',
})
}

View File

@@ -0,0 +1,10 @@
import request from "@/util/oaRequest"
// 撤回任务
export function revokeProcess(data) {
return request({
url: '/workflow/task/revokeProcess',
method: 'post',
data: data
})
}

52
api/oa/workflow/form.js Normal file
View File

@@ -0,0 +1,52 @@
import request from "@/util/oaRequest"
// 查询流程表单列表
export function listForm(query) {
return request({
url: '/workflow/form/list',
method: 'get',
params: query
})
}
// 查询流程表单详细
export function getForm(formId) {
return request({
url: '/workflow/form/' + formId,
method: 'get'
})
}
// 新增流程表单
export function addForm(data) {
return request({
url: '/workflow/form',
method: 'post',
data: data
})
}
// 修改流程表单
export function updateForm(data) {
return request({
url: '/workflow/form',
method: 'put',
data: data
})
}
// 挂载表单
export function addDeployForm(data) {
return request({
url: '/workflow/form/addDeployForm',
method: 'post',
data: data
})
}
// 删除流程表单
export function delForm(formId) {
return request({
url: '/workflow/form/' + formId,
method: 'delete'
})
}

View File

@@ -0,0 +1,10 @@
import request from "@/util/oaRequest"
// 查询流程实例详情信息
export function getDetailInstance(query) {
return request({
url: '/workflow/instance/detail',
method: 'get',
params: query
})
}

84
api/oa/workflow/model.js Normal file
View File

@@ -0,0 +1,84 @@
import request from "@/util/oaRequest"
// 查询流程模型信息
export function listModel(query) {
return request({
url: '/workflow/model/list',
method: 'get',
params: query
})
}
// 查询流程模型信息
export function historyModel(query) {
return request({
url: '/workflow/model/historyList',
method: 'get',
params: query
})
}
export function getModel(modelId) {
return request({
url: '/workflow/model/' + modelId,
method: 'get'
})
}
// 新增模型信息
export function addModel(data) {
return request({
url: '/workflow/model',
method: 'post',
data: data
})
}
// 修改模型信息
export function updateModel(data) {
return request({
url: '/workflow/model',
method: 'put',
data: data
})
}
// 保存流程模型
export function saveModel(data) {
return request({
url: '/workflow/model/save',
method: 'post',
data: data
})
}
export function latestModel(params) {
return request({
url: '/workflow/model/latest',
method: 'post',
params: params
})
}
export function delModel(modelIds) {
return request({
url: '/workflow/model/' + modelIds,
method: 'delete'
})
}
export function deployModel(params) {
return request({
url: '/workflow/model/deploy',
method: 'post',
params: params
})
}
// 获取流程模型流程图
export function getBpmnXml(modelId) {
return request({
url: '/workflow/model/bpmnXml/' + modelId,
method: 'get'
})
}

132
api/oa/workflow/process.js Normal file
View File

@@ -0,0 +1,132 @@
import request from "@/util/oaRequest"
// 查询流程列表
export function listProcess(query) {
return request({
url: '/workflow/process/list',
method: 'get',
params: query
})
}
// 查询流程列表
export function getProcessForm(query) {
return request({
url: '/workflow/process/getProcessForm',
method: 'get',
params: query
})
}
// 部署流程实例
export function startProcess(processDefId, data) {
return request({
url: '/workflow/process/start/' + processDefId,
method: 'post',
data: data
})
}
// 部署流程实例
export function startClaim(data) {
return request({
url: '/workflow/process/startClaim',
method: 'post',
data: data
})
}
// 部署流程实例
export function startMoney(data) {
return request({
url: '/workflow/process/startMoney',
method: 'post',
data: data
})
}
// 删除流程实例
export function delProcess(ids) {
return request({
url: '/workflow/process/instance/' + ids,
method: 'delete'
})
}
// 获取流程图
export function getBpmnXml(processDefId) {
return request({
url: '/workflow/process/bpmnXml/' + processDefId,
method: 'get'
})
}
export function detailProcess(query) {
return request({
url: '/workflow/process/detail',
method: 'get',
params: query
})
}
// 我的发起的流程
export function listOwnProcess(query) {
return request({
url: '/workflow/process/ownList',
method: 'get',
params: query
})
}
// 我的发起的流程
export function listTripAndAbsence(query) {
return request({
url: '/workflow/process/trip-absence',
method: 'get',
params: query
})
}
// 我待办的流程
export function listTodoProcess(query) {
return request({
url: '/workflow/process/todoList',
method: 'get',
params: query
})
}
// 我待签的流程
export function listClaimProcess(query) {
return request({
url: '/workflow/process/claimList',
method: 'get',
params: query
})
}
// 我已办的流程
export function listFinishedProcess(query) {
return request({
url: '/workflow/process/finishedList',
method: 'get',
params: query
})
}
// 查询流程抄送列表
export function listCopyProcess(query) {
return request({
url: '/workflow/process/copyList',
method: 'get',
params: query
})
}
// 取消申请
export function stopProcess(data) {
return request({
url: '/workflow/task/stopProcess',
method: 'post',
data: data
})
}

71
api/oa/workflow/task.js Normal file
View File

@@ -0,0 +1,71 @@
import request from "@/util/oaRequest"
// 完成任务
export function complete(data) {
return request({
url: '/workflow/task/complete',
method: 'post',
data: data
})
}
// 委派任务
export function delegate(data) {
return request({
url: '/workflow/task/delegate',
method: 'post',
data: data
})
}
// 转办任务
export function transfer(data) {
return request({
url: '/workflow/task/transfer',
method: 'post',
data: data
})
}
// 退回任务
export function returnTask(data) {
return request({
url: '/workflow/task/return',
method: 'post',
data: data
})
}
// 拒绝任务
export function rejectTask(data) {
return request({
url: '/workflow/task/reject',
method: 'post',
data: data
})
}
// 签收任务
export function claimTask(data) {
return request({
url: '/workflow/task/claim',
method: 'post',
data: data
})
}
// 可退回任务列表
export function returnList(data) {
return request({
url: '/workflow/task/returnList',
method: 'post',
data: data
})
}
export function getTaskFormDetail(taskId) {
return request({
url: '/workflow/task/processVariables/'+taskId,
method: 'get',
})
}