| | |
| | | deviceCode:resultInfo.deviceCode===null?"":resultInfo.deviceCode, |
| | | hemoCode:resultInfo.hemoCode===null?"":resultInfo.hemoCode, |
| | | pureWeight:resultInfo.pureWeight===null?"":resultInfo.pureWeight, |
| | | datetime:da |
| | | datetime:da, |
| | | isScheduled:resultInfo.isScheduled |
| | | } |
| | | // 写入vuex里 |
| | | patientInfoStore().setpatientInfo(info) |
| | |
| | | } |
| | | const PatientCallback=function(message:any){ |
| | | if (message.body) { |
| | | console.log('00000000000000',message.body) |
| | | const data=JSON.parse(message.body) |
| | | console.log(data,'患者信息读取') |
| | | writePatient(data) |
| | |
| | | hemoCode:'', |
| | | pureWeight:'', |
| | | datetime:'', |
| | | isScheduled:0, |
| | | |
| | | })// 初始值 |
| | | const viewNumber=ref(60) |
| | |
| | | import state2 from '@/assets/state2.png' |
| | | import state3 from '@/assets/state3.png' |
| | | import logo from '@/assets/LOGO.png' |
| | | import step6 from '@/assets/mp3/step6.mp3' |
| | | import step5 from '@/assets/mp3/step5.mp3' |
| | | import step4 from '@/assets/mp3/step4.mp3' |
| | | import step3 from '@/assets/mp3/step3.mp3' |
| | | import step2 from '@/assets/mp3/step2.mp3' |
| | | import step1 from '@/assets/mp3/step1.mp3' |
| | | |
| | | export default { |
| | | setup() { |
| | |
| | | const AudioRef2 = ref() |
| | | const AudioRef3 = ref() |
| | | const AudioRef4=ref() |
| | | const AudioRef5=ref() |
| | | const isLink = computed(() => { |
| | | return !sockte.isLink |
| | | }) |
| | |
| | | const state = reactive({ |
| | | caozuo:0,// 点击10下才能关闭 |
| | | logo:logo, |
| | | step5:step5, |
| | | step4:step4, |
| | | step3:step3, |
| | | step2:step2, |
| | | step1:step1, |
| | | step6:step6, |
| | | state1:state1, |
| | | state2:state2, |
| | | state3:state3, |
| | |
| | | watch( |
| | | () => patientInfo.value.datetime, |
| | | () => { |
| | | console.log('患者信息变化',patientInfo.value) |
| | | if(patientInfo.value.isScheduled===0){ |
| | | AudioRef5.value.play(); |
| | | return |
| | | } |
| | | if (patientInfo.value.id !== 0) { |
| | | AudioRef.value.play(); |
| | | sockteStore().setweightSockte({ |
| | |
| | | }, 1000) |
| | | }) |
| | | return { |
| | | ...toRefs(state), guyanbi,isLink, netLink, weightInfo, patientInfo, xyjInfo, inputRef, AudioRef0, AudioRef, AudioRef4, AudioRef2, AudioRef3, inputChabge |
| | | ...toRefs(state), guyanbi,isLink, netLink, weightInfo, patientInfo, xyjInfo, inputRef, AudioRef0, AudioRef, AudioRef4,AudioRef5, AudioRef2, AudioRef3, inputChabge |
| | | } |
| | | } |
| | | } |
| | |
| | | <audio src="https://dhcdn.leon056.com/hemo/autoselfsign/step4.mp3" ref="AudioRef3" id="eventAudio4"></audio> |
| | | <!-- 没有找到患者 --> |
| | | <audio src="https://dhcdn.leon056.com/hemo/autoselfsign/step5.mp3" ref="AudioRef4" id="eventAudio5"></audio> |
| | | <!-- 没有找到排班 --> |
| | | <audio :src="step6" ref="AudioRef5" id="eventAudio6"></audio> |
| | | <!-- <el-dialog title="提示" v-model="netLink" width="30%"> |
| | | <span>无法链接到网络!</span> |
| | | </el-dialog> --> |