diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/examineApplication.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/examineApplication.vue index 680f7522..a915ce28 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/examineApplication.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/examineApplication.vue @@ -86,7 +86,11 @@ - + + + @@ -159,7 +163,7 @@ currentDetail.patientName || '-' }} {{ - currentDetail.name || '-' + getItemName(currentDetail) }} {{ parseStatus(currentDetail.status) @@ -399,6 +403,28 @@ const parseStatus = (status) => { return statusMap[String(status)] || '-'; }; +/** + * 获取申请单展示名称:优先使用具体医嘱名称列表 + */ +const getItemName = (row) => { + const items = row?.requestFormDetailList; + if (items && items.length > 0) { + return items.map(item => item.adviceName).filter(Boolean).join('、') || row.name || '-'; + } + return row.name || '-'; +}; + +/** + * 构建打印用项目名称字符串(同步函数,用于模板字符串) + */ +const buildItemNames = (row) => { + const items = row?.requestFormDetailList; + if (items && items.length > 0) { + return items.map(item => item.adviceName).filter(Boolean).join('、') || row.name || ''; + } + return row.name || ''; +}; + const labelMap = { categoryType: '项目类别', targetDepartment: '发往科室', @@ -651,7 +677,7 @@ const buildPrintContent = (row) => { return `

检查申请单

患者姓名:${row.patientName || '-'}
-
申请单名称:${row.name || '-'}
+
申请单名称:${buildItemNames(row) || '-'}
创建时间:${row.createTime || '-'}
处方号:${row.prescriptionNo || '-'}
申请者:${row.requesterId_dictText || '-'}