diff --git a/public/index.html b/public/index.html index b7dc2f6..41857cc 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/optometryManagement/seeDoctor/first-visit/index.vue b/src/page-subspecialty/views/modules/optometryManagement/seeDoctor/first-visit/index.vue index 829cb29..a283749 100644 --- a/src/page-subspecialty/views/modules/optometryManagement/seeDoctor/first-visit/index.vue +++ b/src/page-subspecialty/views/modules/optometryManagement/seeDoctor/first-visit/index.vue @@ -257,8 +257,8 @@ export default { if (res.code === 0) { this.formData = res.data if (!this.formData.id) { - await this.getPatientData() await this.queryFirstInfo() + await this.getPatientData() } } else { this.$message.error(res.msg) @@ -289,11 +289,11 @@ export default { ) if (res.code === 0) { if (res.data) { - this.formData.patientId = res.data.patientId - this.formData.patientSex = res.data.patientSex - this.formData.patientName = res.data.patientName - this.formData.patientAddress = res.data.patientAddress - this.formData.patientPhone = res.data.patientPhone + this.$set(this.formData, 'patientId', res.data.patientId) + this.$set(this.formData, 'patientSex', res.data.patientSex) + this.$set(this.formData, 'patientName', res.data.patientName) + this.$set(this.formData, 'patientAddress', res.data.patientAddress) + this.$set(this.formData, 'patientPhone', res.data.patientPhone) } } else { this.$message.error(res.msg)