【缺陷修复】BPM:流程重新发起时,禁用业务表单的情况,避免报错

This commit is contained in:
YunaiV
2024-07-20 20:05:42 +08:00
parent 46da7e2876
commit 5d91131eb7
4 changed files with 23 additions and 17 deletions

View File

@ -1,6 +1,6 @@
import request from '@/config/axios'
export const getProcessDefinition = async (id: number, key: string) => {
export const getProcessDefinition = async (id?: string, key?: string) => {
return await request.get({
url: '/bpm/process-definition/get',
params: { id, key }

View File

@ -5,6 +5,7 @@ export type ProcessDefinitionVO = {
version: number
deploymentTIme: string
suspensionState: number
formType?: number
}
export type ModelVO = {

View File

@ -1,4 +1,5 @@
import request from '@/config/axios'
import { ProcessDefinitionVO } from '@/api/bpm/model'
export type Task = {
id: string
@ -18,17 +19,7 @@ export type ProcessInstanceVO = {
businessKey: string
createTime: string
endTime: string
}
export type ProcessInstanceCopyVO = {
type: number
taskName: string
taskKey: string
processInstanceName: string
processInstanceKey: string
startUserId: string
options: string[]
reason: string
processDefinition?: ProcessDefinitionVO
}
export const getProcessInstanceMyPage = async (params: any) => {