diff --git a/src/views/Department-entry/Medical-examination-vehicle.vue b/src/views/Department-entry/Medical-examination-vehicle.vue index 1d357df..315defe 100644 --- a/src/views/Department-entry/Medical-examination-vehicle.vue +++ b/src/views/Department-entry/Medical-examination-vehicle.vue @@ -41,7 +41,7 @@ @@ -65,6 +65,7 @@ {{ getStatusText(patient) }} +
@@ -482,9 +483,8 @@ const handleLocalSearch = async () => { const params = { pageNo: pageNo.value, pageSize: pageSize.value, - // 添加搜索条件,根据姓名或体检编号搜索 - pname: searchQuery.value, - medicalSn: searchQuery.value + // 使用或条件搜索 + searchKey: searchQuery.value // 使用统一的搜索关键字字段 } const res = await PatientApi.getPatientPage(params) @@ -1791,7 +1791,8 @@ const filteredPatients = computed(() => { const query = searchQuery.value.toLowerCase() result = result.filter(patient => (patient.pname && patient.pname.toLowerCase().includes(query)) || - (patient.medicalSn && patient.medicalSn.toLowerCase().includes(query)) + (patient.medicalSn && patient.medicalSn.toLowerCase().includes(query)) || + (patient.cardId && patient.cardId.toLowerCase().includes(query)) ) } @@ -2831,4 +2832,14 @@ cursor: not-allowed; width: auto; min-width: 180px; } + +.card-id { + color: #909399; + font-size: 12px; + padding-left: 15px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + display: block; +} \ No newline at end of file