| | |
| | | |
| | | </template> |
| | | <template v-else> |
| | | <template v-if="patientInfo.isAfterMed===0"> |
| | | <div style="font-size: 50px"> {{ patientInfo.设备分区名称 }}<br/>{{ patientInfo.deviceNo }}</div> |
| | | </template> |
| | | <template v-else> |
| | | <!-- 显示干体重 --> |
| | | <template v-if="configData.gantiziShow"> |
| | | {{patientInfo.pureWeight}} |
| | | |
| | | |
| | | </template> |
| | | <!-- 显示分区 --> |
| | | <template v-else> |
| | | <div style="font-size: 50px"> {{ patientInfo.设备分区名称 }}<br/>{{ patientInfo.deviceNo }}</div> |
| | | </template> |
| | | |
| | | </template> |
| | |
| | | // 人脸识别成功后 1查看是否开启测温 |
| | | // console.log(`患者信息识别成功:${patientInfo.value.name}`) |
| | | ipcRenderer.invoke('logger', `患者信息识别成功:${patientInfo.value.name}`) |
| | | let str = `${patientInfo.value.patientNamePyFull?patientInfo.value.patientNamePyFull:patientInfo.value.name}识别成功,分区:${patientInfo.value.设备分区名称},床号:${patientInfo.value.deviceNo},` |
| | | let str = `${patientInfo.value.patientNamePyFull?patientInfo.value.patientNamePyFull:patientInfo.value.name}识别成功,分区 ${patientInfo.value.设备分区名称},床号:${patientInfo.value.deviceNo},` |
| | | dialogVisible.value = false |
| | | speech.value?.speak({ text: str }).then(() => { |
| | | }) |
| | |
| | | else if (patientInfo.value.name === '') { |
| | | timer=new Date() |
| | | ipcRenderer.invoke('logger', '接收到的患者为空') |
| | | console.log('接收到的患者为空') |
| | | if (isUseFaceRecogService.value) { |
| | | dialogVisible.value = true |
| | | } |
| | |
| | | }).catch(re=>{ |
| | | ElMessage('结果发送失败') |
| | | console.log('结果发送失败') |
| | | ipcRenderer.invoke('logger', `结果发送失败:第${fasongNum.value}次,3秒后重新发送`) |
| | | ipcRenderer.invoke('logger', `结果发送失败:${patientInfo.value.name}第${fasongNum.value}次,3秒后重新发送`) |
| | | ipcRenderer.invoke('logger', `发送失败服务器返回异常:${JSON.stringify(re)}`) |
| | | if(fasongNum.value<3){ |
| | | setTimeout(sundModeTz,5000); |
| | | } |
| | |
| | | }).catch(re=>{ |
| | | ElMessage('结果发送失败') |
| | | console.log('结果发送失败') |
| | | ipcRenderer.invoke('logger', `结果发送失败:第${fasongNum.value}次,2秒后重新发送`) |
| | | ipcRenderer.invoke('logger', `结果发送失败:${patientInfo.value.name}第${fasongNum.value}次,3秒后重新发送`) |
| | | ipcRenderer.invoke('logger', `发送失败服务器返回异常:${JSON.stringify(re)}`) |
| | | if(fasongNum.value<3){ |
| | | setTimeout(sundModeXyj,2000); |
| | | } |