From f53704936647a90adf30b837aa947d6e1f558cc3 Mon Sep 17 00:00:00 2001 From: bianyaqi Date: Tue, 11 Apr 2023 15:05:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=82=A3=E8=80=85=E9=A1=B5?= =?UTF-8?q?=E5=92=8C=E5=88=97=E8=A1=A8=E7=9B=B8=E5=85=B3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../optometryManagement/dioptric/index.vue | 15 +++++++++-- .../dioptric/patient-add-or-update.vue | 25 +++++++++++++------ .../outpatientManagement/call/index.vue | 16 ++++++++++-- .../call/patient-add-or-update.vue | 25 +++++++++++++------ .../outpatientManagement/treat/index.vue | 17 ++++++++++--- .../treat/patient-add-or-update.vue | 25 +++++++++++++------ 6 files changed, 92 insertions(+), 31 deletions(-) diff --git a/src/page-subspecialty/views/modules/optometryManagement/dioptric/index.vue b/src/page-subspecialty/views/modules/optometryManagement/dioptric/index.vue index e4d7127..82df5a1 100644 --- a/src/page-subspecialty/views/modules/optometryManagement/dioptric/index.vue +++ b/src/page-subspecialty/views/modules/optometryManagement/dioptric/index.vue @@ -76,7 +76,11 @@ - + + + @@ -110,7 +114,7 @@ - + @@ -246,6 +250,13 @@ export default { } }, methods: { + getYLProject(list) { + if (!list.length) { + return + } + const projects = list.map(item => item.porjectName).join('、') + return projects + }, // 日期改变时 dateChange(e) { this.dataForm.beginDate = e ? e[0] : '' diff --git a/src/page-subspecialty/views/modules/optometryManagement/dioptric/patient-add-or-update.vue b/src/page-subspecialty/views/modules/optometryManagement/dioptric/patient-add-or-update.vue index 56e7d11..5654b58 100644 --- a/src/page-subspecialty/views/modules/optometryManagement/dioptric/patient-add-or-update.vue +++ b/src/page-subspecialty/views/modules/optometryManagement/dioptric/patient-add-or-update.vue @@ -42,7 +42,7 @@ - + + + @@ -110,7 +114,7 @@ - + @@ -246,6 +250,14 @@ export default { created() { }, methods: { + // 医疗项目拼接 + getYLProject(list) { + if (!list.length) { + return + } + const projects = list.map(item => item.porjectName).join('、') + return projects + }, // HIS引入事件 getHisData(val) { this.addOrUpdateHandle('', { ...val }, 'HIS引入') diff --git a/src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue b/src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue index f4dffff..fb33cac 100644 --- a/src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue +++ b/src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue @@ -42,7 +42,7 @@ - - + + + + @@ -110,7 +114,7 @@ - + @@ -252,6 +256,13 @@ export default { this.isShowPatient = !(this.$route.matched.length > 2) }, methods: { + getYLProject(list) { + if (!list.length) { + return + } + const projects = list.map(item => item.porjectName).join('、') + return projects + }, getHisData(val) { this.addOrUpdateHandle('', { ...val }, 'HIS引入') }, diff --git a/src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue b/src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue index a4fd6a0..17025e7 100644 --- a/src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue +++ b/src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue @@ -42,7 +42,7 @@ [] + }, + platform: { + type: Number } }, data() { @@ -119,7 +122,8 @@ export default { { name: '双眼', value: 'ou' } ], params: {}, - doctorList: [], + mzDoctorList: [], + sgDoctorList: [], projectList: [] } }, @@ -150,7 +154,8 @@ export default { methods: { init() { this.visible = true - this.getDoctorList() + this.getDoctorList('视光医生') + this.getDoctorList('门诊医生') this.getProject() this.$nextTick(() => { this.$refs.dataForm.resetFields() // 重置表单 @@ -165,15 +170,19 @@ export default { }) }, // 获取医师列表 - getDoctorList() { - this.$http.get('/sys/user').then(data => { - this.doctorList = data.data.data + getDoctorList(val) { + this.$http.get('/sys/user', { params: { position: val }}).then(data => { + if (val === '视光医生') { + this.sgDoctorList = data.data.data + } else { + this.mzDoctorList = data.data.data + } this.dataForm.sgDoctorId = JSON.parse(window.localStorage.getItem('qg-userData')).employeeId }) }, // 获取项目列表 getProject() { - this.$http.get('/patient/getZlItemDict').then(data => { + this.$http.get('/patient/getZlItemDict', { params: { type: this.platform }}).then(data => { this.projectList = data.data.data }) },