This commit is contained in:
闫晓茹 2024-08-09 13:58:54 +08:00
parent 28d05bf02d
commit a0b6075223

View File

@ -1,12 +1,9 @@
<template> <template>
<div :style="{ height: maxTableHeight + 'px' }" class="cardlist"> <div :style="{ height: maxTableHeight + 'px' }" class="cardlist">
<div v-for="(item, index) in patientInfoList" :key="item.id"> <div v-for="(item, index) in patientInfoList" :key="item.id">
<div <div @click="handleAuthRole(item, index)" class="cards">
@click="handleAuthRole(item, index)"
:class="listindex == index ? 'cards' : ''"
>
<div class="carditem"> <div class="carditem">
<div class="top"> <div class="top" @click="handleAuth(item, index)">
<img <img
v-if="item.sex == 'FEMALE'" v-if="item.sex == 'FEMALE'"
src="../../../assets/manage/nvtouxiang.png" src="../../../assets/manage/nvtouxiang.png"
@ -24,6 +21,7 @@
effect="dark" effect="dark"
:content="item.patientName" :content="item.patientName"
placement="top" placement="top"
@click="handleAuth(item, index)"
> >
<span> {{ item.patientName }} </span> <span> {{ item.patientName }} </span>
</el-tooltip> </el-tooltip>
@ -50,26 +48,38 @@
</div> </div>
<div class="diagnosis">诊断名称{{ item.mainDiagnosis }}</div> <div class="diagnosis">诊断名称{{ item.mainDiagnosis }}</div>
<div class="diagnosi">诊断状态:{{ item.patientSignStatus }}</div> <div class="diagnosi">诊断状态:{{ item.patientSignStatus }}</div>
</div>
<div class="bottom">
<div class="formitembutton" @click.stop="handleedit(item)"> <div class="formitembutton" @click.stop="handleedit(item)">
画像编辑 画像编辑
</div> </div>
</div>
<div class="bottom">
<div class="formitem">医生{{ item.attendingPhysician }}</div> <div class="formitem">医生{{ item.attendingPhysician }}</div>
<div class="formitem">科室{{ item.departmentName }}</div> <div class="formitem">科室{{ item.departmentName }}</div>
<div class="formitem">就诊时间{{ item.visitDate }}</div> <div class="formitem">就诊时间{{ item.visitDate }}</div>
<div class="formitem flex"> <div class="formitem flex">
<span> 康复计划执行率</span> <span> 康复计划执行率</span>
<el-progress v-if="item.taskExecuteRate==0||item.taskExecuteRate==null" :percentage="0"></el-progress> <el-progress
<el-progress v-else :percentage="item.taskExecuteRate"></el-progress> v-if="item.taskExecuteRate == 0 || item.taskExecuteRate == null"
:percentage="0"
></el-progress>
<el-progress
v-else
:percentage="item.taskExecuteRate"
></el-progress>
<span style="flex: 0.1" <span style="flex: 0.1"
>({{ item.taskExecuteNum }}/{{ item.taskNum }})</span >({{ item.taskExecuteNum }}/{{ item.taskNum }})</span
> >
</div> </div>
<div class="formitem flex"> <div class="formitem flex">
<span> 康复计划完成率 </span> <span> 康复计划完成率 </span>
<el-progress v-if="item.taskFinishRate==0||item.taskFinishRate==null" :percentage="0"></el-progress> <el-progress
<el-progress v-else :percentage="item.taskFinishRate"></el-progress> v-if="item.taskFinishRate == 0 || item.taskFinishRate == null"
:percentage="0"
></el-progress>
<el-progress
v-else
:percentage="item.taskFinishRate"
></el-progress>
<span style="flex: 0.1" <span style="flex: 0.1"
>({{ item.taskFinishNum }}/{{ item.taskNum }})</span >({{ item.taskFinishNum }}/{{ item.taskNum }})</span
> >
@ -98,13 +108,13 @@ export default {
}, },
data() { data() {
return { return {
listindex: 0, isDoubleClicked: false,
}; };
}, },
mounted() {}, mounted() {},
methods: { methods: {
handleAuthRole(item, index) { //
this.listindex = index; handleAuth(item, index) {
this.$router.push({ this.$router.push({
path: "/patient/patientdetails", path: "/patient/patientdetails",
query: { query: {
@ -123,6 +133,35 @@ export default {
}, },
}); });
}, },
//
handleAuthRole(item, index) {
if (this.isDoubleClicked) {
//
console.log("实现双击!");
this.$router.push({
path: "/patient/patientdetails",
query: {
path: "/patient/patientInfo",
patientId: item.id,
cardNo: item.cardNo,
patientName: item.patientName,
patientPhone: item.patientPhone,
sex: item.sex,
birthDate: item.birthDate,
familyMemberPhone: item.familyMemberPhone,
address: item.address,
patientSource: item.patientSource,
createTime: item.createTime,
age: item.birthDate ? getAge(item.birthDate) : "",
},
});
} else {
this.isDoubleClicked = true;
setTimeout(() => {
this.isDoubleClicked = false;
}, 250);
}
},
// //
handleedit(item) { handleedit(item) {
this.$router.push({ this.$router.push({
@ -155,12 +194,19 @@ export default {
overflow: hidden; overflow: hidden;
width: 263px; width: 263px;
height: 262px; height: 262px;
border: 2px solid #1890ff; // border: 2px solid #1890ff;
border-radius: 10px; border-radius: 10px;
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
z-index: 9999; z-index: 9999;
} }
.cards:hover {
border: 2px solid #1890ff;
// -webkit-box-shadow:0 15px 30px rgba(0,0,0,.1);
// box-shadow:0 15px 30px rgba(0,0,0,.3);
// -webkit-transform:translate3d(0,-10px,0);
cursor: pointer;
}
.cardlist { .cardlist {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
@ -192,21 +238,6 @@ export default {
overflow: hidden; overflow: hidden;
overflow: hidden; overflow: hidden;
} }
.formitembutton {
height: 26px;
line-height: 26px;
font-size: 12px;
color: #756a5e;
font-weight: 550;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
float: right;
overflow: hidden;
}
.formitembutton:hover {
color: #2d56fb;
}
.flex { .flex {
display: flex; display: flex;
@ -322,6 +353,24 @@ export default {
overflow: hidden; overflow: hidden;
padding-right: 4px; padding-right: 4px;
} }
.formitembutton {
position: absolute;
color: #756a5e;
font-weight: 550;
left: 200px;
top: 60px;
font-size: 12px;
height: 19px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
padding-right: 4px;
}
.formitembutton:hover {
color: #2d56fb;
border-bottom: 1px solid #2d56fb;
}
.name { .name {
position: absolute; position: absolute;