feat(inspect): 新增默认审批意见和默认抄送人功能

- bpm-select-user 新增 value prop 支持初始值回显
- MyHandleContent/TaskHandleInnerContent 新增 defaultCc prop 透传默认抄送人
- DqInspectTaskBPMForm 按任务节点自动生成审批意见
- DqInspectTaskBPMForm 党群负责人收集后审批节点自动查询抄送人
- 所有新增 prop 均可选,不影响现有调用方

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wsm
2026-06-12 16:34:31 +08:00
co-authored by Claude Opus 4.7
parent 0852245789
commit 4dfcec4f39
4 changed files with 131 additions and 25 deletions
@@ -83,7 +83,7 @@
<!-- 抄送 -->
<a-list-item style="line-height: 32px" v-show="checkedCc">
<span>抄送给</span>
<bpm-select-user style="display: inline-block" placeholder="请选择抄送人" @change="handleSelectCcUser"></bpm-select-user>
<bpm-select-user style="display: inline-block" placeholder="请选择抄送人" :value="defaultCc" @change="handleSelectCcUser"></bpm-select-user>
</a-list-item>
</a-list>
@@ -187,7 +187,11 @@
defaultReason: {
type: String,
default: '',
}
},
defaultCc: {
type: Array,
default: () => [],
},
},
emits: ['success'],
setup(props, { emit }) {
@@ -288,6 +292,20 @@
ccPersonList.value = [];
}
watch(
() => props.defaultCc,
(val) => {
const list = (Array.isArray(val) ? val : []).filter((u) => u?.username);
if (!list.length) return;
checkedCc.value = true;
const usernames = list.map((u) => u.username);
const realnames = list.map((u) => u.realname);
model.ccUserIds = usernames.join(',');
model.ccUserRealNames = realnames.join(',');
},
{ immediate: true }
);
function changeReasonSelection(value) {
model.reason = value;
}