From 87155a1091d8bc8c44b90dd6e075700aed693061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BA=91?= <赵云@gentronhealth.com> Date: Wed, 13 May 2026 01:04:15 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#408:=20=E9=97=A8=E8=AF=8A=E5=8C=BB?= =?UTF-8?q?=E7=94=9F=E7=AB=99=EF=BC=9A=E6=A3=80=E6=9F=A5=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E9=A1=B5=EF=BC=9A=E9=80=89=E4=B8=AD=E6=A3=80=E6=9F=A5=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E8=AE=B0=E5=BD=95=E5=90=8E=EF=BC=8C"=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E6=98=8E=E7=BB=86"=E6=A0=87=E7=AD=BE=E9=A1=B5?= =?UTF-8?q?=E6=98=BE=E7=A4=BA"=E6=9A=82=E6=97=A0=E6=95=B0=E6=8D=AE"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:Axios拦截器已返回 res.data(AjaxResult体),handleRowClick 中再次执行 res.data 导致 d 被赋为 ExamApply 实体对象(不含 items),明细列表永远无法加载。 修复:通过 res.code 判断 res 是否已是 AjaxResult 体,避免二次解包。 --- .../components/examination/examinationApplication.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openhis-ui-vue3/src/views/doctorstation/components/examination/examinationApplication.vue b/openhis-ui-vue3/src/views/doctorstation/components/examination/examinationApplication.vue index f01a3f645..e0583b181 100755 --- a/openhis-ui-vue3/src/views/doctorstation/components/examination/examinationApplication.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/examination/examinationApplication.vue @@ -992,7 +992,9 @@ function handleRowClick(row) { selectedItems.value = []; activeDetailTab.value = 'applyForm'; request({ url: `/exam/apply/${row.applyNo}`, method: 'get' }).then(async res => { - const d = res.data || res; + // Axios interceptor already returns res.data (AjaxResult body: {code, data, items}) + // Don't double-unwrap: if res has 'code', use res directly; otherwise fall back to res.data + const d = (res && res.code !== undefined) ? res : (res.data || res); if (d.data) Object.assign(form, d.data); if (d.items && Array.isArray(d.items)) { try {