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 6da8c8f51..5ede68657 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 @@ -82,7 +82,11 @@ - + + + @@ -137,7 +141,7 @@ {{ currentDetail.createTime || '-' }} - {{ + {{ currentDetail.prescriptionNo || '-' }} {{ @@ -339,6 +343,24 @@ const parseSpecimenType = (descJson) => { } }; +/** + * 根据申请单详情构建申请单名称 + * 单一项目:显示项目名称+数量 + * 多个项目:显示首个项目名称+数量+"等X项" + */ +const buildApplicationName = (row) => { + const details = row.requestFormDetailList; + if (!details || details.length === 0) { + return row.name || '-'; + } + if (details.length === 1) { + const item = details[0]; + return `${item.adviceName}${item.quantity || ''}`; + } + const first = details[0]; + return `${first.adviceName}${first.quantity || ''}等${details.length}项`; +}; + const isFieldMatched = (key) => { return key in labelMap; };