fix: 健康档案,修改内容。

This commit is contained in:
tianyongbao
2024-09-26 23:31:39 +08:00
parent 730d72591e
commit 2f2f40a437
9 changed files with 296 additions and 28 deletions

View File

@@ -17,8 +17,8 @@
<el-form-item label="大夫" prop="doctor">
<el-input v-model="queryParams.doctor" placeholder="请输入大夫" clearable @keyup.enter="handleQuery" />
</el-form-item>
<el-form-item label="就诊时间" prop="visitingTime">
<el-date-picker clearable v-model="queryParams.visitingTime" type="date" value-format="YYYY-MM-DD" placeholder="请选择就诊时间"> </el-date-picker>
<el-form-item label="就诊时间" prop="time">
<el-date-picker v-model="queryParams.time" type="daterange" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" />
</el-form-item>
</el-form>
<div class="search-btn-con">
@@ -106,6 +106,7 @@
import { listDoctorRecord, getDoctorRecord, delDoctorRecord, addDoctorRecord, updateDoctorRecord } from '@/api/health/doctorRecord'
import { listPerson, getPerson } from '@/api/health/person'
import { listHealthRecord } from '@/api/health/healthRecord'
import dayjs from 'dayjs'
// eslint-disable-next-line no-unused-vars
import { require } from '@/utils/require'
const { proxy } = getCurrentInstance()
@@ -135,7 +136,7 @@ const data = reactive({
departments: null,
doctor: null,
healthRecordId: null,
visitingTime: null,
time: '',
personId: null
},
queryPersonParams: {
@@ -189,6 +190,15 @@ const handlePersonChange = (personId) => {
/** 查询就医记录列表 */
function getList() {
loading.value = true
const timeRange = queryParams.value.time
let st = ''
let et = ''
if (timeRange && timeRange.length === 2) {
st = dayjs(timeRange[0]).format('YYYY-MM-DD')
et = dayjs(timeRange[1]).format('YYYY-MM-DD')
}
queryParams.value.startTime = st
queryParams.value.endTime = et
listDoctorRecord(queryParams.value).then((response) => {
doctorRecordList.value = response.rows
total.value = response.total