增加左侧身份证查询
This commit is contained in:
parent
c699ff2425
commit
151622972e
@ -41,7 +41,7 @@
|
||||
<div class="search-box medical-sn-search">
|
||||
<input
|
||||
v-model="searchQuery"
|
||||
placeholder="请输入姓名或体检编号"
|
||||
placeholder="请输入姓名/体检编号/身份证"
|
||||
@input="handleLocalSearch"
|
||||
/>
|
||||
</div>
|
||||
@ -65,6 +65,7 @@
|
||||
{{ getStatusText(patient) }}
|
||||
</el-tag>
|
||||
</div>
|
||||
<!--<span class="card-id">{{ patient.cardId }}</span>-->
|
||||
</div>
|
||||
<!-- 将分页组件移到list-content外部底部 -->
|
||||
<div class="pagination-container">
|
||||
@ -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;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user