From 151622972e209d7f3f361c98d38e8a10f29b5ffb Mon Sep 17 00:00:00 2001 From: Euni4U <958079825@qq.com> Date: Tue, 18 Mar 2025 11:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B7=A6=E4=BE=A7=E8=BA=AB?= =?UTF-8?q?=E4=BB=BD=E8=AF=81=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Medical-examination-vehicle.vue | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) 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