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 90bad516f..1c13f8494 100755 --- a/openhis-ui-vue3/src/views/doctorstation/components/inspection/inspectionApplication.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/inspection/inspectionApplication.vue @@ -1190,7 +1190,7 @@ const loadCategoryItems = async (categoryKey, loadMore = false) => { const mappedItems = records.map(item => { // 套餐项目处理:需同时满足 feePackageId 有效且 packageName 非空 // BugFix#556: 增加 packageName 联合判断,避免普通项目因 feePackageId 有值被误标为套餐 - const isPackage = item.feePackageId != null && item.feePackageId !== '' && item.feePackageId !== 'null' && item.packageName + const isPackage = Boolean(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)) @@ -1678,7 +1678,7 @@ const handleSave = () => { // Bug #326修复: 传入 activityId,后端直接使用 ID 关联,避免用名称反查 activityId: item.activityId || item.itemId || null, feePackageId: item.feePackageId || null, - isPackage: item.isPackage || false, + isPackage: Boolean(item.isPackage), sampleType: item.sampleType || '', unit: item.unit || '' }))