add 增加下一节点执行人是当前任务处理人自动审批

fix 修复已完成的实例删除失败
This commit is contained in:
may
2025-07-27 10:45:33 +08:00
parent d95f358d1b
commit 1565ec1996
2 changed files with 38 additions and 5 deletions
+10 -2
View File
@@ -181,7 +181,15 @@
</template>
<script setup lang="ts">
import { pageByRunning, pageByFinish, deleteByInstanceIds, instanceVariable, invalid, updateVariable } from '@/api/workflow/instance';
import {
pageByRunning,
pageByFinish,
deleteByInstanceIds,
deleteHisByInstanceIds,
instanceVariable,
invalid,
updateVariable
} from '@/api/workflow/instance';
import { categoryTree } from '@/api/workflow/category';
import { CategoryTreeVO } from '@/api/workflow/category/types';
import { FlowInstanceQuery, FlowInstanceVO } from '@/api/workflow/instance/types';
@@ -346,7 +354,7 @@ const handleDelete = async (row: FlowInstanceVO) => {
await deleteByInstanceIds(instanceIdList).finally(() => (loading.value = false));
getProcessInstanceRunningList();
} else {
await deleteByInstanceIds(instanceIdList).finally(() => (loading.value = false));
await deleteHisByInstanceIds(instanceIdList).finally(() => (loading.value = false));
getProcessInstanceFinishList();
}
proxy?.$modal.msgSuccess('删除成功');