postdischarge-ui/src/views/manage/components/cardlist.vue
2024-08-07 09:08:46 +08:00

225 lines
7.0 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div :style="{ height: maxTableHeight + 'px' }" class="cardlist">
<div v-for="item in patientInfoList" :key="item.id">
<div class="carditem">
<div class="top">
<img v-if="item.sex == 'FEMALE'" src="../../../assets/manage/nvtouxiang.png" alt="" class="img" />
<img v-if="item.sex == 'MALE'" src="../../../assets/manage/touxiang.png" alt="" class="img" />
<div class="name">
{{ item.patientName }}
</div>
<div class="agesex">
{{ item.sex == 'MALE' ? '男' : "" }}
{{ item.sex == 'FEMALE' ? '女' : "" }}
<span style="padding: 0 1px;">|</span>
<span v-if="item.age">
{{ item.age }}岁
</span>
<span class="zy" v-if="item.patientType == 'IN_HOSPITAL_PATIENT'">在院</span>
<span class="cy" v-if="item.patientType == 'DISCHARGED_PATIENT'">出院</span>
<span class="yzy" v-if="item.patientType == 'PRE_HOSPITALIZED_PATIENT'">预住院</span>
<span class="mz" v-if="item.patientType == 'OUTPATIENT'">门诊</span>
<!-- <span class="mz" v-if="item.patientType == 'CONTRACTED_PATIENT'">签约</span> -->
</div>
<div class="diagnosis">
诊断名称:{{ item.mainDiagnosis }}
</div>
</div>
<div class="bottom">
<div class="formitem">
医生:{{ item.attendingPhysicianName }}
</div>
<div class="formitem">
科室:{{ item.departmentName }}
</div>
<div class="formitem">
就诊时间:{{ item.visitDate }}
</div>
<div class="formitem flex">
<span>
康复计划执行率:
</span>
<el-progress :percentage="item.taskExecuteRate"></el-progress>
<span style="flex:0.1">({{ item.taskExecuteNum }}/{{ item.taskNum }})</span>
</div>
<div class="formitem flex">
<span>
康复计划完成率:
</span>
<el-progress :percentage="item.taskFinishRate"></el-progress>
<span style="flex:0.1">({{ item.taskFinishNum }}/{{ item.taskNum }})</span>
</div>
<div class="formitem">
下次任务{{ item.nextTaskName }} - {{ item.nextTaskTime }}
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'cardlist',
props: {
maxTableHeight: {
type: Number,
default: 0,
},
patientInfoList: {
type: Array,
default: []
}
},
data() {
return {
}
},
mounted() {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.cardlist {
display: flex;
flex-wrap: wrap;
align-content: flex-start;
overflow-y: auto;
.carditem {
margin-right: 10px;
margin-bottom: 10px;
width: 260px;
min-height: 200px;
border: 1px solid #DCDFE6;
border-radius: 10px;
font-size: 14px;
font-weight: 600;
.bottom {
height: 165px;
padding: 0 6px;
.formitem {
height: 26px;
line-height: 26px;
font-size: 12px;
color: #756A5E;
font-weight: 550;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
overflow: hidden;
}
.flex {
display: flex;
align-items: center;
::v-deep .el-progress-bar {
flex: 1;
}
::v-deep .el-progress__text {
font-size: 12px !important;
flex: 0.5;
text-align: right;
}
span {
flex: 0.5;
max-width: 50%;
}
::v-deep .el-progress {
flex: 1;
display: flex;
align-items: center;
}
}
}
.top {
height: 85px;
background-color: #F7F8FA;
position: relative;
border-radius: 10px 10px 0 0;
margin-bottom: 10px;
.img {
margin: 10px 0 0 10px;
width: 50px;
height: 50px;
}
.agesex {
position: absolute;
right: 10px;
top: 16px;
//预住院
.yzy {
background-color: #E8F4EC;
color: #2FB844;
border: 1.5px solid #2FB844;
border-radius: 2px;
padding: 3px 5px;
margin-left: 4px;
}
//门诊
.mz {
background-color: #DFE4F6;
color: #2D56FB;
border: 1.5px solid #2D56FB;
border-radius: 2px;
padding: 3px 5px;
margin-left: 4px;
}
// 在院
.zy {
background-color: #DEEDF4;
color: #1D98C6;
border: 1.5px solid #1D98C6;
border-radius: 2px;
padding: 3px 5px;
margin-left: 4px;
}
// 出院
.cy {
background-color: #DEEFEE;
color: #2A9A82;
border: 1.5px solid #2A9A82;
border-radius: 2px;
padding: 3px 5px;
margin-left: 4px;
}
}
.diagnosis {
position: absolute;
color: #756A5E;
font-weight: 550;
left: 70px;
top: 42px;
font-size: 12px;
height: 32px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
padding-right: 4px;
}
.name {
position: absolute;
left: 70px;
top: 16px;
}
}
}
}
</style>