| | |
| | | import { reactive, computed, toRefs, onMounted, ref, watch } from "vue" |
| | | import { sendPationCode, sendPationSet } from '../../samples/sockteStomp' |
| | | import { formatDate } from '@/utils/formatTime' |
| | | import logo from '@/assets/LOGO.png' |
| | | import state1 from '@/assets/state1.png' |
| | | import state2 from '@/assets/state2.png' |
| | | import state3 from '@/assets/state3.png' |
| | | import logo from '@/assets/LOGO.png' |
| | | |
| | | export default { |
| | | setup() { |
| | |
| | | console.log(timer) |
| | | } |
| | | const state = reactive({ |
| | | logo:logo, |
| | | state1:state1, |
| | | state2:state2, |
| | | state3:state3, |
| | | logo:logo, |
| | | dialogVisible: false, |
| | | isActive: false, |
| | | inputCode: "", |
| | |
| | | } |
| | | </script> |
| | | <template> |
| | | <div class="home"> |
| | | <!-- 提醒刷卡 --> |
| | | <div class="page flex-col"> |
| | | <!-- 提醒刷卡 --> |
| | | <audio src="https://dhcdn.leon056.com/hemo/autoselfsign/step1.mp3" ref="AudioRef0" id="eventAudio"></audio> |
| | | <!-- 患者信息读取成功 --> |
| | | <audio src="https://dhcdn.leon056.com/hemo/autoselfsign/step2.mp3" ref="AudioRef" id="eventAudio"></audio> |
| | |
| | | <el-dialog title="提示" v-model="isLink" width="30%"> |
| | | <span>sockte连接失败正在重连。。。。。。</span> |
| | | </el-dialog> |
| | | <div> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <div class="imglogo"> |
| | | <el-image :src="logo" /> |
| | | </div> |
| | | |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <el-input id="inputCode" @change="inputChabge" v-model="inputCode" ref="inputRef" placeholder="" /> |
| | | </el-col> |
| | | <el-col :span="8" class="titleText"> |
| | | 患者签到 |
| | | </el-col> |
| | | <el-col class="clockNum" :span="8">{{clockNum}}</el-col> |
| | | </el-row> |
| | | <div class="box_7 flex-col justify-between"> |
| | | <div class="header flex-col"> |
| | | <div class="box_8 flex-row"> |
| | | <img |
| | | class="image_1" |
| | | referrerpolicy="no-referrer" |
| | | :src="logo" |
| | | /> |
| | | <el-input id="inputCode" style="width:50px" @change="inputChabge" v-model="inputCode" ref="inputRef" placeholder="" /> |
| | | <span class="text_1">自助签到</span> <span class="text_2">{{clockNum}}</span> |
| | | </div> |
| | | </div> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12" class="item"> |
| | | <div> |
| | | <el-row> |
| | | <el-col :span="10"> |
| | | <div class="patimg"> |
| | | <el-image style="width:200px;height:280px;" :src="patientInfo.patientAvatarIcon" /> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="14"> |
| | | <div class="chenlabe"> |
| | | <div class="chenlabel"> |
| | | <div class="chenlabe2"> |
| | | <el-row> |
| | | <el-col class="lableClass" :span="12"> |
| | | 姓名: |
| | | </el-col> |
| | | <el-col class="inputClasss" :span="12"> |
| | | {{patientInfo.name}} |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="chenlabel" > |
| | | <div class="chenlabe2"> |
| | | <el-row> |
| | | <el-col class="lableClass" :span="12"> |
| | | 透析号: |
| | | </el-col> |
| | | <el-col class="inputClasss" :span="12"> |
| | | {{patientInfo.hemoCode}} |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <div class="grid_3 flex-row"> |
| | | <div class="section_1 flex-col"> |
| | | <div class="block_2 flex-row justify-between"> |
| | | <div class="image-wrapper_1 flex-col"> |
| | | <img |
| | | class="image_2" |
| | | referrerpolicy="no-referrer" |
| | | :src="patientInfo.patientAvatarIcon" |
| | | /> |
| | | </div> |
| | | <div class="group_6 flex-col"> |
| | | <div class="text-wrapper_13 flex-row justify-between"> |
| | | <span class="text_3">姓名:</span> |
| | | <span class="text_4">{{patientInfo.name}}</span> |
| | | </div> |
| | | |
| | | </el-col> |
| | | <el-col :span="12" class="item"> |
| | | <div class="xyjCON"> |
| | | <el-row class="xyclass"> |
| | | <el-col :span="12" >血压(mmHg):</el-col> |
| | | <el-col :span="12" > |
| | | <div class="xyimg"> |
| | | <el-image v-if="xyjInfo.state === 2" style="width: 60px; height: 60px" :src="state1" /> |
| | | <el-image v-if="xyjInfo.state === 1" style="width: 60px; height: 60px" :src="state2" /> |
| | | <el-image v-if="xyjInfo.state === 0" style="width: 60px; height: 60px" :src="state3" /> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <div class="xyjnumber"> |
| | | {{ gao_ya }}/{{ di_ya }} |
| | | </div> |
| | | </el-row> |
| | | <div class="block_1 flex-col"></div> |
| | | <div class="text-wrapper_14 flex-row justify-between"> |
| | | <span class="text_5">透析号:</span> |
| | | <span class="text_6">{{patientInfo.hemoCode}}</span> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="12" class="item"> |
| | | <div> |
| | | <div class="deviceInfo"> |
| | | <el-row class="deviceInfoItem"> |
| | | <el-col class="text" :span="12" >机号:</el-col> |
| | | <el-col class="value" :span="12" > {{patientInfo.deviceCode}}</el-col> |
| | | </el-row> |
| | | <el-row class="deviceInfoItem"> |
| | | <el-col class="text" :span="12" >干体重(kg):</el-col> |
| | | <el-col class="value" :span="12" > {{ patientInfo.pureWeight }}</el-col> |
| | | </el-row> |
| | | <el-row class="deviceInfoItem"> |
| | | <el-col class="text" :span="12" >目标脱水量(L):</el-col> |
| | | <el-col class="value" :span="12" > {{aimTSL}}</el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="12" class="item"> |
| | | <div class="xyjCON"> |
| | | <el-row class="xyclass"> |
| | | <el-col :span="12" >透前体重(kg):</el-col> |
| | | <el-col :span="12" > |
| | | <div class="xyimg"> |
| | | <el-image v-if="weightInfo.state === 2" style="width: 60px; height: 60px" :src="state1" /> |
| | | <el-image v-if="weightInfo.state === 1" style="width: 60px; height: 60px" :src="state2" /> |
| | | <el-image v-if="weightInfo.state === 0" style="width: 60px; height: 60px" :src="state3" /> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <div class="xyjnumber"> |
| | | {{ weightInfo.result }} |
| | | </div> |
| | | </el-row> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="section_4 flex-col"> |
| | | <div class="group_7 flex-row justify-between"> |
| | | <span class="text_7">血压(mmHg):</span> |
| | | <img |
| | | v-if="xyjInfo.state === 2" |
| | | class="group_1" |
| | | referrerpolicy="no-referrer" |
| | | :src="state1" |
| | | /> |
| | | <img |
| | | v-if="xyjInfo.state === 1" |
| | | class="group_1" |
| | | referrerpolicy="no-referrer" |
| | | :src="state2" |
| | | /> |
| | | <img |
| | | v-if="xyjInfo.state === 0" |
| | | class="group_1" |
| | | referrerpolicy="no-referrer" |
| | | :src="state3" |
| | | /> |
| | | </div> |
| | | <div class="text-wrapper_15 flex-row"> |
| | | <span class="text_8">{{ gao_ya }}/{{ di_ya }}</span> |
| | | </div> |
| | | </div> |
| | | <div class="section_5 flex-col"> |
| | | <div class="box_9 flex-col"> |
| | | <div class="text-wrapper_16 flex-row justify-between"> |
| | | <span class="text_9">机号:</span> |
| | | <span class="text_10">{{patientInfo.deviceCode}}</span> |
| | | </div> |
| | | <div class="box_3 flex-col"></div> |
| | | <div class="text-wrapper_17 flex-row justify-between"> |
| | | <span class="text_11">干体重(kg):</span> |
| | | <span class="text_12">{{ patientInfo.pureWeight }}</span> |
| | | </div> |
| | | <div class="box_4 flex-col"></div> |
| | | <div class="text-wrapper_18 flex-row justify-between"> |
| | | <span class="text_13">目标脱水量(L):</span> |
| | | <span class="text_14">{{aimTSL}}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="section_6 flex-col"> |
| | | <div class="section_12 flex-row justify-between"> |
| | | <span class="text_15">透前体重(kg):</span> |
| | | <img |
| | | v-if="weightInfo.state === 2" |
| | | class="group_1" |
| | | referrerpolicy="no-referrer" |
| | | :src="state1" |
| | | /> |
| | | <img |
| | | v-if="weightInfo.state === 1" |
| | | class="group_1" |
| | | referrerpolicy="no-referrer" |
| | | :src="state2" |
| | | /> |
| | | <img |
| | | v-if="weightInfo.state === 0" |
| | | class="group_1" |
| | | referrerpolicy="no-referrer" |
| | | :src="state3" |
| | | /> |
| | | </div> |
| | | <div class="section_13 flex-row justify-between"> |
| | | <span class="text_16">{{ weightInfo.result }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </template> |
| | | <style lang="scss"> |
| | | .home{ |
| | | background: #F3F6FE; |
| | | } |
| | | .item{ |
| | | padding: 20px; |
| | | } |
| | | .item>div{ |
| | | background: #FFFFFF; |
| | | box-shadow: 1px 2px 4px 0px rgba(201,223,246,0.5000); |
| | | border-radius: 10px; |
| | | height: 330px; |
| | | } |
| | | .chenlabe{ |
| | | padding-top: 15%; |
| | | } |
| | | .chenlabel{ |
| | | height: 50%; |
| | | // background: #d9ecff; |
| | | } |
| | | .chenlabe2{ |
| | | padding-top: 10%; |
| | | padding-left: 30px; |
| | | .lableClass{ |
| | | height: 42px; |
| | | font-size: 30px; |
| | | font-family: AlibabaPuHuiTi-Regular, AlibabaPuHuiTi; |
| | | font-weight: 400; |
| | | color: #777777; |
| | | line-height: 42px; |
| | | letter-spacing: 1px; |
| | | } |
| | | .inputClasss{ |
| | | height: 42px; |
| | | font-size: 30px; |
| | | font-family: AlibabaPuHuiTi-Medium, AlibabaPuHuiTi; |
| | | font-weight: 500; |
| | | color: #769AFF; |
| | | line-height: 42px; |
| | | letter-spacing: 1px; |
| | | } |
| | | } |
| | | .patimg{ |
| | | width: 227px;height: 315px;border-radius: 4px; |
| | | padding-left: 13px; |
| | | padding-top: 17px; |
| | | } |
| | | .xyclass{ |
| | | padding-top: 10px; |
| | | padding-left: 10px; |
| | | padding-right: 10px; |
| | | font-size: 30px; |
| | | font-family: AlibabaPuHuiTi-Regular, AlibabaPuHuiTi; |
| | | font-weight: 400; |
| | | color: #333333; |
| | | } |
| | | .xyimg{ |
| | | text-align: right; |
| | | } |
| | | .xyjnumber{ |
| | | width:100%; |
| | | height: 100%; |
| | | font-size: 120px; |
| | | font-family: DINAlternate-Bold, DINAlternate; |
| | | font-weight: bold; |
| | | color: #769AFF; |
| | | line-height: 100%; |
| | | margin-top: 7%; |
| | | text-align: center; |
| | | } |
| | | .xyjCON{ |
| | | height: 100%; |
| | | } |
| | | .deviceInfo{ |
| | | padding-top: 60px; |
| | | |
| | | } |
| | | .deviceInfoItem{ |
| | | // background: #333333; |
| | | height: 70px; |
| | | width: 100%; |
| | | line-height: 70px; |
| | | // background: #769AFF; |
| | | .text{ |
| | | padding-left: 50px; |
| | | height: 42px; |
| | | font-size: 30px; |
| | | font-family: AlibabaPuHuiTi-Regular, AlibabaPuHuiTi; |
| | | font-weight: 400; |
| | | color: #777777; |
| | | line-height: 42px; |
| | | letter-spacing: 1px; |
| | | text-align: right; |
| | | } |
| | | .value{ |
| | | text-align: center; |
| | | height: 47px; |
| | | font-size: 40px; |
| | | font-family: DINAlternate-Bold, DINAlternate; |
| | | font-weight: bold; |
| | | color: #769AFF; |
| | | line-height: 47px; |
| | | letter-spacing: 2px; |
| | | } |
| | | } |
| | | .titlerow{ |
| | | height: 72px; |
| | | background: #FFFFFF; |
| | | line-height: 72px; |
| | | box-shadow: 1px 3px 5px 0px #E9E9E9; |
| | | } |
| | | .imglogo{ |
| | | padding-top: 10px; |
| | | width: 102px; |
| | | height: 40px; |
| | | // background: #769AFF; |
| | | } |
| | | .titleText{ |
| | | text-align: center; |
| | | height: 38px; |
| | | font-size: 27px; |
| | | font-family: PingFangSC-Medium, PingFang SC; |
| | | font-weight: 500; |
| | | color: #333333; |
| | | line-height: 38px; |
| | | letter-spacing: 1px; |
| | | } |
| | | .clockNum{ |
| | | width: 100%; |
| | | height: 38px; |
| | | font-size: 27px; |
| | | font-family: PingFangSC-Medium, PingFang SC; |
| | | font-weight: 500; |
| | | color: #FF7472; |
| | | line-height: 38px; |
| | | letter-spacing: 1px; |
| | | text-align:right; |
| | | padding-right: 10px; |
| | | } |
| | | |
| | | </style> |
| | | <style> |
| | | @import './css/common.css'; |
| | | @import './css/index.css'; |
| | | </style> |