From 2f9dd2b1df357fcf980487d5bc3d56c615b5e66c Mon Sep 17 00:00:00 2001 From: zhaoyun Date: Mon, 18 May 2026 14:19:00 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#542:=20=E8=A1=A5=E8=B4=B9=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E8=80=97=E6=9D=90=E7=B1=BB=E5=9E=8B=E6=A3=80=E7=B4=A2?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E6=95=B0=E6=8D=AE=20=E2=80=94=20=E6=A0=B9?= =?UTF-8?q?=E5=9B=A0=EF=BC=9Adrord=5Fdoctor=5Ftype=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E4=B8=AD=E8=80=97=E6=9D=90=E5=80=BC=3D4=E4=BD=86=E5=90=8E?= =?UTF-8?q?=E7=AB=AFSQL=E6=9F=A5=E8=AF=A2adviceTypes.contains(2)=E4=BB=85?= =?UTF-8?q?=E5=8C=B9=E9=85=8D2=EF=BC=9B=E4=BF=AE=E5=A4=8D=EF=BC=9Afilter?= =?UTF-8?q?=E6=89=A9=E5=B1=95=E4=B8=BA2/3/4=E5=B9=B6=E9=80=9A=E8=BF=87map?= =?UTF-8?q?=E5=B0=86=E5=AD=97=E5=85=B8=E5=80=BC4=E6=98=A0=E5=B0=84?= =?UTF-8?q?=E4=B8=BA2=EF=BC=8C=E4=BD=BF=E5=89=8D=E7=AB=AF=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=9A=84=E8=80=97=E6=9D=90=E7=B1=BB=E5=9E=8B(adviceTy?= =?UTF-8?q?pe=3D2)=E4=B8=8E=E5=90=8E=E7=AB=AFSQL=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- .../InpatientBilling/components/FeeDialog.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openhis-ui-vue3/src/views/inpatientNurse/InpatientBilling/components/FeeDialog.vue b/openhis-ui-vue3/src/views/inpatientNurse/InpatientBilling/components/FeeDialog.vue index cef47abb5..cba2c8946 100755 --- a/openhis-ui-vue3/src/views/inpatientNurse/InpatientBilling/components/FeeDialog.vue +++ b/openhis-ui-vue3/src/views/inpatientNurse/InpatientBilling/components/FeeDialog.vue @@ -342,13 +342,14 @@ const dialogVisible = computed({ // 使用 drord_doctor_type 字典 const adviceTypeList = computed(() => { if (drord_doctor_type.value && drord_doctor_type.value.length > 0) { - // 只保留耗材(4)和诊疗(3)类型,并添加全部选项 + // 只保留耗材(2)和诊疗(3)类型,并添加全部选项 + // 注意:后端SQL只认 adviceType=2(耗材) 和 3(诊疗),字典值4需映射为2 const filtered = drord_doctor_type.value.filter(item => { const val = parseInt(item.value); - return val === 3 || val === 4; + return val === 2 || val === 3 || val === 4; }).map(item => ({ label: item.label, - // 将前端字典值映射为后端SQL值: 耗材4→2, 诊疗3→3 + // 后端SQL只有adviceTypes.contains(2)查询耗材,字典值4映射为2 value: parseInt(item.value) === 4 ? 2 : parseInt(item.value) })); return [...filtered, { label: '全部', value: '' }];