From 2f2f40a4374e454cc449ab59511501204b545f5e Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Thu, 26 Sep 2024 23:31:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=81=A5=E5=BA=B7=E6=A1=A3=E6=A1=88?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=86=85=E5=AE=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Navbar.vue | 2 +- src/router/index.js | 2 +- src/utils/request.js | 2 +- src/views/health/doctorRecord/index.vue | 16 +- src/views/health/healthRecord/index.vue | 238 ++++++++++++++++++- src/views/health/marRecord/index.vue | 16 +- src/views/health/temperatureRecord/index.vue | 27 ++- src/views/health/weightRecord/index.vue | 15 +- vite.config.js | 6 +- 9 files changed, 296 insertions(+), 28 deletions(-) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index a5b72cb..a94a240 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -82,7 +82,7 @@ function logout() { }) .then(() => { userStore.logOut().then(() => { - location.href = '/intc/index' + location.href = '/health/index' }) }) .catch(() => {}) diff --git a/src/router/index.js b/src/router/index.js index 64ca3d1..c00130e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -179,7 +179,7 @@ export const dynamicRoutes = [ ] const router = createRouter({ - history: createWebHistory('/intc/'), + history: createWebHistory('/health/'), routes: constantRoutes, scrollBehavior(to, from, savedPosition) { if (savedPosition) { diff --git a/src/utils/request.js b/src/utils/request.js index 9f802b3..ce4d924 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -92,7 +92,7 @@ service.interceptors.response.use( useUserStore() .logOut() .then(() => { - location.href = '/intc/index' + location.href = '/health/index' }) }) .catch(() => { diff --git a/src/views/health/doctorRecord/index.vue b/src/views/health/doctorRecord/index.vue index a267991..54620ae 100644 --- a/src/views/health/doctorRecord/index.vue +++ b/src/views/health/doctorRecord/index.vue @@ -17,8 +17,8 @@ - - + +
@@ -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 diff --git a/src/views/health/healthRecord/index.vue b/src/views/health/healthRecord/index.vue index 62c8222..ab0daeb 100644 --- a/src/views/health/healthRecord/index.vue +++ b/src/views/health/healthRecord/index.vue @@ -26,6 +26,9 @@ + + +
搜索 @@ -103,7 +106,7 @@ - + @@ -132,17 +135,142 @@
+ + + 基本信息 + 就医信息 + 用药记录 + 体温记录 + +
+ + + 人员姓名:{{ basicInformation.personName }} + + + 档案名称:{{ basicInformation.name }} + + + 类型: + + + + + + 档案状态: + + + + 发生时间:{{ basicInformation.occurTime }} + + + 发生原因: + + + + + + 康复时间:{{ basicInformation.rehabilitationTime }} + + + + + 初期症状:{{ basicInformation.initialSymptoms }} + + + + + 中期症状:{{ basicInformation.mediumTermSymptoms }} + + + + + 后期症状:{{ basicInformation.laterStageSymptoms }} + + + + + 备注:{{ basicInformation.remark }} + + +
+
+
+
+ + + + + + + +
+
+
+
+
+
+ + + + + + + + + + +
+
+
+
+
+
+ + + + + + + +
+
+
+ +