From bc12cc1b08e07c94eb0ec350718f8360dc4e59f5 Mon Sep 17 00:00:00 2001 From: chenqi Date: Thu, 12 Mar 2026 18:05:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(charge):=20=E4=BF=AE=E5=A4=8D=E7=94=A8?= =?UTF-8?q?=E6=B3=95=E7=BB=91=E5=AE=9A=E8=80=97=E6=9D=90=E9=97=A8=E8=AF=8A?= =?UTF-8?q?=E6=94=B6=E8=B4=B9=E6=9C=AA=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(Bug=20#145)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/prescription/prescriptionlist.vue | 7 +++++++ 1 file changed, 7 insertions(+) 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 f23aad91..7816fed5 100644 --- a/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue @@ -1982,6 +1982,13 @@ function handleOrderBindInfo(bindIdInfo) { }); list?.forEach((item) => { + // 🔧 Bug #145 修复:确保用法绑定的耗材 adviceType 为 4(前端耗材类型值) + // 后端返回的 adviceType=2,但前端统一使用 4 表示耗材 + // 必须在 setValue 之前修改,确保 setValue 方法走耗材处理逻辑 + if (item.adviceType === 2) { + item.adviceType = 4; + } + rowIndex.value = prescriptionList.value.length; setValue(item);