From 814f9561feeb4ab8a5392401b9b9f06ae26c0be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BA=91?= <赵云@gentronhealth.com> Date: Fri, 8 May 2026 14:05:49 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#467:=20=E4=BD=8F=E9=99=A2=E5=8C=BB?= =?UTF-8?q?=E7=94=9F=E5=B7=A5=E4=BD=9C=E7=AB=99=E6=A3=80=E9=AA=8C=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E5=88=97=E8=A1=A8=E6=98=BE=E7=A4=BA=E4=B8=8D=E8=A7=84?= =?UTF-8?q?=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复检验申请列表未合并同名申请单明细的问题:getInspectionList 中调用 mergeInspectionApplyRecords 合并数据 - 确保单据名称展示具体检验项目(多个项目用"+"拼接),而非统一显示"检验申请单" Co-Authored-By: Claude Opus 4.7 --- .../components/inspection/inspectionApplication.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openhis-ui-vue3/src/views/doctorstation/components/inspection/inspectionApplication.vue b/openhis-ui-vue3/src/views/doctorstation/components/inspection/inspectionApplication.vue index b4be8325..6e17e4f1 100755 --- a/openhis-ui-vue3/src/views/doctorstation/components/inspection/inspectionApplication.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/inspection/inspectionApplication.vue @@ -1373,13 +1373,13 @@ const getInspectionList = () => { // 如果返回的是分页对象 {records: [...], total: 100} if (Array.isArray(res.data.records)) { // 直接使用后端返回的数据(后端已按申请单返回,无需合并) - inspectionList.value = res.data.records + inspectionList.value = mergeInspectionApplyRecords(res.data.records) total.value = res.data.total || res.data.records.length } // 如果返回的是普通数组 else if (Array.isArray(res.data)) { - // 直接使用后端返回的数据 - inspectionList.value = res.data + // 合并同一个申请单的明细 + inspectionList.value = mergeInspectionApplyRecords(res.data) total.value = res.data.length } // 如果返回的是其他对象结构