|
|
@ -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) |
|
|
|