|
|
@ -58,7 +58,21 @@ |
|
|
|
科室:<el-input v-model="formData.department" style="flex: 1" /> |
|
|
|
</div> |
|
|
|
<div class="flex"> |
|
|
|
医生:<el-input v-model="formData.doctor" style="flex: 1" /> |
|
|
|
医生: |
|
|
|
<el-select |
|
|
|
v-model="formData.doctor" |
|
|
|
style="flex: 1" |
|
|
|
filterable |
|
|
|
allow-create |
|
|
|
placeholder="" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in doctorList" |
|
|
|
:key="item.id" |
|
|
|
:label="item.realName" |
|
|
|
:value="item.realName" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</td> |
|
|
@ -77,7 +91,15 @@ |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div class="flex"> |
|
|
|
主照眼:<el-input v-model="formData.lightEye" style="flex: 1" /> |
|
|
|
主照眼: |
|
|
|
<el-select v-model="formData.lightEye" style="flex: 1" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in options" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
@ -180,6 +202,14 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
origin: '', |
|
|
|
options: [{ |
|
|
|
value: 'OD', |
|
|
|
label: 'OD' |
|
|
|
}, { |
|
|
|
value: 'OS', |
|
|
|
label: 'OS' |
|
|
|
}], |
|
|
|
doctorList: [], |
|
|
|
formData: { |
|
|
|
idList: [], |
|
|
|
patientName: '', |
|
|
@ -188,7 +218,7 @@ export default { |
|
|
|
patientId: '', |
|
|
|
patientBirthday: '', |
|
|
|
project: '', |
|
|
|
department: '', |
|
|
|
department: '眼科', |
|
|
|
doctor: '', |
|
|
|
eyeVOD: '', |
|
|
|
eyeVOS: '', |
|
|
@ -238,10 +268,20 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.origin = JSON.parse(JSON.stringify(this.formData)) |
|
|
|
this.getDoctorList() |
|
|
|
this.getOrderDetail() |
|
|
|
this.queryProject() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 获取医生列表 |
|
|
|
getDoctorList() { |
|
|
|
this.$http.get('/sys/user', { params: { position: '门诊医师' }}).then(data => { |
|
|
|
this.doctorList = data.data.data |
|
|
|
}).catch(err => { |
|
|
|
this.$message.error(err.msg) |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleSaveTable() { |
|
|
|
this.formData.jzNumber = window.localStorage.getItem('jzNumber') |
|
|
|
this.$http.post('/mzbl/saveMzblYdxgzy', { |
|
|
@ -256,7 +296,12 @@ export default { |
|
|
|
caseId: this.caseId, |
|
|
|
patientId: this.patientDetail.patientId |
|
|
|
}}).then(data => { |
|
|
|
this.formData = { ...data.data.data } |
|
|
|
const detail = data.data.data |
|
|
|
if (detail.jzNumber) { |
|
|
|
this.formData = { ...data.data.data } |
|
|
|
} else { |
|
|
|
this.formData = this.origin |
|
|
|
} |
|
|
|
// 患者信息带入 |
|
|
|
this.formData.patientName = this.patientDetail.patientName |
|
|
|
this.formData.patientAge = this.patientDetail.patientAge |
|
|
|