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

161 lines
5.0 KiB
Vue
Raw Normal View History

2024-06-24 14:35:52 +08:00
<template>
<div style="background-color: #f1f3f5;width:100%">
<!-- 画像审核 -->
<div class="card">
<div class="cardleft">
<div class="title">
<div style="display: flex; align-items: center">
<img class="headsculpture" v-if="list.sex == 'MALE'"
src="../../../assets/manage/touxiang.png" />
<img class="headsculpture" v-else src="../../../assets/manage/nvtouxiang.png" />
<div class="name">
{{ list.patientName ? list.patientName : "" }}
</div>
<div class="genderandage">
<span>
{{ list.sex == "MALE" ? "男" : "" }}
{{ list.sex == "FEMALE" ? "女" : "" }}
</span>
<span v-if="list.sex && list.age" style="padding: 0 6px">|</span>
<span v-if="list.age">{{ list.age }}</span>
</div>
</div>
<div class="source">
<div class="situation item">
{{ list.visitMethod == "OUTPATIENT_SERVICE" ? "门诊" : "" }}
{{ list.visitMethod == "BE_IN_HOSPITAL" ? "住院" : "" }}
</div>
<div class="item" style="color: #00e06e; border-color: #00e06e"
v-if="list.patientSource == 'WE_CHAT_OFFICIAL_ACCOUNT'">
<img src="../../../assets/manage/gzh.png" alt="" />
<div>公众号</div>
</div>
<div class="item" style="color: #339de5; border-color: #339de5"
v-if="list.patientSource == 'WE_CHAT_APPLET'">
<img src="../../../assets/manage/xcx.png" alt="" />
<div>小程序</div>
</div>
<div class="item" style="color: #f4881f; border-color: #f4881f"
v-if="list.patientSource == 'MANAGE_END'">
<img src="../../../assets/manage/gld.png" alt="" />
<div>管理端</div>
</div>
</div>
</div>
</div>
<!-- 画像编辑右侧 -->
<div class="cardright">
</div>
</div>
</div>
</template>
<script>
import {
getByPatientId,
} from '@/api/manage/Auditing.js'
import { getAge } from "@/utils/age";
export default {
name: "PathReview",
data() {
return {
baseUrl: process.env.VUE_APP_BASE_API,
list: {},
};
},
created() {
this.info();
},
methods: {
info() {
getByPatientId(this.$route.query.patientId).then(res => {
res.data.birthDate ? res.data.age = getAge(res.data.birthDate) : ''
this.list = res.data
})
},
}
};
</script>
<style lang="scss" scoped>
.card {
width: 100%;
display: flex;
justify-content: space-evenly;
// padding: 20px 0;
height: calc(100vh - 119px);
.cardleft {
width: 35%;
background-color: #fff;
overflow: auto;
padding: 20px;
.title {
display: flex;
align-items: center;
justify-content: space-between;
.source {
display: flex;
.situation {
background-color: #f1faf7;
padding: 3px 6px;
color: #83cac0 !important;
border: 1px solid #83cac0 !important;
}
.item {
font-size: 14px;
margin-left: 5px;
border: 1px solid #fff;
padding: 3px 6px;
border-radius: 5px;
justify-content: center;
display: flex;
align-items: center;
img {
margin-right: 2px;
width: 16px;
height: 16px;
}
}
}
.name {
padding: 0 6px;
}
.genderandage {
padding: 0 6px;
}
.headsculpture {
width: 35px;
height: 35px;
}
}
}
.cardright {
overflow: auto;
background-color: #fff;
width: 62%;
padding: 20px;
font-size: 14px;
.textarea {
font-size: 14px;
font-weight: 400;
margin-bottom: 10px;
width: 100%;
}
.text {
font-size: 16px;
font-weight: bold;
}
}
}
</style>