| | |
| | | <el-row> |
| | | <el-col :span="24" style="text-align: right; line-height: 67px;padding-right: 0px; font-size: 40px;font-weight: 400;color: #EB6F1C;"> |
| | | <div v-if="!dialogVisible">{{clockNum}}S</div> |
| | | <el-input v-else v-model="inputCode" ref="inputRef" id="inputCode" style="width: 200px; height: 40px;" @change="inputChabge" |
| | | <el-input v-else v-model="inputCode" ref="inputRef" id="inputCode" style="width: 200px; height: 40px;ime-mode:active" @change="inputChabge" |
| | | placeholder="请输入患者卡号或扫描条码" /> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | import {base64toFile} from '@/samples/faceApi' |
| | | import{initPort} from '@/samples/portApi' |
| | | import{initPort as oumulongHbp9030 } from '@/samples/deviceApi/oumulong-HBP-9030' |
| | | import{initPort as TM2655VP} from '@/samples/deviceApi/TM2655VP' |
| | | import{initPort as zhiRongT605 } from '@/samples/deviceApi/zhiRongT605' |
| | | import{initPort as taiHengM523 } from '@/samples/deviceApi/taiHengM523' |
| | | import{initPort as XK3190A12 } from '@/samples/deviceApi/XK3190A12' |
| | | // 读取体重文件 |
| | | import{toDataTz,todatatzs } from '@/samples/deviceApi/seca101' |
| | | import { ElLoading, ElMessage } from 'element-plus' |
| | | import { el } from 'element-plus/es/locale' |
| | | let trackerTask: any = null; |
| | | // 标识用的画布 |
| | | const myCanvas = ref<HTMLCanvasElement | null>(null); |
| | |
| | | }else if(Number(patientInfo.value.pureWeight) !== 0&&patientInfo.value.isAfterMed===1 && patientInfo.value.preWeight>10){ |
| | | aimTSL.value = (Number(patientInfo.value.preWeight)- Number(patientInfo.value.pureWeight) - Number(patientInfo.value.clothesWeight)).toFixed(2) |
| | | } |
| | | }else if(patientInfo.value.code===''&&weightInfo.value.result !== "0"){ |
| | | speech.value?.speak({ text: "没有识别的患者,请先验证患者" }).then(() => { |
| | | // console.log("播报完成...") |
| | | }) |
| | | } |
| | | } |
| | | ); |
| | |
| | | ); |
| | | // 文本框点击事件 |
| | | const inputChabge = () => { |
| | | sendPationCodeApi(inputCode.value) |
| | | setTimeout(function () { |
| | | inputCode.value = '' |
| | | }, 5000) |
| | | console.log(inputCode.value.substring(0,4)==='1553') |
| | | // 更具沅江肾病医院的二维码匹配 |
| | | if(inputCode.value.substring(0,4)==='1553'){ |
| | | const list=inputCode.value.split(':') |
| | | console.log(list) |
| | | sendPationCodeApi(list[1]) |
| | | setTimeout(function () { |
| | | inputCode.value = '' |
| | | }, 5000) |
| | | }else{ |
| | | sendPationCodeApi(inputCode.value) |
| | | setTimeout(function () { |
| | | inputCode.value = '' |
| | | }, 5000) |
| | | } |
| | | |
| | | |
| | | } |
| | | // 点击10下关闭程序 |
| | | const guyanbi = () => { |
| | |
| | | } |
| | | // 是否开启血压计联机 |
| | | if(configData.value.Is_xyj){ |
| | | oumulongHbp9030(configData.value.xueyanjiPortPath,configData.value.xueyanjiBaudRate) |
| | | if(configData.value.xyj_type==='TM2655'){ |
| | | TM2655VP(configData.value.xueyanjiPortPath,configData.value.xueyanjiBaudRate) |
| | | }else{ |
| | | oumulongHbp9030(configData.value.xueyanjiPortPath,configData.value.xueyanjiBaudRate) |
| | | } |
| | | } |
| | | // 是否开启志荣体重秤联机 |
| | | if(configData.value.Is_tzc){ |
| | |
| | | // seca101读取文件 |
| | | else if(configData.value.tzc_type==='seca101'){ |
| | | console.log('体重是读取文件') |
| | | }// 耀华XK3190-A12 |
| | | else if(configData.value.tzc_type==='XK3190-A12'){ |
| | | XK3190A12(configData.value.tzcPortPath,configData.value.tzcBaudRate) |
| | | } |
| | | else{ |
| | | zhiRongT605(configData.value.tzcPortPath,configData.value.tzcBaudRate) |
| | |
| | | }else { |
| | | timeShidaun.value='晚上好!' |
| | | } |
| | | //5秒一次验证读取体重数据 |
| | | console.log(clockNum.value,clockNum.value%5==0) |
| | | if(clockNum.value%3==0){ |
| | | // 验证人脸识别已经通过但是还没有体重数据主动获取数据 |
| | | if(patientInfo.value.name!==''&&weightInfo.value.result==='0'){ |
| | | console.log('主动获取体重') |
| | | todatatzs(patientInfo.value.datetime) |
| | | } |
| | | // 验证人脸识别已经通过但是还没有体重数据主动获取数据 |
| | | if(patientInfo.value.name!==''&&weightInfo.value.result==='0'&&configData.value.Is_tzc){ |
| | | console.log('主动获取体重') |
| | | todatatzs(patientInfo.value.datetime) |
| | | } |
| | | inputRef.value.focus(); |
| | | |