| | |
| | | import step7 from '@/assets/mp3/chongfuchengzhong.mp3' |
| | | import login from '@/views/login/index.vue' |
| | | import { confingInfoStore } from '@/stores/StoresConfing' |
| | | import { ElMessage } from 'element-plus' |
| | | |
| | | export default { |
| | | name: 'hoem', |
| | |
| | | console.log('患者信息变化',patientInfo.value) |
| | | patientCodeLs='' |
| | | console.log(patientCodeLs,'患者codec初始化') |
| | | |
| | | if (patientInfo.value.id !== 0) { |
| | | if (patientInfo.value.id !== 0&&patientInfo.value.name!==''&&patientInfo.value.isScheduled===1) { |
| | | let str=`${patientInfo.value.name}识别成功。` |
| | | speech.value?.speak({text:str}).then(()=>{ |
| | | console.log("播报完成...") |
| | |
| | | } |
| | | // 没有排班 |
| | | else if(patientInfo.value.isScheduled===0){ |
| | | speech.value?.speak({text:"当前患者没有排班,不能自动签到"}).then(()=>{ |
| | | speech.value?.speak({text:`${patientInfo.value.name}今日没有排班,不能自助签到`}).then(()=>{ |
| | | console.log("播报完成...") |
| | | }) |
| | | if(isUseFaceRecogService.value){ |
| | |
| | | // api上传 |
| | | updatePatient(mode).then(re=>{ |
| | | console.log(re) |
| | | }).catch(()=>{ |
| | | ElMessage.error('结果上报出错,请联系后台管理员') |
| | | }) |
| | | // sendPationSet(mode) |
| | | patientCodeLs=mode.patientCode |