postdischarge-ui/src/views/manage/components/cardlist.vue

225 lines
6.9 KiB
Vue
Raw Normal View History

2024-08-01 15:19:05 +08:00
<template>
<div :style="{ height: maxTableHeight + 'px' }" class="cardlist">
<div v-for="item in patientInfoList" :key="item.id">
<div class="carditem">
<div class="top">
2024-08-06 08:55:44 +08:00
<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" />
2024-08-01 16:18:16 +08:00
<div class="name">
2024-08-05 17:38:52 +08:00
{{ item.patientName }}
2024-08-01 16:18:16 +08:00
</div>
<div class="agesex">
2024-08-05 17:38:52 +08:00
{{ item.sex == 'MALE' ? '男' : "" }}
{{ item.sex == 'FEMALE' ? '女' : "" }}
2024-08-01 16:18:16 +08:00
<span style="padding: 0 3px;">|</span>
2024-08-05 17:38:52 +08:00
<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> -->
2024-08-01 16:18:16 +08:00
</div>
<div class="diagnosis">
2024-08-05 17:38:52 +08:00
诊断名称{{ item.mainDiagnosis }}
2024-08-01 16:18:16 +08:00
</div>
</div>
<div class="bottom">
<div class="formitem">
2024-08-05 17:38:52 +08:00
医生{{ item.attendingPhysician }}
2024-08-01 16:18:16 +08:00
</div>
<div class="formitem">
2024-08-05 17:38:52 +08:00
科室{{ item.departmentName }}
2024-08-01 16:18:16 +08:00
</div>
<div class="formitem">
2024-08-05 17:38:52 +08:00
就诊时间{{ item.visitDate }}
2024-08-01 16:18:16 +08:00
</div>
<div class="formitem flex">
<span>
康复计划执行率
</span>
2024-08-05 17:38:52 +08:00
<el-progress :percentage="item.taskExecuteRate"></el-progress>
2024-08-06 08:55:44 +08:00
<span style="flex:0.1">({{ item.taskExecuteNum }}/{{ item.taskNum }})</span>
2024-08-01 16:18:16 +08:00
</div>
<div class="formitem flex">
<span>
康复计划完成率
</span>
2024-08-05 17:38:52 +08:00
<el-progress :percentage="item.taskFinishRate"></el-progress>
2024-08-06 08:55:44 +08:00
<span style="flex:0.1">({{ item.taskFinishNum }}/{{ item.taskNum }})</span>
2024-08-01 16:18:16 +08:00
</div>
<div class="formitem">
下次任务
</div>
2024-08-01 15:19:05 +08:00
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'cardlist',
props: {
maxTableHeight: {
type: Number,
default: 0,
},
patientInfoList: {
type: Array,
default: []
}
},
data() {
return {
}
},
mounted() {
},
2024-08-01 16:18:16 +08:00
methods: {
}
2024-08-01 15:19:05 +08:00
}
</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;
2024-08-01 16:18:16 +08:00
font-size: 14px;
font-weight: 600;
.bottom {
2024-08-05 17:38:52 +08:00
height: 165px;
2024-08-01 16:18:16 +08:00
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;
2024-08-05 17:38:52 +08:00
flex: 0.5;
2024-08-01 16:18:16 +08:00
text-align: right;
}
span {
2024-08-05 17:38:52 +08:00
flex: 0.5;
2024-08-01 16:18:16 +08:00
max-width: 50%;
}
::v-deep .el-progress {
flex: 1;
display: flex;
align-items: center;
}
}
}
2024-08-01 15:19:05 +08:00
.top {
2024-08-05 17:38:52 +08:00
height: 85px;
2024-08-01 15:19:05 +08:00
background-color: #F7F8FA;
2024-08-01 16:18:16 +08:00
position: relative;
border-radius: 10px 10px 0 0;
2024-08-05 17:38:52 +08:00
margin-bottom: 10px;
2024-08-01 16:18:16 +08:00
.img {
margin: 10px 0 0 10px;
width: 50px;
height: 50px;
}
.agesex {
position: absolute;
right: 10px;
top: 16px;
2024-08-01 15:19:05 +08:00
2024-08-01 16:22:21 +08:00
//预住院
.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;
}
2024-08-01 16:18:16 +08:00
// 在院
.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;
2024-08-05 17:38:52 +08:00
height: 32px;
2024-08-01 16:18:16 +08:00
display: -webkit-box;
2024-08-05 17:38:52 +08:00
-webkit-line-clamp: 2;
2024-08-01 16:18:16 +08:00
-webkit-box-orient: vertical;
overflow: hidden;
padding-right: 4px;
}
.name {
position: absolute;
left: 70px;
top: 16px;
}
2024-08-01 15:19:05 +08:00
}
}
}
</style>