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 @@
-
+
+
+ {{ getYLProject(scope.row.zlProjectList) }}
+
+
@@ -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 @@
-
+
+
+ {{ getYLProject(scope.row.zlProjectList) }}
+
+
@@ -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 @@
-
-
+
+
+
+ {{ getYLProject(scope.row.zlProjectList) }}
+
+
@@ -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
})
},