fix: 健康管理系统,统计页面功能开发。
This commit is contained in:
@@ -4,10 +4,15 @@
|
||||
<div class="title">查询条件</div>
|
||||
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="100px">
|
||||
<el-form-item label="人员姓名" prop="personId">
|
||||
<el-select v-model="queryParams.personId" placeholder="请选择人员" clearable>
|
||||
<el-select v-model="queryParams.personId" placeholder="请选择人员姓名" clearable @change="handleQueryPersonChange">
|
||||
<el-option v-for="person in personList" :key="person.id" :label="person.name" :value="person.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="健康档案" prop="healthRecordId">
|
||||
<el-select v-model="queryParams.healthRecordId" placeholder="请选择健康档案" clearable>
|
||||
<el-option v-for="health in healthRecordList" :key="health.id" :label="health.name" :value="health.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="医院名称" prop="hospitalName">
|
||||
<el-input v-model="queryParams.hospitalName" placeholder="请输入医院名称" clearable @keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
@@ -390,6 +395,13 @@ const handlePersonChange = (personId) => {
|
||||
}
|
||||
})
|
||||
}
|
||||
const handleQueryPersonChange = (personId) => {
|
||||
queryHealthRecordParams.personId = personId
|
||||
queryParams.value.healthRecordId = null
|
||||
listHealthRecord(queryHealthRecordParams).then((response) => {
|
||||
healthRecordList.value = response.rows
|
||||
})
|
||||
}
|
||||
|
||||
const handleCountChange = (count) => {
|
||||
if (formDetail.value.price != null) {
|
||||
@@ -726,6 +738,11 @@ function getList() {
|
||||
function getPersonList() {
|
||||
listPerson(queryPersonParams.value).then((response) => {
|
||||
personList.value = response.rows
|
||||
if (response.rows.length > 0) {
|
||||
listHealthRecord(queryHealthRecordParams).then((res) => {
|
||||
healthRecordList.value = res.rows
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user