From b5d4b09fdea8d0a1b05dfa68065b87e04ac64cb7 Mon Sep 17 00:00:00 2001 From: wsm <2746563060@qq.com> Date: Fri, 12 Jun 2026 16:50:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(xispeak):=20=E6=96=B0=E5=A2=9EBPM=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E9=BB=98=E8=AE=A4=E5=AE=A1=E6=89=B9=E6=84=8F=E8=A7=81?= =?UTF-8?q?=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 handleReasonTemplateMap 按任务节点映射审批意见生成函数 - 包含审批/反馈/分配/核查/监察等常用节点模板 - 各节点 taskDefKey 待后续填写 Co-Authored-By: Claude Opus 4.7 --- .../xispeak/components/BgXiSpeakBPMForm.vue | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/src/views/bg/xispeak/components/BgXiSpeakBPMForm.vue b/src/views/bg/xispeak/components/BgXiSpeakBPMForm.vue index e23e455..c7ce7f1 100644 --- a/src/views/bg/xispeak/components/BgXiSpeakBPMForm.vue +++ b/src/views/bg/xispeak/components/BgXiSpeakBPMForm.vue @@ -262,6 +262,7 @@ :claim="claim" :showSelnextUser="showSelnextUser" :beforeHandle="saveMainFormBeforeProcessHandle" + :defaultReason="defaultHandleReason" @success="handleProcessSuccess" @claimSuccess="handleClaimSuccess" /> @@ -441,6 +442,59 @@ processTableName: props.formData?.processTableName, })); + // ==================== 默认审批意见 ==================== + const handleReasonTemplateMap: Record string> = { + // TODO: 填写各节点的 taskDefKey + // 部门负责人审批 / 所党委审批 / 督办部门负责人审批 / 纪检负责人审批 + // 'Task_': buildApproveReason, + // 部门经办人反馈完成情况 / 收集流程部门经办人填写 / 反馈流程部门经办人填写反馈 + // 'Task_': buildDeptHandlerFeedbackReason, + // 部门负责人接受任务并分配 + // 'Task_': buildDeptLeaderAssignReason, + // 部门负责人直接反馈 + // 'Task_': buildDeptLeaderDirectFeedbackReason, + // 督办部门经办人确认全部反馈事项 + // 'Task_': buildSuperviseConfirmAllReason, + // 督办经办人核查 / 反馈流程督办经办人核查 + // 'Task_': buildSuperviseCheckReason, + // 纪检经办人监察 + // 'Task_': buildJiJianCheckReason, + }; + + const defaultHandleReason = computed(() => { + const builder = handleReasonTemplateMap[String(processInfo.value.taskDefKey || '')]; + return builder ? builder() : ''; + }); + + function buildApproveReason() { + return '同意。'; + } + + function buildDeptHandlerFeedbackReason() { + return '已完成反馈,请领导审批。'; + } + + function buildDeptLeaderAssignReason() { + const userNameText = subApproveUser.value || ''; + return userNameText ? `请${userNameText}办理。` : ''; + } + + function buildDeptLeaderDirectFeedbackReason() { + return '已完成反馈。'; + } + + function buildSuperviseConfirmAllReason() { + return '已确认全部反馈事项。'; + } + + function buildSuperviseCheckReason() { + return '已核查。'; + } + + function buildJiJianCheckReason() { + return '已监察。'; + } + onMounted(() => { initFormData(); });