| | |
| | | import step2 from '@/assets/mp3/step2.mp3' |
| | | import step1 from '@/assets/mp3/step1.mp3' |
| | | import step7 from '@/assets/mp3/chongfuchengzhong.mp3' |
| | | import login from '@/views/login/index.vue' |
| | | import { confingInfoStore } from '@/stores/StoresConfing' |
| | | |
| | | export default { |
| | | name: 'hoem', |
| | | components: { login }, |
| | | setup() { |
| | | let timer: any = 0 |
| | | const loginRef = ref(); |
| | | const user = userInfoStore() |
| | | const sockte = sockteStore() |
| | | const inputRef = ref() |
| | |
| | | const AudioRef5=ref() |
| | | const AudioRef7=ref() |
| | | let patientCodeLs='' |
| | | |
| | | const isUseFaceRecogService=ref(false) |
| | | const isLink = computed(() => { |
| | | return !sockte.isLink |
| | | }) |
| | |
| | | console.log('患者信息变化',patientInfo.value) |
| | | patientCodeLs='' |
| | | console.log(patientCodeLs,'患者codec初始化') |
| | | if (patientInfo.value.id !== 0) { |
| | | AudioRef.value.play(); |
| | | sockteStore().setweightSockte({ |
| | | type: "体重秤", |
| | | state: 2, |
| | | deviceName: "", |
| | | result: "0", |
| | | resultTime: "" |
| | | }) |
| | | sockteStore().setxyjSockte({ |
| | | type: "血压计", |
| | | state: 2, |
| | | deviceName: "", |
| | | result: "", |
| | | resultTime: "" |
| | | }) |
| | | settime() |
| | | |
| | | if (patientInfo.value.id !== 0) { |
| | | AudioRef.value.play(); |
| | | sockteStore().setweightSockte({ |
| | | type: "体重秤", |
| | | state: 2, |
| | | deviceName: "", |
| | | result: "0", |
| | | resultTime: "" |
| | | }) |
| | | sockteStore().setxyjSockte({ |
| | | type: "血压计", |
| | | state: 2, |
| | | deviceName: "", |
| | | result: "", |
| | | resultTime: "" |
| | | }) |
| | | settime() |
| | | |
| | | } |
| | | else if(patientInfo.value.name===''){ |
| | | AudioRef4.value.play(); |
| | | return |
| | | } |
| | | // 没有找到患者 |
| | | else if(patientInfo.value.name===''){ |
| | | AudioRef4.value.play(); |
| | | if(isUseFaceRecogService.value){ |
| | | state.dialogVisible=true |
| | | } |
| | | else if(patientInfo.value.isScheduled===0){ |
| | | AudioRef5.value.play(); |
| | | return |
| | | } |
| | | return |
| | | } |
| | | // 没有排班 |
| | | else if(patientInfo.value.isScheduled===0){ |
| | | AudioRef5.value.play(); |
| | | if(isUseFaceRecogService.value){ |
| | | state.dialogVisible=true |
| | | } |
| | | return |
| | | } |
| | | } |
| | | ); |
| | | watch( |
| | |
| | | watch( |
| | | () => dkqInfo.value.resultTime, |
| | | () => { |
| | | state.dialogVisible=false |
| | | console.log(dkqInfo.value,'读卡器') |
| | | if (dkqInfo.value.result !== ''&&dkqInfo.value.result !== undefined) { |
| | | const code=dkqInfo.value.result.split(",")[0] |
| | |
| | | } |
| | | onMounted(() => { |
| | | console.log('页面初始化', os.hostname()) |
| | | console.log('页面初始化读取配置文件',confingInfoStore().confingInfo) |
| | | // 是否开启脸识别 |
| | | isUseFaceRecogService.value=confingInfoStore().confingInfo.isUseFaceRecogService |
| | | if(isUseFaceRecogService.value){ |
| | | state.dialogVisible=true |
| | | } |
| | | state.haodu=(document.documentElement.clientHeight-180)/2+'px' |
| | | state.clockNum = patientInfoStore().viewNumber |
| | | setInterval(function () { |
| | |
| | | |
| | | }) |
| | | return { |
| | | ...toRefs(state), guyanbi,isLink, netLink, weightInfo, patientInfo, xyjInfo, inputRef, AudioRef0, AudioRef, AudioRef4,AudioRef5, AudioRef2, AudioRef3,AudioRef7, inputChabge |
| | | ...toRefs(state), guyanbi, loginRef,isLink, netLink, weightInfo, patientInfo, xyjInfo, inputRef, AudioRef0, AudioRef, AudioRef4,AudioRef5, AudioRef2, AudioRef3,AudioRef7, inputChabge |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <template> |
| | | <div class="pagehome"> |
| | | <div > |
| | | <div class="pagehome"> |
| | | <el-dialog v-model="dialogVisible" width="80%" center :show-close="false"> |
| | | <template> |
| | | <div class="my-header"> |
| | | <h4>人脸识别中。。。</h4> |
| | | </div> |
| | | </template> |
| | | <login ref="loginRef" /> |
| | | </el-dialog> |
| | | </div> |
| | | <!-- 提醒刷卡 --> |
| | | <audio :src="step1" ref="AudioRef0" id="eventAudio1"></audio> |
| | | <!-- 患者信息读取成功 --> |
| | |
| | | <el-dialog title="提示" v-model="isLink" width="30%"> |
| | | <span>sockte连接失败正在重连。。。。。。</span> |
| | | </el-dialog> |
| | | <!-- <div> |
| | | <el-button type="primary" @click="dialogVisible=true" size="small">测试</el-button> |
| | | </div> --> |
| | | <el-row class="header"> |
| | | <el-col :span="8"> |
| | | <img |
| | |
| | | </div> |
| | | |
| | | </template> |
| | | <style scoped> |
| | | <style lang="less" scoped> |
| | | body{ |
| | | background: #F3F6FE; |
| | | padding: 0; |
| | |
| | | |
| | | |
| | | |
| | | |
| | | </style> |