| | |
| | | const weightInfo = computed(() => { |
| | | return sockte.weightSockte |
| | | }) |
| | | const faceInfo = computed(() => { |
| | | return sockte.faceInfoSockte |
| | | }) |
| | | const xyjInfo = computed(() => { |
| | | return sockte.xyjSockte |
| | | }) |
| | |
| | | } |
| | | // 没有找到患者 |
| | | else if (patientInfo.value.name === '') { |
| | | speech.value?.speak({ text: "没有找到患者,请重新刷卡" }).then(() => { |
| | | console.log("播报完成...") |
| | | }) |
| | | // speech.value?.speak({ text: "没有找到患者,请重新刷卡" }).then(() => { |
| | | // console.log("播报完成...") |
| | | // }) |
| | | if (isUseFaceRecogService.value) { |
| | | state.dialogVisible = true |
| | | } |
| | |
| | | console.log("播报完成...") |
| | | }) |
| | | } |
| | | else { |
| | | if( Number(weightInfo.value.result)<=10){ |
| | | return false |
| | | } |
| | | else if (weightInfo.value.result !== "0") { |
| | | if (weightInfo.value.result !== "0") { |
| | | // 发送结果到sockte服务 |
| | | const mode = { |
| | | patientCode: patientInfo.value.code, |
| | |
| | | patientCodeLs = mode.patientCode |
| | | } |
| | | else { |
| | | console.log(`patientCodeLs===${patientCodeLs} ,mode.patCode${mode.patientCode}`) |
| | | speech.value?.speak({ text: "不能重复称重,请先刷卡然后再称重" }).then(() => { |
| | | console.log("播报完成...") |
| | | }) |
| | | // console.log(`patientCodeLs===${patientCodeLs} ,mode.patCode${mode.patientCode}`) |
| | | // speech.value?.speak({ text: "不能重复称重,请先刷卡然后再称重" }).then(() => { |
| | | // console.log("播报完成...") |
| | | // }) |
| | | } |
| | | // 计算目标脱水量 |
| | | if (Number(weightInfo.value.result) > 0 && Number(patientInfo.value.pureWeight) !== 0) { |
| | | state.aimTSL = (Number(weightInfo.value.result) - Number(patientInfo.value.pureWeight)).toFixed(2) |
| | | state.aimTSL = (Number(weightInfo.value.result) - Number(patientInfo.value.pureWeight)- Number(patientInfo.value.clothesWeight)).toFixed(2) |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | ); |
| | | watch( |
| | |
| | | } |
| | | } |
| | | ); |
| | | watch( |
| | | ()=>faceInfo.value.result, |
| | | ()=>{ |
| | | console.log('页面收到了人脸识别') |
| | | sendPationCodeApi(faceInfo.value.result) |
| | | // console.log(faceInfo.value.result) |
| | | } |
| | | ) |
| | | watch(() => viewNumber, |
| | | () => { |
| | | state.clockNum = viewNumber.value |
| | |
| | | <el-row class="rowdiv"> |
| | | <el-col :span="12"> |
| | | <div class="lableclass"> |
| | | 机号: |
| | | 衣物重(kg): |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="textclass"> |
| | | {{ patientInfo.deviceCode }} |
| | | {{ patientInfo.clothesWeight }} |
| | | </div> |
| | | </el-col> |
| | | </el-row> |