From ec89ead14c5e8329fc186f3a9bb926b532c23c8b Mon Sep 17 00:00:00 2001 From: guanyu Date: Wed, 29 Apr 2026 17:24:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D#456=E9=97=A8=E8=AF=8A?= =?UTF-8?q?=E5=8C=BB=E7=94=9F=E7=AB=99=E5=8C=BB=E5=98=B1=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=92=8C=E7=8A=B6=E6=80=81=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因: 处方列表组件中adviceTypes参数传递格式错误, 将单个adviceType值直接赋值给adviceTypes参数, 但后端期望List数组格式。 修复: 将adviceQueryParams.adviceTypes = value改为 adviceQueryParams.adviceTypes = [value],确保参数格式正确。 --- .../doctorstation/components/prescription/prescriptionlist.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue b/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue index 8d02ead1..cef0b090 100644 --- a/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue @@ -562,7 +562,7 @@ prescriptionList[scope.$index].minUnitQuantity = prescriptionList[scope.$index].quantity || 1; prescriptionList[scope.$index].minUnitCode = prescriptionList[scope.$index].unitCode; prescriptionList[scope.$index].minUnitCode_dictText = prescriptionList[scope.$index].unitCode_dictText; - adviceQueryParams.adviceTypes = value; // 🎯 修复:改为 adviceTypes(复数) + adviceQueryParams.adviceTypes = [value]; // 🎯 修复:改为 adviceTypes(复数) // 根据选择的类型设置categoryCode,用于药品分类筛选 if (value == 1) { // 西药