From e78a32a5ecfccb156014e917fd6e0a17fd0f50ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=80=E5=BD=A7?= <荀彧@gentronhealth.com> Date: Wed, 13 May 2026 19:21:14 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#494:=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=E6=9F=A5?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=EF=BC=9A"=E7=94=B3=E8=AF=B7=E5=8D=95?= =?UTF-8?q?=E5=90=8D=E7=A7=B0"=E5=AD=97=E6=AE=B5=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=BA=E9=80=9A=E7=94=A8=E5=90=8D=E7=A7=B0=EF=BC=8C=E6=9C=AA?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=85=B7=E4=BD=93=E6=A3=80=E6=9F=A5=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:提交检查申请单时,applicationListAllFilter 的 map 映射未包含 adviceName 字段, 导致 name 构造为 undefined、undefined,保存到数据库为空字符串。 修复:改为从 applicationListAll(原始数据)中按 adviceDefinitionId 查找项目名称。 Co-Authored-By: Claude Opus 4.7 --- .../components/order/applicationForm/medicalExaminations.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/medicalExaminations.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/medicalExaminations.vue index c320f833d..dc5f4395f 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/medicalExaminations.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/medicalExaminations.vue @@ -483,7 +483,10 @@ const submit = () => { encounterId: patientInfo.value.encounterId, organizationId: patientInfo.value.inHospitalOrgId, requestFormId: '', - name: applicationListAllFilter.map(item => item.adviceName).join('、'), + name: transferValue.value.map(id => { + const item = applicationListAll.value?.find(i => i.adviceDefinitionId === id); + return item?.adviceName || ''; + }).filter(Boolean).join('、'), descJson: JSON.stringify(submitForm), categoryEnum: '2', }).then((res) => {