From b6b8604edc041a67d4ff22f6c748b980ae229284 Mon Sep 17 00:00:00 2001
From: ye1023 <12588209+ye1023@user.noreply.gitee.com>
Date: Fri, 10 Jul 2026 15:14:17 +0800
Subject: [PATCH] =?UTF-8?q?yxk-20260710=20=E5=85=9A=E5=A7=94=E4=BC=9A?=
=?UTF-8?q?=E3=80=81=E6=89=80=E5=8A=A1=E4=BC=9A=E3=80=81=E6=8A=8A=E6=8A=8A?=
=?UTF-8?q?=E8=84=89=EF=BC=9A=E5=8F=91=E8=B5=B7=E6=B5=81=E7=A8=8B=E6=97=B6?=
=?UTF-8?q?=E9=A6=96=E8=8A=82=E7=82=B9=E8=B7=B3=E8=BF=87=E7=9A=84=E6=83=85?=
=?UTF-8?q?=E5=86=B5=EF=BC=8C=E5=8F=AF=E4=BB=A5=E5=86=99=E5=85=A5=E8=87=AA?=
=?UTF-8?q?=E5=AE=9A=E4=B9=89=E7=9A=84=E5=AE=A1=E6=89=B9=E6=84=8F=E8=A7=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../process/FlowScheduleStartModalForBG.vue | 21 +++++++++++++++++++
.../bg/bgpartymatter/BgPartymatterList.vue | 2 ++
src/views/bg/bqtakepulse/BgTakepulseList.vue | 2 ++
3 files changed, 25 insertions(+)
diff --git a/src/components/semri/process/FlowScheduleStartModalForBG.vue b/src/components/semri/process/FlowScheduleStartModalForBG.vue
index 8d02830..b0bbadd 100644
--- a/src/components/semri/process/FlowScheduleStartModalForBG.vue
+++ b/src/components/semri/process/FlowScheduleStartModalForBG.vue
@@ -12,6 +12,8 @@
+
+
+
+
+
+
+
+
@@ -113,6 +121,7 @@ import { SUOBAN_DEPT_ID, MEASURE_RES_LEADER_ROLE_ID } from '/@/constant/supervis
deadline?: string | Date;
showUrgencyLevelField?: boolean;
urgencyLevel?: string | number;
+ approvalOpinion?: string;
}
interface DeptOption {
@@ -124,6 +133,7 @@ import { SUOBAN_DEPT_ID, MEASURE_RES_LEADER_ROLE_ID } from '/@/constant/supervis
const { createMessage } = useMessage();
const title = ref('发起流程');
+ const DEFAULT_APPROVAL_OPINION = '发起督办流程。';
const visible = ref(false);
const contextData = ref>({});
const deptOptions = ref([]);
@@ -141,6 +151,7 @@ import { SUOBAN_DEPT_ID, MEASURE_RES_LEADER_ROLE_ID } from '/@/constant/supervis
supDeptleaderid: '' as string | string[],
deadline: undefined as string | undefined,
urgencyLevel: '0' as string | number,
+ approvalOpinion: DEFAULT_APPROVAL_OPINION,
});
function resetForm() {
@@ -154,6 +165,7 @@ import { SUOBAN_DEPT_ID, MEASURE_RES_LEADER_ROLE_ID } from '/@/constant/supervis
formData.supDeptleaderid = '';
formData.deadline = undefined;
formData.urgencyLevel = '0';
+ formData.approvalOpinion = DEFAULT_APPROVAL_OPINION;
deptOptions.value = [];
showSuoleaderFields.value = false;
showDeadlineField.value = false;
@@ -203,6 +215,8 @@ import { SUOBAN_DEPT_ID, MEASURE_RES_LEADER_ROLE_ID } from '/@/constant/supervis
showUrgencyLevelField.value = !!data.showUrgencyLevelField;
// 急件标记只作为流程发起参数传出,不在弹窗内改写业务表数据。
formData.urgencyLevel = data.urgencyLevel ?? '0';
+ // 首节点自动完成时会使用该意见写入审批历史,默认值可由发起人修改。
+ formData.approvalOpinion = String(data.approvalOpinion || DEFAULT_APPROVAL_OPINION);
if (String(formData.isNeedAppro) !== '1') {
formData.supDeptleaderid = '';
}
@@ -244,6 +258,12 @@ import { SUOBAN_DEPT_ID, MEASURE_RES_LEADER_ROLE_ID } from '/@/constant/supervis
return;
}
+ const approvalOpinion = formData.approvalOpinion.trim();
+ if (!approvalOpinion) {
+ createMessage.warning('请输入审批意见');
+ return;
+ }
+
emit('confirm', {
payload: contextData.value,
options: {
@@ -258,6 +278,7 @@ import { SUOBAN_DEPT_ID, MEASURE_RES_LEADER_ROLE_ID } from '/@/constant/supervis
supDeptleaderid: showSuoleaderFields.value ? (String(formData.isNeedAppro) === '1' ? formData.supDeptleaderid : '') : undefined,
deadline: showDeadlineField.value ? formData.deadline : undefined,
urgencyLevel: showUrgencyLevelField.value ? formData.urgencyLevel : undefined,
+ approvalOpinion,
},
});
handleCancel();
diff --git a/src/views/bg/bgpartymatter/BgPartymatterList.vue b/src/views/bg/bgpartymatter/BgPartymatterList.vue
index 5ea81e8..55cda8a 100644
--- a/src/views/bg/bgpartymatter/BgPartymatterList.vue
+++ b/src/views/bg/bgpartymatter/BgPartymatterList.vue
@@ -615,6 +615,8 @@
deadline: selectedDeadline,
// 发起流程时允许临时调整急件标记,仅写入流程变量和流程中间表。
urgencyLevel: selectedUrgencyLevel,
+ // 首节点自动完成时读取该字段写入审批历史。
+ startApprovalOpinion: options.approvalOpinion,
};
const params = {
diff --git a/src/views/bg/bqtakepulse/BgTakepulseList.vue b/src/views/bg/bqtakepulse/BgTakepulseList.vue
index 2ed2753..a5c6e2a 100644
--- a/src/views/bg/bqtakepulse/BgTakepulseList.vue
+++ b/src/views/bg/bqtakepulse/BgTakepulseList.vue
@@ -561,6 +561,8 @@
deadline: selectedDeadline,
// 紧急标记随本次流程发起传出,业务表只回写状态和督办次数。
urgencyLevel: selectedUrgencyLevel,
+ // 首节点自动完成时读取该字段写入审批历史。
+ startApprovalOpinion: options.approvalOpinion,
};
const params = {