diff --git a/openhis-ui-vue3/src/views/clinicmanagement/infusionrecord/index.vue b/openhis-ui-vue3/src/views/clinicmanagement/infusionrecord/index.vue
index 5554a0c5..f5f8cc94 100644
--- a/openhis-ui-vue3/src/views/clinicmanagement/infusionrecord/index.vue
+++ b/openhis-ui-vue3/src/views/clinicmanagement/infusionrecord/index.vue
@@ -201,7 +201,7 @@
-
+
{
infusionList.value = response.data;
});
- listPatientInfusionPerformRecord(createTimeSTime, createTimeETime).then(
- (response) => {
+ listPatientInfusionPerformRecord(createTimeSTime, createTimeETime).then((response) => {
historyRecordsList.value = response.data;
}
);
@@ -456,10 +455,9 @@ function handleSelectionChange(selection) {
selection.forEach((item) => {
selectedItems.value.add(item);
});
- // 更新 selectedGroupIds 和 selectedPrescriptionNos
+ // 更新 selectedGroupIds
selection.forEach((item) => {
const groupId = item.groupId;
- const prescriptionNo = item.prescriptionNo;
// 检查 groupId 是否同时存在
if (selectedGroupIds.value.has(groupId)) {
// 如果都存在,则移除它们
@@ -476,16 +474,7 @@ function handleSelectionChange(selection) {
});
}
function clearSelections() {
- // // 清空选中状态
- // selectedItems.value.clear();
- // selectedGroupIds.value.clear();
- // selectedPrescriptionNos.value.clear();
- // // 取消表格所有行的选中状态
- // infusionList.value.forEach(row => {
- // tableRef.value.toggleRowSelection(row, false);
- // });
dateRangeRight.value = [];
- // 检查 currentRow.value 是否存在
if (!currentRow.value) {
const createTimeSTime = timeRightStart.value || null;
const createTimeETime = timeRightEnd.value || null;
@@ -519,6 +508,10 @@ function handleCurrentChange(row) {
console.log("当前选中行的数据:", currentRow.value);
listPatientInfusionRecord(currentRow.value).then((response) => {
infusionList.value = response.data;
+ // 统计每个 groupId 的行数
+ const groupCounts = countGroupRows(infusionList.value);
+ // 设置每行的标记
+ markers.value = getRowMarkers(groupCounts, infusionList.value);
});
listPatientInfusionPerformRecord(currentRow.value).then((response) => {
historyRecordsList.value = response.data;
@@ -544,6 +537,6 @@ getList();
}
:deep(.el-table tbody tr:hover > td) {
- background-color: unset !important;
+ background-color: inherit !important;
}
\ No newline at end of file