From 596edf273fbd42751c33a50f96601bdbeee89a27 Mon Sep 17 00:00:00 2001 From: LiJianZhao Date: Tue, 6 May 2025 14:19:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E7=97=85=E5=8E=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/outpatient/DiseaseDetails.vue | 4 +++- src/components/outpatient/MedicalHistory.vue | 23 ++++++++++---------- src/views/outpatient/index.vue | 7 +++++- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/src/components/outpatient/DiseaseDetails.vue b/src/components/outpatient/DiseaseDetails.vue index ec3a3d4..2b57f60 100644 --- a/src/components/outpatient/DiseaseDetails.vue +++ b/src/components/outpatient/DiseaseDetails.vue @@ -151,7 +151,9 @@ onMounted(() => { color: #999999; p { - margin-bottom: 8px; + margin: 0; + overflow: hidden; + white-space: nowrap; } .item { diff --git a/src/components/outpatient/MedicalHistory.vue b/src/components/outpatient/MedicalHistory.vue index ce5f455..ebf85ac 100644 --- a/src/components/outpatient/MedicalHistory.vue +++ b/src/components/outpatient/MedicalHistory.vue @@ -6,16 +6,9 @@
@@ -36,12 +29,13 @@ const list = ref([]) const init = (patientId: any) => { post("medical/record/listByPatient",{patientId:patientId}).then((res: any) => { list.value = res + emit('initMedicalRecord', res[0].diagnosisMedicalRecord.allergyHistory,res[0].diagnosisMedicalRecord.beforeMedicalHistory) }) } const clearList = () => { list.value = [] } -const emit = defineEmits(['copy','copyItem','copyGoods']) +const emit = defineEmits(['copy','copyItem','copyGoods',"initMedicalRecord"]) const copy = (item: any) => { emit('copy', item) } @@ -65,14 +59,19 @@ defineExpose({init,clearList}) justify-content: space-between; .disease-name { - width: 135px; + width: 90px; overflow: hidden; /* 隐藏溢出的内容 */ white-space: nowrap; /* 防止文本换行 */ text-overflow: ellipsis; /* 显示省略号 */ + text-align: left; } .doctor { - width: 85px; + width: 80px; + } + .time{ + display: inline-block; + overflow: hidden; } } } diff --git a/src/views/outpatient/index.vue b/src/views/outpatient/index.vue index b100bed..05ff724 100644 --- a/src/views/outpatient/index.vue +++ b/src/views/outpatient/index.vue @@ -29,7 +29,7 @@
- +
@@ -189,6 +189,11 @@ watch(() => registerId.value, (newValue) => { } getSeeDockerInfo(newValue) }) + +const initMedicalRecord = (allergy:string, before:string) => { + formData.value.allergyHistory = allergy; + formData.value.beforeMedicalHistory = before; +}