|
|
@ -31,11 +31,11 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="11" style="display: flex;align-items: center"> |
|
|
|
<span style="margin-right: 6px;margin-bottom: 3px">患者类型:</span> |
|
|
|
<el-checkbox-group v-model="form.patientType"> |
|
|
|
<el-checkbox label="门诊" /> |
|
|
|
<el-checkbox label="住院" /> |
|
|
|
<el-checkbox label="会诊" /> |
|
|
|
</el-checkbox-group> |
|
|
|
<el-radio-group v-model="form.source"> |
|
|
|
<el-radio label="门诊" /> |
|
|
|
<el-radio label="住院" /> |
|
|
|
<el-radio label="会诊" /> |
|
|
|
</el-radio-group> |
|
|
|
</el-col> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="备注:"> |
|
|
@ -64,29 +64,11 @@ |
|
|
|
<el-radio v-model="form.eyeType" label="OU">OU |
|
|
|
</el-radio> |
|
|
|
</el-col> |
|
|
|
<!--/* <el-col :span="6" style="display: flex;align-items: center">*/--> |
|
|
|
<!--/* 散瞳:*/--> |
|
|
|
<!--/* <div class="radioItem" @click="form.pupilDilate='Y'">*/--> |
|
|
|
<!--/* <input :checked="form.pupilDilate==='Y'" type="radio">是*/--> |
|
|
|
<!--/* </div>*/--> |
|
|
|
<!--/* <div class="radioItem" @click="form.pupilDilate='N'">*/--> |
|
|
|
<!--/* <input :checked="form.pupilDilate==='N'" type="radio">否*/--> |
|
|
|
<!--/* </div>*/--> |
|
|
|
<!--/* </el-col>*/--> |
|
|
|
<!-- <el-col :span="6" style="display: flex;align-items: center">--> |
|
|
|
<!-- 缩瞳:--> |
|
|
|
<!-- <div class="radioItem" @click="form.pupilShrink='Y'">--> |
|
|
|
<!-- <input :checked="form.pupilShrink==='Y'" type="radio">是--> |
|
|
|
<!-- </div>--> |
|
|
|
<!-- <div class="radioItem" @click="form.pupilShrink='N'">--> |
|
|
|
<!-- <input :checked="form.pupilShrink==='N'" type="radio">否--> |
|
|
|
<!-- </div>--> |
|
|
|
<!-- </el-col>--> |
|
|
|
</div> |
|
|
|
<div style="display: flex;padding:0 0 20px 0px"> |
|
|
|
<el-col :span="24" style="display: flex;align-items: center"> |
|
|
|
<div class="addLabel">项目:</div> |
|
|
|
<el-checkbox-group v-model="form.patientType"> |
|
|
|
<el-checkbox-group v-model="form.project"> |
|
|
|
<el-checkbox label="眼底激光治疗" /> |
|
|
|
<el-checkbox label="三面镜检查" /> |
|
|
|
<el-checkbox label="FFA" /> |
|
|
@ -99,7 +81,7 @@ |
|
|
|
<div style="display: flex;padding:0 0 20px 0px"> |
|
|
|
<el-col :span="24" style="display: flex;align-items: center"> |
|
|
|
<div class="addLabel">准备工作:</div> |
|
|
|
<el-checkbox-group v-model="form.patientType"> |
|
|
|
<el-checkbox-group v-model="form.preparation"> |
|
|
|
<el-checkbox label="医嘱已开" /> |
|
|
|
<el-checkbox label="散瞳" /> |
|
|
|
<el-checkbox label="表麻" /> |
|
|
@ -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() { |
|
|
|