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:
@@ -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'),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user