| | |
| | | () => { |
| | | console.log('患者信息变化',patientInfo.value) |
| | | patientCodeLs='' |
| | | patientCodeLsXy='' |
| | | console.log(patientCodeLs,'患者codec初始化') |
| | | 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("播报完成...") |
| | | }) |
| | | sockteStore().setweightSockte({ |
| | | type: "体重秤", |
| | | state: 2, |
| | |
| | | resultTime: "" |
| | | }) |
| | | settime() |
| | | 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("播报完成...") |
| | | }) |
| | | |
| | | } |
| | | // 没有找到患者 |
| | |
| | | } |
| | | console.log('发送患者结果', mode) |
| | | if(patientCodeLsXy===mode.patientCode){ |
| | | speech.value?.speak({text:'不能重复测量血压,请重新失败患者再测量血压'}).then(()=>{ |
| | | speech.value?.speak({text:'不能重复测量血压,请重新识别患者再测量血压'}).then(()=>{ |
| | | console.log("播报完成...") |
| | | }) |
| | | console.log('如果是重复提交 就不要上传到api') |