|
|
@ -245,7 +245,6 @@ export default { |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.queryFirstVisit() |
|
|
|
this.getPatientData() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
async queryFirstVisit() { |
|
|
@ -257,6 +256,38 @@ export default { |
|
|
|
}) |
|
|
|
if (res.code === 0) { |
|
|
|
this.formData = res.data |
|
|
|
if (!this.formData.id) { |
|
|
|
await this.getPatientData() |
|
|
|
await this.queryFirstInfo() |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$message.error(res.msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
async queryFirstInfo() { |
|
|
|
const params = { |
|
|
|
patientId: this.patientId |
|
|
|
} |
|
|
|
const { data: res } = await this.$http.get('/hospital/notice/getFirstDiagnosisInfos', { |
|
|
|
params: params |
|
|
|
}) |
|
|
|
if (res.code === 0) { |
|
|
|
this.formData.butOd = res.data.butOd |
|
|
|
this.formData.butOs = res.data.butOs |
|
|
|
this.formData.eod = res.data.eod |
|
|
|
this.formData.eos = res.data.eos |
|
|
|
this.formData.hdOd = res.data.hdOd |
|
|
|
this.formData.hdOs = res.data.hdOs |
|
|
|
this.formData.hod = res.data.hod |
|
|
|
this.formData.hos = res.data.hos |
|
|
|
this.formData.iolOd = res.data.iolOd |
|
|
|
this.formData.iolOs = res.data.iolOs |
|
|
|
this.formData.npOd = res.data.npOd |
|
|
|
this.formData.npOs = res.data.npOs |
|
|
|
this.formData.vod = res.data.vod |
|
|
|
this.formData.vos = res.data.vos |
|
|
|
this.formData.zjOd = res.data.zjOd |
|
|
|
this.formData.zjOs = res.data.zjOs |
|
|
|
} else { |
|
|
|
this.$message.error(res.msg) |
|
|
|
} |
|
|
@ -272,12 +303,13 @@ export default { |
|
|
|
} |
|
|
|
) |
|
|
|
if (res.code === 0) { |
|
|
|
this.formData.patientId = res.data.patientId |
|
|
|
// this.formData.patientAge = res.data.patientAge |
|
|
|
this.formData.patientSex = res.data.patientSex |
|
|
|
this.formData.patientName = res.data.patientName |
|
|
|
this.formData.patientAddress = res.data.patientAddress |
|
|
|
this.formData.patientPhone = res.data.patientPhone |
|
|
|
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 |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$message.error(res.msg) |
|
|
|
} |
|
|
|