|
|
|
|
@@ -15,7 +15,42 @@
|
|
|
|
|
</el-button> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div style="max-height: 650px; overflow-y: auto; overflow-x: hidden">
|
|
|
|
|
<div style="text-align: center; font-size: 18px; font-weight: bold; margin-bottom: 10px;">
|
|
|
|
|
{{ visitType === 'FIRST' ? '门诊初诊病历' : '门诊复诊病历' }}
|
|
|
|
|
</div>
|
|
|
|
|
<el-form ref="emrRef" :model="form" :rules="rules" label-width="80px">
|
|
|
|
|
<el-row :gutter="4">
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-form-item label="就诊卡号" prop="patientId" style="width: 100%">
|
|
|
|
|
<el-input placeholder="" v-model="patientInfo.patientId" class="input-with-bottom-border"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-form-item label="姓名" prop="patientName" style="width: 100%">
|
|
|
|
|
<el-input placeholder="" v-model="patientInfo.patientName" class="input-with-bottom-border"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-form-item label="性别" prop="genderEnum_enumText" style="width: 100%">
|
|
|
|
|
<el-input placeholder="" v-model="patientInfo.genderEnum_enumText" class="input-with-bottom-border"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-form-item label="年龄" prop="age" style="width: 100%">
|
|
|
|
|
<el-input placeholder="" v-model="patientInfo.age" class="input-with-bottom-border"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-form-item label="就诊日期" prop="currentVisitDate" style="width: 100%">
|
|
|
|
|
<el-input placeholder="" v-model="currentVisitDate" class="input-with-bottom-border"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-form-item label="就诊科室" prop="organizationName" style="width: 100%">
|
|
|
|
|
<el-input placeholder="" v-model="patientInfo.organizationName" class="input-with-bottom-border"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="身高" prop="height" style="width: 100%">
|
|
|
|
|
@@ -168,6 +203,20 @@ import { saveEmr, getEmrDetail, saveEmrTemplate } from '../api';
|
|
|
|
|
import emrTemplate from '../emr/emrtemplate.vue';
|
|
|
|
|
import emrhistory from '../emr/emrhistory.vue';
|
|
|
|
|
|
|
|
|
|
import { ref, computed } from 'vue';
|
|
|
|
|
|
|
|
|
|
// 2. 当前就诊日期(默认为当前时间)
|
|
|
|
|
const currentVisitDate = computed(() => {
|
|
|
|
|
return new Date().toLocaleString('zh-CN', {
|
|
|
|
|
year: 'numeric',
|
|
|
|
|
month: '2-digit',
|
|
|
|
|
day: '2-digit',
|
|
|
|
|
hour: '2-digit',
|
|
|
|
|
minute: '2-digit',
|
|
|
|
|
second: '2-digit',
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const form = ref({});
|
|
|
|
|
const emrTitle = ref('');
|
|
|
|
|
const radio = ref(1);
|
|
|
|
|
@@ -184,6 +233,10 @@ const props = defineProps({
|
|
|
|
|
type: Object,
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
visitType: { // ✅ 接收父组件传来的值
|
|
|
|
|
type: String,
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
watch(
|
|
|
|
|
|