|
|
|
|
@ -267,10 +267,9 @@ |
|
|
|
|
filterable |
|
|
|
|
clearable |
|
|
|
|
> |
|
|
|
|
<el-option label="自动" value="自动" /> |
|
|
|
|
<el-option |
|
|
|
|
v-for="(item, index) in timeSectionList" |
|
|
|
|
:key="index" |
|
|
|
|
v-for="item in timeSectionList" |
|
|
|
|
:key="item" |
|
|
|
|
:label="item" |
|
|
|
|
:value="item" |
|
|
|
|
/> |
|
|
|
|
@ -413,6 +412,12 @@ export default { |
|
|
|
|
patient_type: [ |
|
|
|
|
{ required: true, message: "检查类型不能为空", trigger: "change" }, |
|
|
|
|
], |
|
|
|
|
exam_rooms: [ |
|
|
|
|
{ required: true, message: "检查诊室不能为空", trigger: "change" }, |
|
|
|
|
], |
|
|
|
|
time_section: [ |
|
|
|
|
{ required: true, message: "预约时间不能为空", trigger: "change" }, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
@ -487,6 +492,9 @@ export default { |
|
|
|
|
postReportTimeSections({ exam_room_id: exam_rooms_id }).then( |
|
|
|
|
(response) => { |
|
|
|
|
this.timeSectionList = response.data || []; |
|
|
|
|
if (this.timeSectionList.length > 0) { |
|
|
|
|
this.form.time_section = this.timeSectionList[0]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
@ -497,13 +505,6 @@ export default { |
|
|
|
|
handleAdd() { |
|
|
|
|
this.initDataDictionaries(); |
|
|
|
|
this.reset(); |
|
|
|
|
const today = new Date().toISOString().split("T")[0]; |
|
|
|
|
this.form = { |
|
|
|
|
patient_sex: this.patientSexList[0].value, |
|
|
|
|
patient_type: this.patientTypeList[1].value, |
|
|
|
|
patient_age_type: this.patientAgeTypeList[0].value, |
|
|
|
|
date_time: today, |
|
|
|
|
}; |
|
|
|
|
this.open = true; |
|
|
|
|
this.title = "新增病例"; |
|
|
|
|
this.isEditMode = false; |
|
|
|
|
@ -583,15 +584,15 @@ export default { |
|
|
|
|
// 患者姓名* |
|
|
|
|
patient_name: undefined, |
|
|
|
|
// 性别* |
|
|
|
|
patient_sex: undefined, |
|
|
|
|
patient_sex: this.patientSexList[0].value, |
|
|
|
|
// 年龄* |
|
|
|
|
patient_age: undefined, |
|
|
|
|
// 年龄类型* |
|
|
|
|
patient_age_type: undefined, |
|
|
|
|
patient_age_type: this.patientAgeTypeList[0].value, |
|
|
|
|
// 病例号* |
|
|
|
|
patient_id: undefined, |
|
|
|
|
// 检查类型* |
|
|
|
|
patient_type: undefined, |
|
|
|
|
patient_type: this.patientTypeList[1].value, |
|
|
|
|
// 门诊号 |
|
|
|
|
outpatient_number: undefined, |
|
|
|
|
// 住院号 |
|
|
|
|
@ -613,7 +614,7 @@ export default { |
|
|
|
|
// 自定义部位 |
|
|
|
|
position_text: undefined, |
|
|
|
|
// 预约日期 |
|
|
|
|
date_time: undefined, |
|
|
|
|
date_time: new Date().toISOString().split("T")[0], |
|
|
|
|
// 预约时间 |
|
|
|
|
time_section: undefined, |
|
|
|
|
// 备注 |
|
|
|
|
|