diff --git a/apps/web-antd/src/api/bpm/processInstance/index.ts b/apps/web-antd/src/api/bpm/processInstance/index.ts
index 32e0075b9..ecbc03855 100644
--- a/apps/web-antd/src/api/bpm/processInstance/index.ts
+++ b/apps/web-antd/src/api/bpm/processInstance/index.ts
@@ -15,6 +15,7 @@ export namespace BpmProcessInstanceApi {
export interface Task {
id: number;
name: string;
+ assigneeUser?: User;
}
export interface User {
@@ -51,6 +52,7 @@ export namespace BpmProcessInstanceApi {
export interface ProcessInstance {
businessKey: string;
category: string;
+ categoryName?: string;
createTime: string;
endTime: string;
fields: string[];
@@ -64,6 +66,10 @@ export namespace BpmProcessInstanceApi {
startTime?: Date;
startUser?: User;
status: number;
+ summary?: {
+ key: string;
+ value: string;
+ }[];
tasks?: BpmProcessInstanceApi.Task[];
}
diff --git a/apps/web-antd/src/views/bpm/processInstance/index.vue b/apps/web-antd/src/views/bpm/processInstance/index.vue
index bb8b1ecd1..6a7492520 100644
--- a/apps/web-antd/src/views/bpm/processInstance/index.vue
+++ b/apps/web-antd/src/views/bpm/processInstance/index.vue
@@ -1,6 +1,6 @@
@@ -110,7 +120,6 @@ const [Grid, gridApi] = useVbenVxeGrid({
-
-
-
-
-
+
- ({{ row.tasks[0].name }}) 审批中
+ ({{ row.tasks![0]!.name }}) 审批中
- 等 {{ row.tasks.length }} 人 ({{ row.tasks[0].name }})审批中
+ 等 {{ row.tasks!.length }} 人 ({{ row.tasks![0]!.name }})审批中
@@ -179,6 +186,14 @@ const [Grid, gridApi] = useVbenVxeGrid({
auth: ['bpm:process-instance:cancel'],
onClick: handleCancel.bind(null, row),
},
+ {
+ label: '重新发起',
+ type: 'link',
+ icon: ACTION_ICON.ADD,
+ ifShow: row.status !== BpmProcessInstanceStatus.RUNNING,
+ auth: ['bpm:process-instance:create'],
+ onClick: handleCreate.bind(null, row),
+ },
]"
/>
diff --git a/apps/web-ele/src/api/bpm/processInstance/index.ts b/apps/web-ele/src/api/bpm/processInstance/index.ts
index 32e0075b9..ecbc03855 100644
--- a/apps/web-ele/src/api/bpm/processInstance/index.ts
+++ b/apps/web-ele/src/api/bpm/processInstance/index.ts
@@ -15,6 +15,7 @@ export namespace BpmProcessInstanceApi {
export interface Task {
id: number;
name: string;
+ assigneeUser?: User;
}
export interface User {
@@ -51,6 +52,7 @@ export namespace BpmProcessInstanceApi {
export interface ProcessInstance {
businessKey: string;
category: string;
+ categoryName?: string;
createTime: string;
endTime: string;
fields: string[];
@@ -64,6 +66,10 @@ export namespace BpmProcessInstanceApi {
startTime?: Date;
startUser?: User;
status: number;
+ summary?: {
+ key: string;
+ value: string;
+ }[];
tasks?: BpmProcessInstanceApi.Task[];
}