From 18396c1c84d223ccc402e9f743f2b744a1e3fde0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 27 Feb 2024 13:14:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/components/visitRecords.vue | 44 ++---- src/views/manage/details/patientdetails.vue | 7 +- src/views/manage/patientInfo/index.vue | 151 ++++++++++++------- 3 files changed, 109 insertions(+), 93 deletions(-) diff --git a/src/views/manage/components/visitRecords.vue b/src/views/manage/components/visitRecords.vue index 41e7ac0..11d3915 100644 --- a/src/views/manage/components/visitRecords.vue +++ b/src/views/manage/components/visitRecords.vue @@ -2,11 +2,9 @@
- - - - + +
Date.now(); //禁止选择今天以后的时间 }, }, + visitDate: [], //右侧标题选中 recordindex: undefined, //左侧类型选中 @@ -114,36 +113,10 @@ export default { }; }, watch: { - 'query.visitDateStart': { + 'visitDate': { handler(newValue, oldValue) { - var pastDate = new Date(newValue) - var pastYear = pastDate.getFullYear() - var pastMonth = pastDate.getMonth() + 1 - var pastDay = pastDate.getDate() - if (pastMonth >= 1 && pastMonth <= 9) { - pastMonth = '0' + pastMonth - } - if (pastDay >= 0 && pastDay <= 9) { - pastDay = '0' + pastDay - } - this.query.visitDateStart = pastYear + '-' + pastMonth + '-' + pastDay - this.getListinfo(); - }, - deep: true, - }, - 'query.visitDateEnd': { - handler(newValue, oldValue) { - var pastDate = new Date(newValue) - var pastYear = pastDate.getFullYear() - var pastMonth = pastDate.getMonth() + 1 - var pastDay = pastDate.getDate() - if (pastMonth >= 1 && pastMonth <= 9) { - pastMonth = '0' + pastMonth - } - if (pastDay >= 0 && pastDay <= 9) { - pastDay = '0' + pastDay - } - this.query.visitDateEnd = pastYear + '-' + pastMonth + '-' + pastDay + this.query.visitDateStart = newValue[0] + this.query.visitDateEnd = newValue[1] this.getListinfo(); }, deep: true, @@ -225,8 +198,9 @@ export default { if (pastDay >= 0 && pastDay <= 9) { pastDay = '0' + pastDay } + this.visitDate = [pastYear + '-' + pastMonth + '-' + pastDay, year + seperator1 + month + seperator1 + strDate] this.query.visitDateStart = pastYear + '-' + pastMonth + '-' + pastDay - this.query.visitDateEnd = year + seperator1 + month + seperator1 + strDate; + this.query.visitDateEnd = year + seperator1 + month + seperator1 + strDate this.query.patientId = this.$route.query.patientId this.getListinfo(); }, diff --git a/src/views/manage/details/patientdetails.vue b/src/views/manage/details/patientdetails.vue index a8ba91b..d7bbcba 100644 --- a/src/views/manage/details/patientdetails.vue +++ b/src/views/manage/details/patientdetails.vue @@ -59,7 +59,9 @@ - 签约记录 + + +
@@ -69,6 +71,7 @@ import visitRecords from '../components/visitRecords.vue'; import healthEducation from '../components/healthEducation.vue'; import indicatorMonitoring from '../components/indicatorMonitoring.vue'; +import signingRecords from '../components/signingRecords.vue' export default { components: { //就诊记录 @@ -77,6 +80,8 @@ export default { healthEducation, //指标监测 indicatorMonitoring, + // 签约记录 + signingRecords, }, name: "patientdetails", data() { diff --git a/src/views/manage/patientInfo/index.vue b/src/views/manage/patientInfo/index.vue index 64bf415..fbba5ca 100644 --- a/src/views/manage/patientInfo/index.vue +++ b/src/views/manage/patientInfo/index.vue @@ -1,6 +1,6 @@