!13 fix(xispeak): 修复经办人反馈流程deptHandlerName为空及反馈弹窗问题
Merge pull request !13 from new_new_new/feature/20260526
This commit is contained in:
@@ -628,28 +628,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,
|
||||
@@ -669,8 +654,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