| | |
| | | import { reactive, computed, toRefs, onMounted, ref, watch } from "vue" |
| | | import { sendPationCode, sendPationSet } from '../../samples/sockteStomp' |
| | | import { formatDate } from '@/utils/formatTime' |
| | | import state1 from '@/assets/state1.png' |
| | | import { number } from 'yargs' |
| | | |
| | | export default { |
| | |
| | | console.log(timer) |
| | | } |
| | | const state = reactive({ |
| | | state1:state1, |
| | | dialogVisible: false, |
| | | isActive: false, |
| | | inputCode: "", |
| | |
| | | <el-dialog title="提示" v-model="isLink" width="30%"> |
| | | <span>sockte连接失败正在重连。。。。。。</span> |
| | | </el-dialog> |
| | | <div> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <div class="tale"> |
| | | <img class="imgss" alt="Vue logo" src="@/assets/logo.png" /> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <!-- <div> sockte连接状态{{isLink}}</div> |
| | | <div> 网络连接状态{{netLink}}</div> --> |
| | | <el-input id="inputCode" @change="inputChabge" v-model="inputCode" ref="inputRef" placeholder="" /> |
| | | <div class="imglogo"></div> |
| | | |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <div class="datess"> |
| | | {{ clockNum }} |
| | | <el-col :span="2"> |
| | | <el-input id="inputCode" style="width:5px;" @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> |
| | | <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-container"> |
| | | <div class="grid-item"> |
| | | <el-avatar shape="square" :size="100" fit="cover" :src="patientInfo.patientAvatarIcon" /> |
| | | <div class="zsf">{{ patientInfo.name }}</div> |
| | | </div> |
| | | <div class="grid-item"> |
| | | <div class="lableText">当前时间:</div> |
| | | <div class="conText">{{ Newdate }}</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> |
| | | <div class="grid-item"> |
| | | <div class="lableText">透析号:</div> |
| | | <div class="conText">{{ patientInfo.hemoCode }}</div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <div class="xyjnumber"> |
| | | {{ gao_ya }}/{{ di_ya }} |
| | | </div> |
| | | <div class="grid-item"> |
| | | <div class="lableText">机号:</div> |
| | | <div class="conText">{{ patientInfo.deviceCode }}</div> |
| | | </el-row> |
| | | </div> |
| | | <div class="grid-item"> |
| | | <div class="lableText">序号:</div> |
| | | <div class="conText">0</div> |
| | | </div> |
| | | <div class="grid-item"> |
| | | <div class="lableText">干体重(kg):</div> |
| | | <div class="conText">{{ patientInfo.pureWeight }}</div> |
| | | </div> |
| | | <div class="grid-item"> |
| | | </el-col> |
| | | <el-col :span="12" class="item"> |
| | | <div> |
| | | <div class="lableText" v-if="weightInfo.state === 2">透前称重(kg):</div> |
| | | <div class="lableText" v-if="weightInfo.state === 1" style="color:red">体重秤通讯服务正常运行但未联通设备</div> |
| | | <div class="lableText" v-if="weightInfo.state === 0" style="color:red">体重秤通讯服务不正常 </div> |
| | | <div class="conText">{{ weightInfo.result }}</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> |
| | | <div class="grid-item"> |
| | | <div class="lableText">目标脱水量:</div> |
| | | <div class="conText">{{ aimTSL }}</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> |
| | | <div class="grid-item"> |
| | | <div class="lableText" v-if="xyjInfo.state === 2">血压:</div> |
| | | <div class="lableText" v-if="xyjInfo.state === 1" style="color:red">血压通讯服务正常运行但未联通设备</div> |
| | | <div class="lableText" v-if="xyjInfo.state === 0" style="color:red">血压通讯服务不正常 </div> |
| | | <div class="conText">{{ gao_ya }}/{{ di_ya }}</div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <div class="xyjnumber"> |
| | | {{ weightInfo.result }} |
| | | </div> |
| | | </el-row> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </template> |
| | | <style> |
| | | body { |
| | | background: #f3f7fb; |
| | | <style lang="scss"> |
| | | .home{ |
| | | background: #F3F6FE; |
| | | } |
| | | |
| | | .coldev { |
| | | height: 200px; |
| | | background: #ffff; |
| | | .item{ |
| | | padding: 20px; |
| | | } |
| | | |
| | | .grid-container { |
| | | display: grid; |
| | | grid-template-columns: 33% 33% 33%; |
| | | grid-gap: 20px; |
| | | background: #f3f7fb; |
| | | padding: 10px; |
| | | } |
| | | |
| | | .grid-container>div { |
| | | background: #ffffff; |
| | | height: 150px; |
| | | text-align: center; |
| | | .item>div{ |
| | | background: #FFFFFF; |
| | | box-shadow: 1px 2px 4px 0px rgba(201,223,246,0.5000); |
| | | border-radius: 10px; |
| | | padding: 10px; |
| | | height: 330px; |
| | | } |
| | | |
| | | .lableText { |
| | | text-align: left; |
| | | /* height: 50px; */ |
| | | /* line-height: 50px; */ |
| | | padding-top: 30px; |
| | | font-size: 13pt; |
| | | .chenlabe{ |
| | | padding-top: 15%; |
| | | } |
| | | |
| | | .conText { |
| | | height: 50px; |
| | | line-height: 50px; |
| | | padding-top: 30px; |
| | | color: #769aff; |
| | | font-size: 20pt; |
| | | .chenlabel{ |
| | | height: 50%; |
| | | // background: #d9ecff; |
| | | } |
| | | |
| | | .imgss { |
| | | height: 30px; |
| | | .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; |
| | | } |
| | | |
| | | .tale { |
| | | height: 30px; |
| | | line-height: 50px; |
| | | /* text-align: center; */ |
| | | .inputClasss{ |
| | | height: 42px; |
| | | font-size: 30px; |
| | | font-family: AlibabaPuHuiTi-Medium, AlibabaPuHuiTi; |
| | | font-weight: 500; |
| | | color: #769AFF; |
| | | line-height: 42px; |
| | | letter-spacing: 1px; |
| | | } |
| | | |
| | | .zsf { |
| | | font-size: 18pt; |
| | | margin-top: 15pt; |
| | | color: #769aff; |
| | | } |
| | | |
| | | .active { |
| | | background: #c1c2c6; |
| | | color: black; |
| | | .patimg{ |
| | | width: 227px;height: 315px;border-radius: 4px; |
| | | padding-left: 13px; |
| | | padding-top: 17px; |
| | | } |
| | | |
| | | .datess { |
| | | .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; |
| | | padding-right: 20px; |
| | | height: 30px; |
| | | line-height: 30px; |
| | | color: red; |
| | | font-weight: 1000; |
| | | } |
| | | .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{ |
| | | 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> |