diff --git a/public/index.html b/public/index.html index e212c1a..7c580f6 100644 --- a/public/index.html +++ b/public/index.html @@ -39,8 +39,8 @@ <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %> <% } %> diff --git a/src/page-subspecialty/views/modules/nurseManagement/reservation/schedule/addPatientOrder.vue b/src/page-subspecialty/views/modules/nurseManagement/reservation/schedule/addPatientOrder.vue index fb85dab..37d51bc 100644 --- a/src/page-subspecialty/views/modules/nurseManagement/reservation/schedule/addPatientOrder.vue +++ b/src/page-subspecialty/views/modules/nurseManagement/reservation/schedule/addPatientOrder.vue @@ -31,11 +31,11 @@ 患者类型: - - - - - + + + + + @@ -64,29 +64,11 @@ OU - - - - - - - - - - - - - - - - - -
项目:
- + @@ -99,7 +81,7 @@
准备工作:
- + @@ -170,16 +152,14 @@ export default { patientInfo: null, form: { patientId: '', - patientType: [], + source: '', + project: [], + preparation: [], doctorName: '', - yzOpen: '', remark: '', doctorId: '', eyeType: '', otherProject: '', - pupilDilate: '', - pupilShrink: '', - threeMirror: '', date1: '', date2: '' }, @@ -213,23 +193,24 @@ export default { }, created() { this.getDoctorList() + }, + mounted() { if (this.patientDetail) { this.form.patientId = this.patientDetail.patientId this.form.doctorId = this.patientDetail.doctorId this.form.doctorName = this.patientDetail.doctorName this.form.eyeType = this.patientDetail.eyeType - this.form.pupilDilate = this.patientDetail.pupilDilate - this.form.pupilShrink = this.patientDetail.pupilShrink + this.form.project = this.patientDetail.project.split(',') + this.form.preparation = this.patientDetail.preparation.split(',') this.form.remark = this.patientDetail.remark - this.form.yzOpen = this.patientDetail.yzOpen + this.form.otherProject = this.patientDetail.otherProject + this.form.source = this.patientDetail.source if (this.patientDetail.appointDate) { this.form.date1 = this.patientDetail.appointDate.split(' ')[0] this.form.date2 = this.patientDetail.appointDate.split(' ')[1].substring(0, 5) } this.patientInfo = this.patientDetail } - }, - mounted() { if (this.orderDetail) { this.form.date1 = this.orderDetail.date if (this.morOrAft === 1) { @@ -270,11 +251,13 @@ export default { }, // 确认提交 handleSave() { - if (!this.isEdit) { - this.$refs.addPatientForm.validate((valid) => { - if (!valid) { - return false - } + this.$refs.addPatientForm.validate((valid) => { + if (!valid) { + return false + } + this.form.project = this.form.project.join(',') + this.form.preparation = this.form.preparation.join(',') + if (!this.isEdit) { const params = { appointDate: `${this.form.date1} ${this.form.date2}:00`, patientName: this.patientInfo.patientName, @@ -292,21 +275,21 @@ export default { this.$emit('updateAppoint') this.visible = false }) - }) - } else { - const params = { - appointDate: `${this.form.date1} ${this.form.date2}:00`, - patientName: this.patientDetail.patientName, - id: this.patientDetail.id, - itemId: this.patientDetail.itemId, - ...this.form + } else { + const params = { + appointDate: `${this.form.date1} ${this.form.date2}:00`, + patientName: this.patientDetail.patientName, + id: this.patientDetail.id, + itemId: this.patientDetail.itemId, + ...this.form + } + this.$http.post('/appoint/updateAppointInfo', params).then(() => { + this.$message.success('修改成功') + this.$emit('updateAppoint') + this.visible = false + }) } - this.$http.post('/appoint/updateAppointInfo', params).then(() => { - this.$message.success('修改成功') - this.$emit('updateAppoint') - this.visible = false - }) - } + }) }, // 关闭弹框 closeDialog() { diff --git a/src/page-subspecialty/views/modules/nurseManagement/reservation/subList/index.vue b/src/page-subspecialty/views/modules/nurseManagement/reservation/subList/index.vue index a86b49c..6c640cd 100644 --- a/src/page-subspecialty/views/modules/nurseManagement/reservation/subList/index.vue +++ b/src/page-subspecialty/views/modules/nurseManagement/reservation/subList/index.vue @@ -91,7 +91,7 @@ {{ scope.row.appointDate ? scope.row.appointDate : '-' }} - +