|
|
@ -82,13 +82,14 @@ |
|
|
|
</el-col> |
|
|
|
<el-col class="line" style="text-align: center" :span="2">-</el-col> |
|
|
|
<el-col :span="11"> |
|
|
|
<el-time-select |
|
|
|
v-model="form.date2" |
|
|
|
:picker-options="{...timeRange}" |
|
|
|
value-format="HH:mm:ss" |
|
|
|
placeholder="选择时间" |
|
|
|
style="width: 100%;" |
|
|
|
/> |
|
|
|
<el-form-item prop="date2"> |
|
|
|
<el-time-picker |
|
|
|
v-model="form.date2" |
|
|
|
value-format="HH:mm:ss" |
|
|
|
placeholder="选择时间" |
|
|
|
style="width: 100%;" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
@ -118,9 +119,6 @@ export default { |
|
|
|
isEdit: { |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
isPm: { |
|
|
|
type: Boolean |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
@ -136,7 +134,6 @@ export default { |
|
|
|
eyeType: '', |
|
|
|
pupilDilate: '', |
|
|
|
pupilShrink: '', |
|
|
|
date: '', |
|
|
|
date1: '', |
|
|
|
date2: '' |
|
|
|
}, |
|
|
@ -147,23 +144,15 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
timeRange() { |
|
|
|
return this.isPm ? { |
|
|
|
start: '12:00', |
|
|
|
step: '00:15', |
|
|
|
end: '21:30' |
|
|
|
} : { |
|
|
|
start: '07:30', |
|
|
|
step: '00:15', |
|
|
|
end: '12:00' |
|
|
|
} |
|
|
|
}, |
|
|
|
dataRule() { |
|
|
|
return { |
|
|
|
patientId: [ |
|
|
|
{ required: true, message: '请选择患者' } |
|
|
|
], |
|
|
|
date: [ |
|
|
|
date1: [ |
|
|
|
{ required: true, message: '请选择日期' } |
|
|
|
], |
|
|
|
date2: [ |
|
|
|
{ required: true, message: '请选择时间' } |
|
|
|
] |
|
|
|
} |
|
|
@ -180,8 +169,9 @@ export default { |
|
|
|
this.form.pupilShrink = this.patientDetail.pupilShrink |
|
|
|
this.form.remark = this.patientDetail.remark |
|
|
|
this.form.yzOpen = this.patientDetail.yzOpen |
|
|
|
this.form.date = this.patientDetail.appointDate |
|
|
|
this.form.date1 = this.patientDetail.appointDate.split(' ')[0] |
|
|
|
this.form.date2 = this.patientDetail.appointDate.split(' ')[1].substring(0, 5) |
|
|
|
this.form.date2 = this.patientDetail.appointDate.split(' ')[1] |
|
|
|
this.patientInfo = this.patientDetail |
|
|
|
} |
|
|
|
}, |
|
|
@ -218,7 +208,7 @@ export default { |
|
|
|
return false |
|
|
|
} |
|
|
|
const params = { |
|
|
|
appointDate: `${this.form.date1} ${this.form.date2}:00`, |
|
|
|
appointDate: `${this.form.date1} ${this.form.date2}`, |
|
|
|
patientName: this.patientInfo.patientName, |
|
|
|
jzNumber: this.patientInfo.jzNumber, |
|
|
|
appointSource: this.patientInfo.source, |
|
|
@ -234,7 +224,7 @@ export default { |
|
|
|
}) |
|
|
|
} else { |
|
|
|
const params = { |
|
|
|
appointDate: `${this.form.date1} ${this.form.date2}:00`, |
|
|
|
appointDate: `${this.form.date1} ${this.form.date2}`, |
|
|
|
doctorId: this.form.doctorId, |
|
|
|
doctorName: this.form.doctorName, |
|
|
|
patientId: this.form.patientId, |
|
|
@ -293,3 +283,4 @@ input{ |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|