@@ -235,7 +239,8 @@ const searchParams = ref({
startDate: getCurrentDate(),
endDate: getCurrentDate(),
packageName: '',
- packageLevel: ''
+ packageLevel: '',
+ department: ''
});
// 过滤后的数据
@@ -251,6 +256,9 @@ const filteredData = computed(() => {
// 套餐级别筛选
if (searchParams.value.packageLevel && item.level !== searchParams.value.packageLevel) return false;
+ // 科室筛选
+ if (searchParams.value.department && item.department !== searchParams.value.department) return false;
+
return true;
});
});
@@ -281,7 +289,8 @@ function handleReset() {
startDate: getCurrentDate(),
endDate: getCurrentDate(),
packageName: '',
- packageLevel: ''
+ packageLevel: '',
+ department: ''
};
}
@@ -452,6 +461,14 @@ function convertToCSV(data) {
gap: 8px;
}
+.filter-item-department {
+ min-width: 280px;
+}
+
+.filter-item-department .el-tree-select {
+ width: 100%;
+}
+
.filter-item label {
font-size: 14px;
color: var(--text-secondary);
diff --git a/openhis-ui-vue3/src/views/maintainSystem/Inspection/index.vue b/openhis-ui-vue3/src/views/maintainSystem/Inspection/index.vue
index 3b88dd92..e77769b5 100644
--- a/openhis-ui-vue3/src/views/maintainSystem/Inspection/index.vue
+++ b/openhis-ui-vue3/src/views/maintainSystem/Inspection/index.vue
@@ -411,12 +411,22 @@
套餐级别
-
+
+
+
科室
@@ -468,47 +478,31 @@
@@ -848,6 +842,14 @@ function handleDepartmentChange(selectedNode, item) {
}
}
+// 处理套餐级别选择变化
+function handlePackageLevelChange(value) {
+ console.log('选择的套餐级别:', value);
+ if (value !== '科室套餐') {
+ department.value = '';
+ }
+}
+
// 处理套餐科室选择变化
function handlePackageDepartmentChange(selectedNode) {
console.log('选择的套餐科室节点:', selectedNode);
@@ -973,6 +975,11 @@ const resetFilters = () => {
// 套餐相关数据
const packageCategory = ref('检验套餐');
const packageLevel = ref('');
+const packageLevelOptions = ref([
+ { value: '全院套餐', label: '全院套餐' },
+ { value: '科室套餐', label: '科室套餐' },
+ { value: '个人套餐', label: '个人套餐' }
+]);
const packageName = ref('');
const department = ref('');
const discount = ref('');
@@ -2058,6 +2065,8 @@ watch(packageItems, (newVal) => {
flex: 1;
padding: 20px;
overflow-y: auto;
+ overflow-x: hidden;
+ max-width: 100%;
}
/* 页面标题 */
@@ -2407,6 +2416,8 @@ watch(packageItems, (newVal) => {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
padding: 16px;
margin-bottom: 16px;
+ max-width: 100%;
+ overflow-x: hidden;
}
.section-title {
@@ -2426,6 +2437,8 @@ watch(packageItems, (newVal) => {
.form-item {
display: flex;
align-items: center;
+ min-width: 0;
+ max-width: 100%;
}
.form-label {
@@ -2522,6 +2535,11 @@ watch(packageItems, (newVal) => {
border-radius: 4px;
padding: 0 8px;
font-size: 14px;
+ max-width: 100%;
+ min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
.form-control:focus {