From d3998450a62558a350040b6701b0273e05b5e8a8 Mon Sep 17 00:00:00 2001 From: ysn <2126564605@qq.com> Date: Fri, 5 Jun 2026 17:25:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E6=97=B6=E4=BC=9A=E8=AF=8A-=E6=96=B0?= =?UTF-8?q?=E5=A2=9E/=E4=BF=AE=E6=94=B9=E9=A2=84=E8=A7=88=E6=97=B6?= =?UTF-8?q?=E9=97=B4/=E7=BB=84=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cases/components/CaseFormDialog.vue | 29 ++++++++++--------- .../realTimeConsultation.vue | 24 +++++++++++---- 2 files changed, 34 insertions(+), 19 deletions(-) diff --git a/src/views/cases/components/CaseFormDialog.vue b/src/views/cases/components/CaseFormDialog.vue index 397ccc9..1ea52b4 100644 --- a/src/views/cases/components/CaseFormDialog.vue +++ b/src/views/cases/components/CaseFormDialog.vue @@ -267,10 +267,9 @@ filterable clearable > - @@ -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, // 备注 diff --git a/src/views/videoCommunication/realTimeConsultation.vue b/src/views/videoCommunication/realTimeConsultation.vue index 07a25dc..21e57b0 100644 --- a/src/views/videoCommunication/realTimeConsultation.vue +++ b/src/views/videoCommunication/realTimeConsultation.vue @@ -110,9 +110,7 @@