| | |
| | | import { reactive,computed, toRefs,onMounted ,ref,watch} from "vue" |
| | | import{sendPationCode,sendPationSet} from '../../samples/sockteStomp' |
| | | import {formatDate} from '@/utils/formatTime' |
| | | import { number } from 'yargs' |
| | | |
| | | export default { |
| | | setup() { |
| | |
| | | pureWeight:'' |
| | | }) |
| | | state.clockNum = patientInfoStore().viewNumber |
| | | sockteStore().setweightSockte({ |
| | | type:'体重秤', |
| | | deviceName: '', |
| | | result: '', |
| | | resultTime: '', |
| | | state: 2 |
| | | }) |
| | | sockteStore().setweightSockte({ |
| | | type:'血压计', |
| | | deviceName: '', |
| | | result: '', |
| | | resultTime: '', |
| | | state: 2 |
| | | }) |
| | | } |
| | | }, 1000) |
| | | // 记录定时器 |
| | |
| | | Newdate:"", |
| | | clockNum:60, |
| | | timerNum:0,//定时器数 |
| | | aimTSL:0,// 目标脱水量, |
| | | aimTSL: '',// 目标脱水量, |
| | | gao_ya:"",//高压 |
| | | di_ya:"",//低压 |
| | | mai_bu:""//脉搏 |
| | |
| | | ()=>patientInfo.value.id, |
| | | ()=>{ |
| | | console.log('患者变化了',patientInfo) |
| | | if(patientInfo.value.id!==0) |
| | | { |
| | | if (patientInfo.value.id !== 0) { |
| | | AudioRef.value.play(); |
| | | sockteStore().setweightSockte({ |
| | | type:"体重秤", |
| | |
| | | sendPationSet(mode) |
| | | // 计算目标脱水量 |
| | | if(Number(weightInfo.value.result)>0&&Number(patientInfo.value.pureWeight)!==0){ |
| | | state.aimTSL=Number(weightInfo.value.result)-Number(patientInfo.value.pureWeight) |
| | | state.aimTSL = (Number(weightInfo.value.result) - Number(patientInfo.value.pureWeight)).toFixed(2) |
| | | } |
| | | } |
| | | } |
| | |
| | | state.Newdate=formatDate(new Date(),"YYYY-mm-dd HH:MM:SS") |
| | | },1000) |
| | | }) |
| | | return{ ...toRefs(state),isLink,netLink,weightInfo,patientInfo,xyjInfo,inputRef,AudioRef0,AudioRef,AudioRef2,AudioRef3,inputChabge |
| | | return { |
| | | ...toRefs(state), isLink, netLink, weightInfo, patientInfo, xyjInfo, inputRef, AudioRef0, AudioRef, AudioRef2, AudioRef3, inputChabge |
| | | } |
| | | } |
| | | } |
| | |
| | | <audio src="https://dhcdn.leon056.com/hemo/autoselfsign/step3.mp3" ref="AudioRef2" id="eventAudio"></audio> |
| | | <!-- 血压结果回传成功 --> |
| | | <audio src="https://dhcdn.leon056.com/hemo/autoselfsign/step4.mp3" ref="AudioRef3" id="eventAudio"></audio> |
| | | <el-dialog |
| | | title="提示" |
| | | v-model="netLink" |
| | | width="30%"> |
| | | <el-dialog title="提示" v-model="netLink" width="30%"> |
| | | <span>无法链接到网络!</span> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="提示" |
| | | v-model="isLink" |
| | | width="30%"> |
| | | <el-dialog title="提示" v-model="isLink" width="30%"> |
| | | <span>sockte连接失败正在重连。。。。。。</span> |
| | | </el-dialog> |
| | | <el-row> |
| | |
| | | </el-row> |
| | | <div class="grid-container"> |
| | | <div class="grid-item"> |
| | | <el-avatar |
| | | shape="square" |
| | | :size="100" |
| | | fit="cover" |
| | | :src="patientInfo.patientAvatarIcon" |
| | | /> |
| | | <el-avatar shape="square" :size="100" fit="cover" :src="patientInfo.patientAvatarIcon" /> |
| | | <div class="zsf">{{patientInfo.name}}</div> |
| | | </div> |
| | | <div class="grid-item"> |
| | |
| | | body { |
| | | background: #f3f7fb; |
| | | } |
| | | |
| | | .coldev { |
| | | height: 200px; |
| | | background: #ffff; |
| | | } |
| | | |
| | | .grid-container { |
| | | display: grid; |
| | | grid-template-columns: 33% 33% 33%; |
| | |
| | | background: #f3f7fb; |
| | | padding: 10px; |
| | | } |
| | | |
| | | .grid-container > div { |
| | | background: #ffffff; |
| | | height: 150px; |
| | |
| | | border-radius: 10px; |
| | | padding: 10px; |
| | | } |
| | | |
| | | .lableText { |
| | | text-align: left; |
| | | /* height: 50px; */ |
| | |
| | | padding-top: 30px; |
| | | font-size: 13pt; |
| | | } |
| | | |
| | | .conText { |
| | | height: 50px; |
| | | line-height: 50px; |
| | |
| | | color: #769aff; |
| | | font-size: 20pt; |
| | | } |
| | | |
| | | .imgss { |
| | | height: 30px; |
| | | } |
| | | |
| | | .tale { |
| | | height: 30px; |
| | | line-height: 50px; |
| | | /* text-align: center; */ |
| | | } |
| | | |
| | | .zsf { |
| | | font-size: 18pt; |
| | | margin-top: 15pt; |
| | | color: #769aff; |
| | | } |
| | | |
| | | .active{ |
| | | background: #c1c2c6; |
| | | color: black; |
| | | } |
| | | |
| | | .datess{ |
| | | text-align: right; |
| | | padding-right: 20px; |