Compare commits

..

No commits in common. "3a8c371e9c6367f2f5761b305ff98a56694cfde0" and "af846cd274ec7974deb7af9a822838936fbdb91c" have entirely different histories.

3 changed files with 14 additions and 20 deletions

View File

@ -151,9 +151,7 @@ onMounted(() => {
color: #999999;
p {
margin: 0;
overflow: hidden;
white-space: nowrap;
margin-bottom: 8px;
}
.item {

View File

@ -6,9 +6,16 @@
<el-collapse-item :name="index" v-for="(item, index) in list" :key="index">
<template #title>
<div class="list-item-content">
<el-tooltip
class="box-item"
effect="dark"
:content="item.diagnosisMedicalRecord.diagnosisSummary"
placement="bottom-start"
>
<span class="disease-name">{{ item.diagnosisMedicalRecord.diagnosisSummary }}</span>
<span class="doctor">{{ item.registrationInfoVo.doctorName }}</span>
<span class="time">{{ item.createTime }}</span>
</el-tooltip>
<!-- <span class="doctor">{{ item.patientId }}</span>-->
<!-- <span class="time">{{ item.createDatetime }}</span>-->
</div>
</template>
<div>
@ -29,13 +36,12 @@ const list = ref<any>([])
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',"initMedicalRecord"])
const emit = defineEmits(['copy','copyItem','copyGoods'])
const copy = (item: any) => {
emit('copy', item)
}
@ -59,19 +65,14 @@ defineExpose({init,clearList})
justify-content: space-between;
.disease-name {
width: 90px;
width: 135px;
overflow: hidden; /* 隐藏溢出的内容 */
white-space: nowrap; /* 防止文本换行 */
text-overflow: ellipsis; /* 显示省略号 */
text-align: left;
}
.doctor {
width: 80px;
}
.time{
display: inline-block;
overflow: hidden;
width: 85px;
}
}
}

View File

@ -29,7 +29,7 @@
<MedicalInformation v-model="seeDockerInfo" ref="medicalInformationRef"></MedicalInformation>
</div>
<div class="bottom">
<MedicalHistory ref="medicalHistoryRef" @copy="copyForm" @copyItem="copyItemList" @copyGoods="copyGoodsList" @initMedicalRecord="initMedicalRecord"></MedicalHistory>
<MedicalHistory ref="medicalHistoryRef" @copy="copyForm" @copyItem="copyItemList" @copyGoods="copyGoodsList"></MedicalHistory>
</div>
</div>
</div>
@ -189,11 +189,6 @@ watch(() => registerId.value, (newValue) => {
}
getSeeDockerInfo(newValue)
})
const initMedicalRecord = (allergy:string, before:string) => {
formData.value.allergyHistory = allergy;
formData.value.beforeMedicalHistory = before;
}
</script>
<style scoped lang="scss">
.container {