From 955c72af417eef99dd57818e0759b3cfc953e3cb Mon Sep 17 00:00:00 2001 From: zhaoyun Date: Tue, 19 May 2026 19:04:54 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#556:=20=E6=A0=B9=E5=9B=A0+?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B9=E6=A1=88=E6=91=98=E8=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/inspection/inspectionApplication.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openhis-ui-vue3/src/views/doctorstation/components/inspection/inspectionApplication.vue b/openhis-ui-vue3/src/views/doctorstation/components/inspection/inspectionApplication.vue index 0cb5e6c1..19229ff8 100755 --- a/openhis-ui-vue3/src/views/doctorstation/components/inspection/inspectionApplication.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/inspection/inspectionApplication.vue @@ -1185,9 +1185,9 @@ const loadCategoryItems = async (categoryKey, loadMore = false) => { // 映射数据格式(从检验项目维护页面的数据结构映射) const mappedItems = records.map(item => { - // 套餐项目处理:套餐项目使用套餐金额,普通项目使用零售价 - // BugFix#404: 增加对空字符串的判断,避免空字符串被误认为有效套餐ID - const isPackage = item.feePackageId != null && item.feePackageId !== '' && item.feePackageId !== 'null' + // 套餐项目处理:需同时满足 feePackageId 有效且 packageName 非空 + // BugFix#556: 增加 packageName 联合判断,避免普通项目因 feePackageId 有值被误标为套餐 + const isPackage = item.feePackageId != null && item.feePackageId !== '' && item.feePackageId !== 'null' && item.packageName const itemPrice = isPackage ? (parseFloat(item.packageAmount || 0) || parseFloat(item.retailPrice || 0) || parseFloat(item.price || 0)) : (parseFloat(item.retailPrice || 0) || parseFloat(item.price || 0))