Fix Bug #478: 住院医生工作站检验申请详情「发往科室」显示为- — 根因:getLocationInfo 未对科室ID做类型归一化,recursionFun 中 item.id == targetDepartment 在类型不一致时匹配失败;修复:新增 normalizeOrgTreeIds 统一转 String,recursionFun 改用 String(item.id) === String(targetDepartment)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -529,7 +529,13 @@ const handleViewDetail = async (row) => {
|
|||||||
if (row.descJson) {
|
if (row.descJson) {
|
||||||
try {
|
try {
|
||||||
const obj = JSON.parse(row.descJson);
|
const obj = JSON.parse(row.descJson);
|
||||||
obj.targetDepartment = recursionFun(obj.targetDepartment);
|
// 将发往科室 ID 转换为名称
|
||||||
|
if (obj.targetDepartment) {
|
||||||
|
const deptName = recursionFun(obj.targetDepartment);
|
||||||
|
if (deptName) {
|
||||||
|
obj.targetDepartment = deptName;
|
||||||
|
}
|
||||||
|
}
|
||||||
// 转换申请类型编码为可读文本
|
// 转换申请类型编码为可读文本
|
||||||
if (obj.applicationType === 0) obj.applicationType = '普通';
|
if (obj.applicationType === 0) obj.applicationType = '普通';
|
||||||
else if (obj.applicationType === 1) obj.applicationType = '急诊';
|
else if (obj.applicationType === 1) obj.applicationType = '急诊';
|
||||||
|
|||||||
Reference in New Issue
Block a user