diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/testApplication.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/testApplication.vue index 25d741f8..7e6f764b 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/testApplication.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/testApplication.vue @@ -529,7 +529,13 @@ const handleViewDetail = async (row) => { if (row.descJson) { try { 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 = '普通'; else if (obj.applicationType === 1) obj.applicationType = '急诊';