From d61373593ee883947507ab71d6228afd77820d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BA=91?= <赵云@gentronhealth.com> Date: Mon, 11 May 2026 14:08:53 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#453:=20=E4=BD=8F=E9=99=A2=E5=8C=BB?= =?UTF-8?q?=E7=94=9F=E7=AB=99-=E4=B8=B4=E5=BA=8A=E5=8C=BB=E5=98=B1?= =?UTF-8?q?=EF=BC=9A=E5=BC=80=E7=AB=8B=E5=8C=BB=E5=98=B1=E6=97=B6=E8=BE=93?= =?UTF-8?q?=E5=85=A5"=E7=BA=A7=E6=8A=A4=E7=90=86"=E6=A3=80=E7=B4=A2?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E6=98=BE=E7=A4=BA"=E6=9A=82=E6=97=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:新行未选医嘱类型时,adviceType为undefined,handleFocus回退为默认值1(药品) 并携带categoryCode='2'(西药),导致searchKey为空时仅搜索西药库,护理项目被过滤 修复:refresh函数新增adviceType为空时的跨类型搜索分支,同时清空categoryCode 避免按药品分类过滤导致诊疗类护理项目被排除 Co-Authored-By: Claude Opus 4.7 --- .../inpatientDoctor/home/components/adviceBaseList.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/adviceBaseList.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/adviceBaseList.vue index 3802ebda..c447ddfa 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/adviceBaseList.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/adviceBaseList.vue @@ -86,14 +86,14 @@ const tableColumns = computed(() => [ * @param searchKey 搜索关键词 */ function refresh(adviceType: any, categoryCode: string, searchKey: string) { - // 有搜索词时跨类型搜索,避免用户输入"级护理"但因当前adviceType为药品而搜不到诊疗类护理项目 - if (searchKey) { + // 有搜索词时跨类型搜索,或adviceType为空时也跨类型搜索(新行未选类型时默认搜全部),避免用户输入"级护理"但因当前adviceType为药品而搜不到诊疗类护理项目 + if (searchKey || adviceType === undefined || adviceType === '') { queryParams.value.adviceTypes = '1,2,3,6'; + queryParams.value.categoryCode = ''; } else { - queryParams.value.adviceTypes = - adviceType !== undefined && adviceType !== '' ? String(adviceType) : '1,2,3,6'; + queryParams.value.adviceTypes = String(adviceType); + queryParams.value.categoryCode = categoryCode || ''; } - queryParams.value.categoryCode = categoryCode || ''; queryParams.value.searchKey = searchKey || ''; getList(); }