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
+5 -20
View File
@@ -637,28 +637,13 @@
return;
}
// 查询已有反馈记录,按部门获取处理人姓名
const deptHandlerMap = new Map<string, string>();
try {
const feedbackRes = await bgXiSpeakFeedbackList({ mainId: record.id, pageNo: 1, pageSize: 999 });
const feedbackRecords = feedbackRes?.records || feedbackRes?.result?.records || [];
for (const fb of feedbackRecords) {
const fbDeptIds = splitDeptValue(fb.responDeptid);
const handlerName = fb.responPersonname || '';
for (const fbDeptId of fbDeptIds) {
if (fbDeptId && handlerName && !deptHandlerMap.has(fbDeptId)) {
deptHandlerMap.set(fbDeptId, handlerName);
}
}
}
} catch (e) {
// 查询反馈失败则继续,deptHandlerName 留空
}
let successCount = 0;
const total = selectedDeptIds.length;
for (const deptId of selectedDeptIds) {
const deptDetail = record.approveInfo?.[deptId];
const implUserNameList: string[] = deptDetail?.implUserNameList || [];
const deptHandlerName = implUserNameList.join(',');
const params = {
intervalType: options.intervalType,
startCount: options.startCount,
@@ -678,8 +663,8 @@
content: record.implStatus,
urgencyLevel: record.completionStatus,
deptId: deptId,
deptLeaderId: deptId,
deptHandlerName: deptHandlerMap.get(deptId) || '',
deptLeaderId: deptDetail?.approverId || '',
deptHandlerName: deptHandlerName,
requireFinishDate: formatDate(record.time, 'YYYY-MM-DD'),
deadline: record.deadline || formatDate(record.time, 'YYYY-MM-DD'),
},