diff --git a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/doctorstation/dto/PatientInfoDto.java b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/doctorstation/dto/PatientInfoDto.java index e3fb069c..55c99889 100644 --- a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/doctorstation/dto/PatientInfoDto.java +++ b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/doctorstation/dto/PatientInfoDto.java @@ -40,6 +40,11 @@ public class PatientInfoDto { @JsonSerialize(using = ToStringSerializer.class) private Long orgId; + /** + * 科室名称 + */ + private String organizationName; + /** * 患者姓名 */ diff --git a/openhis-server-new/openhis-application/src/main/resources/mapper/doctorstation/DoctorStationMainAppMapper.xml b/openhis-server-new/openhis-application/src/main/resources/mapper/doctorstation/DoctorStationMainAppMapper.xml index 0081ccd8..43777621 100644 --- a/openhis-server-new/openhis-application/src/main/resources/mapper/doctorstation/DoctorStationMainAppMapper.xml +++ b/openhis-server-new/openhis-application/src/main/resources/mapper/doctorstation/DoctorStationMainAppMapper.xml @@ -19,6 +19,7 @@ T10.type_code, T10.contract_name, T10.org_id, + T10.organization_name, T10.register_time, T10.reception_time, T10.practitioner_user_id, diff --git a/openhis-ui-vue3/src/views/doctorstation/components/emr/emr.vue b/openhis-ui-vue3/src/views/doctorstation/components/emr/emr.vue index 66b45843..c4cab1ea 100644 --- a/openhis-ui-vue3/src/views/doctorstation/components/emr/emr.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/emr/emr.vue @@ -15,7 +15,42 @@ -->
+
+ {{ visitType === 'FIRST' ? '门诊初诊病历' : '门诊复诊病历' }} +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -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( diff --git a/openhis-ui-vue3/src/views/doctorstation/index.vue b/openhis-ui-vue3/src/views/doctorstation/index.vue index 2256b178..9322cfe9 100644 --- a/openhis-ui-vue3/src/views/doctorstation/index.vue +++ b/openhis-ui-vue3/src/views/doctorstation/index.vue @@ -147,6 +147,7 @@ saveStatus = value; } " + :visitType="visitType" />