diff --git a/src/components/custom/workflow/flow-drawer.vue b/src/components/custom/workflow/flow-drawer.vue index 5536135c..0d5f8546 100644 --- a/src/components/custom/workflow/flow-drawer.vue +++ b/src/components/custom/workflow/flow-drawer.vue @@ -84,7 +84,7 @@ defineExpose({ {{ $t('common.cancel') }} 暂存 {{ $t('common.confirm') }} - 办理 + 办理 diff --git a/src/components/custom/workflow/leave-edit/index.vue b/src/components/custom/workflow/leave-edit/index.vue index d9ffc3de..8008cc8d 100644 --- a/src/components/custom/workflow/leave-edit/index.vue +++ b/src/components/custom/workflow/leave-edit/index.vue @@ -21,13 +21,15 @@ interface Props { operateType: CommonType.WorkflowTableOperateType; /** 业务ID */ businessId?: CommonType.IdType; + taskId?: CommonType.IdType; /** the edit row data */ rowData?: Api.Workflow.Leave | null; } const props = withDefaults(defineProps(), { rowData: null, - businessId: undefined + businessId: undefined, + taskId: undefined }); interface Emits { @@ -59,6 +61,8 @@ const readonly = computed(() => { return props.operateType === 'detail' || props.operateType === 'approval'; }); +const taskId = ref(props.taskId!); + const respLeave = ref(); const startWorkflowResult = ref(); @@ -209,6 +213,7 @@ async function handleSubmit() { const { error, data } = await fetchStartWorkflow(startWorkflowModel); if (error) return; startWorkflowResult.value = data; + taskId.value = data.taskId!; setTaskApplyVisible(); } @@ -298,7 +303,7 @@ watch(visible, initializeData, { immediate: true }); diff --git a/src/views/workflow/task/task-waiting/index.vue b/src/views/workflow/task/task-waiting/index.vue index f04821fc..5584bd4e 100644 --- a/src/views/workflow/task/task-waiting/index.vue +++ b/src/views/workflow/task/task-waiting/index.vue @@ -159,9 +159,11 @@ function handleResetSearch() { } const modules = import.meta.glob('@/components/custom/workflow/**/*.vue'); const businessId = ref(); +const taskId = ref(); async function handleApproval(row: Api.Workflow.Task) { businessId.value = row.businessId; + taskId.value = row.id; const formPath = row.formPath; if (formPath) { dynamicComponent.value = await loadDynamicComponent(modules, formPath); @@ -205,7 +207,7 @@ async function handleApproval(row: Api.Workflow.Task) {
- +