fix(xispeak): 修复经办人反馈流程deptHandlerName为空及反馈弹窗问题

- handleFlowScheduleConfirm从record.approveInfo直接取implUserNameList和approverId,不再错误查询反馈记录
- 反馈弹窗保存时不再覆盖反馈人和部门(移除handleOk中的applyCurrentUserFeedbackInfo)
- 反馈弹窗label样式对齐主表单
- 更新节点权限文档中的URL示例

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wsm
2026-05-26 18:43:23 +08:00
co-authored by Claude Opus 4.7
parent 6703104e85
commit 326032c62b
3 changed files with 38 additions and 33 deletions
@@ -176,11 +176,15 @@
nextTick(() => formRef.value?.clearValidate?.());
}
function open(mainId: string, secretLevel?: string | number, bpmProcessId = '') {
function open(mainId: string, secretLevel?: string | number, bpmProcessId = '', defaultDeptId = '', defaultDeptName = '') {
resetForm(mainId, bpmProcessId);
isEdit.value = false;
uploadSecretLevel.value = normalizeSecretLevel(secretLevel);
void applyCurrentUserFeedbackInfo();
if (defaultDeptId) {
void applyCurrentUserFeedbackInfo(defaultDeptId, defaultDeptName);
} else {
void applyCurrentUserFeedbackInfo();
}
visible.value = true;
}
@@ -225,13 +229,18 @@
};
}
async function applyCurrentUserFeedbackInfo() {
async function applyCurrentUserFeedbackInfo(defaultDeptId = '', defaultDeptName = '') {
const userInfo = (userStore.getUserInfo || {}) as Record<string, any>;
formData.responPersonid = userInfo.id || userInfo.userId || '';
formData.responPersonname = userInfo.realname || '';
const departInfo = await getCurrentDepartInfo();
formData.responDeptid = departInfo.id;
formData.responDeptname = departInfo.departName;
if (defaultDeptId) {
formData.responDeptid = defaultDeptId;
formData.responDeptname = defaultDeptName || '';
} else {
const departInfo = await getCurrentDepartInfo();
formData.responDeptid = departInfo.id;
formData.responDeptname = departInfo.departName;
}
}
function handleDeptChange(value, row) {
@@ -252,7 +261,6 @@
}
saving.value = true;
try {
await applyCurrentUserFeedbackInfo();
if (!formData.id && uploadFileRef.value?.hasPendingFiles?.()) {
formData.id = buildUUID();
}
@@ -280,6 +288,18 @@
<style lang="less" scoped>
.bpm-feedback-modal-form {
padding: 12px 8px 0;
padding: 14px;
:deep(.ant-form-item-label) {
overflow: visible;
white-space: normal;
text-overflow: unset;
text-align: left;
> label {
justify-content: flex-start;
width: 100%;
}
}
}
</style>