diff --git a/openhis-ui-vue3/src/views/doctorstation/components/examination/examinationApplication.vue b/openhis-ui-vue3/src/views/doctorstation/components/examination/examinationApplication.vue
index a2db1d4c..a9c07ce5 100644
--- a/openhis-ui-vue3/src/views/doctorstation/components/examination/examinationApplication.vue
+++ b/openhis-ui-vue3/src/views/doctorstation/components/examination/examinationApplication.vue
@@ -354,8 +354,25 @@
-
-
{{ detail.name }} 数量: {{ detail.quantity }} 单价: ¥{{ detail.price }}
selectMethodCheckbox(val, item, method)"> {{ method.name }} ¥{{ method.packagePrice || item.price }}
+
+
+
+
+
+ {{ detail.name }}
+ 数量: {{ detail.quantity }} 单价: ¥{{ detail.price }}
+
+
+
+
+
+ selectMethodCheckbox(val, item, method)">
+ {{ method.name }}
+ ¥{{ method.packagePrice || item.price }}
+
+
+
+
@@ -412,13 +429,39 @@ async function loadPackageDetails(row, treeNode, resolve) {
resolve(children);
} else {
resolve([]);
-async function loadPackageDetailsForItem(item) { if (!item.isPackage || !item.packageId) { return; } try { const res = await request({ url: `/exam/package/${item.packageId}/details`, method: 'get' }); if (res.code === 200 && res.data) { item.packageDetails = res.data.map(detail => ({ ...detail, name: detail.name || detail.itemName, unit: detail.unit || '次', price: detail.price || detail.itemPrice || 0, quantity: detail.quantity || 1 })); } else { item.packageDetails = []; } } catch (err) { console.error('加载套餐明细失败:', err); item.packageDetails = []; } }
}
} catch (err) {
console.error('加载套餐明细失败:', err);
resolve([]);
}
}
+
+// #428: 为已选择项目加载套餐明细
+async function loadPackageDetailsForItem(item) {
+ if (!item.isPackage || !item.packageId) {
+ return;
+ }
+ try {
+ const res = await request({
+ url: `/exam/package/${item.packageId}/details`,
+ method: 'get'
+ });
+ if (res.code === 200 && res.data) {
+ item.packageDetails = res.data.map(detail => ({
+ ...detail,
+ name: detail.name || detail.itemName,
+ unit: detail.unit || '次',
+ price: detail.price || detail.itemPrice || 0,
+ quantity: detail.quantity || 1
+ }));
+ } else {
+ item.packageDetails = [];
+ }
+ } catch (err) {
+ console.error('加载套餐明细失败:', err);
+ item.packageDetails = [];
+ }
+}
const detailTableRef = ref(null);
const formRef = ref(null);