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

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 filterable
clearable clearable
> >
<el-option label="自动" value="自动" />
<el-option <el-option
v-for="(item, index) in timeSectionList" v-for="item in timeSectionList"
:key="index" :key="item"
:label="item" :label="item"
:value="item" :value="item"
/> />
@ -413,6 +412,12 @@ export default {
patient_type: [ patient_type: [
{ required: true, message: "检查类型不能为空", trigger: "change" }, { 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( postReportTimeSections({ exam_room_id: exam_rooms_id }).then(
(response) => { (response) => {
this.timeSectionList = response.data || []; this.timeSectionList = response.data || [];
if (this.timeSectionList.length > 0) {
this.form.time_section = this.timeSectionList[0];
}
} }
); );
}, },
@ -497,13 +505,6 @@ export default {
handleAdd() { handleAdd() {
this.initDataDictionaries(); this.initDataDictionaries();
this.reset(); 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.open = true;
this.title = "新增病例"; this.title = "新增病例";
this.isEditMode = false; this.isEditMode = false;
@ -583,15 +584,15 @@ export default {
// * // *
patient_name: undefined, patient_name: undefined,
// * // *
patient_sex: undefined, patient_sex: this.patientSexList[0].value,
// * // *
patient_age: undefined, patient_age: undefined,
// * // *
patient_age_type: undefined, patient_age_type: this.patientAgeTypeList[0].value,
// * // *
patient_id: undefined, patient_id: undefined,
// * // *
patient_type: undefined, patient_type: this.patientTypeList[1].value,
// //
outpatient_number: undefined, outpatient_number: undefined,
// //
@ -613,7 +614,7 @@ export default {
// //
position_text: undefined, position_text: undefined,
// //
date_time: undefined, date_time: new Date().toISOString().split("T")[0],
// //
time_section: undefined, time_section: undefined,
// //

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

Loading…
Cancel
Save