From 72ed9ef7728d09a73054bb96bc0fb80db7bd0127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 26 Mar 2024 09:32:44 +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/preHospitalized/index.vue | 58 ++++++++++++++---- src/views/manage/visitin/index.vue | 59 +++++++++++++++---- src/views/manage/visitout/index.vue | 56 ++++++++++++++---- .../system/editorialSpecialization/index.vue | 2 +- 4 files changed, 136 insertions(+), 39 deletions(-) diff --git a/src/views/manage/preHospitalized/index.vue b/src/views/manage/preHospitalized/index.vue index e0d4426..2512ab7 100644 --- a/src/views/manage/preHospitalized/index.vue +++ b/src/views/manage/preHospitalized/index.vue @@ -60,6 +60,14 @@ + + + + + + - + - - - @@ -166,7 +170,7 @@ - + @@ -232,9 +236,6 @@ - - - @@ -262,6 +263,13 @@ + + + + + + @@ -374,6 +382,7 @@ diff --git a/src/views/manage/visitout/index.vue b/src/views/manage/visitout/index.vue index b81b487..3015e7e 100644 --- a/src/views/manage/visitout/index.vue +++ b/src/views/manage/visitout/index.vue @@ -60,6 +60,14 @@ + + + + + + @@ -68,10 +76,6 @@ - - - @@ -161,7 +165,7 @@ - + @@ -235,9 +239,6 @@ - - - @@ -265,6 +266,13 @@ + + + + + + @@ -404,12 +412,17 @@ import { listPatientInfo, getPatientInfo, delPatientInfo, addPatientInfo, update import { getAge } from "@/utils/age"; import { selectAgencyList, getDepartmentList, subordinateAgencyList } from "@/api/manage/selectAgencyList"; import { getToken } from '@/utils/auth' +import { usergetList } from "@/api/unitconfig/patientConfiguration"; export default { name: "visitout", dicts: ['patient_type', 'visit_method', 'sign_status', 'patient_source'], data() { return { + //医生 + attendingPhysicianlist: [], + //form-医生 + form_attendingPhysicianlist: [], //医院list hospitalAgencylist: [], // 院区list @@ -652,18 +665,21 @@ export default { } else if (this.form.visitMethod == 'OUTPATIENT_SERVICE') { this.form.patientType = 'OUTPATIENT' } - if (this.form.hospitalAgencyId) { + if (this.form.hospitalAgencyId && this.hospitalAgencylist.length > 0) { this.form.hospitalAgencyName = this.hospitalAgencylist.find(e => e.id == this.form.hospitalAgencyId).agencyName } - if (this.form.campusAgencyId) { + if (this.form.campusAgencyId && this.form_campusAgencylist.length > 0) { this.form.campusAgencyName = this.form_campusAgencylist.find(e => e.id == this.form.campusAgencyId).agencyName } - if (this.form.departmentId) { + if (this.form.departmentId && this.form_departmentlist.length > 0) { this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId).departmentName } - if (this.form.hospitalAgencyId) { + if (this.form.hospitalAgencyId && this.form_wardlist.length > 0) { this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId).departmentName } + if (this.form.attendingPhysicianId && this.form_attendingPhysicianlist.length > 0) { + this.form.attendingPhysicianName = this.form_attendingPhysicianlist.find(e => e.userId == this.form.attendingPhysicianId).nickName + } this.$refs["form"].validate(valid => { if (valid) { if (this.form.id != null) { @@ -748,16 +764,32 @@ export default { this.form.campusAgencyId = null this.form.departmentId = null this.form.wardId = null + this.form.attendingPhysicianId = null } } else { this.campusAgencylist = res.data this.queryParams.campusAgencyId = null this.queryParams.departmentId = null this.queryParams.wardId = null + this.queryParams.attendingPhysicianId = null } }) + this.usergetListinfo(id, type) this.changecampusAgency(id, type, typetwo) }, + //主治医生 + usergetListinfo(id, type) { + usergetList({ + agencyId: id, + postName: 'DOCTOR' + }).then(res => { + if (type) { + this.form_attendingPhysicianlist = res.data + } else { + this.attendingPhysicianlist = res.data + } + }) + }, //选中院区获取科室 changecampusAgency(id, type, typetwo) { let query = { diff --git a/src/views/system/editorialSpecialization/index.vue b/src/views/system/editorialSpecialization/index.vue index 7f8fa0c..6f97b62 100644 --- a/src/views/system/editorialSpecialization/index.vue +++ b/src/views/system/editorialSpecialization/index.vue @@ -9,7 +9,7 @@ - +