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; +}