实时会诊-新增/修改预览时间/组件修改

main
ysn 1 week ago
parent b404633aa2
commit d3998450a6
  1. 29
      src/views/cases/components/CaseFormDialog.vue
  2. 24
      src/views/videoCommunication/realTimeConsultation.vue

@ -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,
//

@ -110,9 +110,7 @@
<!-- 底部工具栏 -->
<footer class="bottom-bar">
<div class="left-section">
<el-button type="primary" @click="showCaseDialog = true"
>创建病例</el-button
>
<el-button type="primary" @click="handleAddCase">创建病例</el-button>
</div>
<div class="tools-section">
<div class="tool-item" @click="toggleMic">
@ -337,7 +335,7 @@
</el-dialog>
<!-- 创建病例弹窗 -->
<CaseFormDialog :visible.sync="showCaseDialog" :is-edit="false" />
<CaseFormDialog ref="caseFormDialogRef" @handleView="handleView" />
</div>
</template>
@ -475,6 +473,17 @@ export default {
this.initSDK();
},
methods: {
//
handleAddCase() {
this.$refs.caseFormDialogRef.handleAdd();
},
//
handleView(row) {
this.$tab.openPage(
row.patient_name + "-" + row.id,
"/cases/detail/" + row.id
);
},
// ==================== 1 ====================
//
initPage() {
@ -775,7 +784,12 @@ export default {
undoLastDraw() {
if (this.drawHistory.length === 0) return;
this.drawHistory.pop();
this.ctx.clearRect(0, 0, this.$refs.drawingCanvas.width, this.$refs.drawingCanvas.height);
this.ctx.clearRect(
0,
0,
this.$refs.drawingCanvas.width,
this.$refs.drawingCanvas.height
);
this.redrawAll();
this.$message.info("已撤销上一笔");
},

Loading…
Cancel
Save