34
chenyc
2023-05-19 5f863174c87662b967d4c5e123ea0cd3e6e11ebb
src/views/home/index.vue
@@ -106,6 +106,7 @@
    }
    //发送消除某些状态
    const fuxuan=()=>{
      console.log('返回---')
      const datetimeCON = patientInfoStore().patientInfo.datetime
      // 获取是否是一台主机连2个设备
      const islinkDouble=confingInfoStore().confingInfo.islinkDouble
@@ -135,6 +136,13 @@
          resultTime: '',
          state: 2
        })
        sockteStore().setfaceSockte({
          type: '人脸识别',
          deviceName: '',
          result: '',
          resultTime: '',
          state: 2
          })
        state.clockNum = patientInfoStore().viewNumber
        state.aimTSL = ''
        state.gao_ya = ''
@@ -181,7 +189,7 @@
        if (patientInfo.value.id !== 0 && patientInfo.value.name !== '' && patientInfo.value.isScheduled === 1) {
          // console.log(`患者信息识别成功:${patientInfo.value.name}`)
          ipcRenderer.invoke('logger', `患者信息识别成功:${patientInfo.value.name}`)
          let str = `${patientInfo.value.name}识别成功。`
          let str = `${patientInfo.value.name}识别成功。床号:${patientInfo.value.deviceNo}`
          state.dialogVisible = false
          speech.value?.speak({ text: str }).then(() => {
          })
@@ -270,6 +278,8 @@
            // 计算目标脱水量
            if (Number(weightInfo.value.result) > 0 && Number(patientInfo.value.pureWeight) !== 0&&patientInfo.value.isAfterMed===0) {
              state.aimTSL = (Number(weightInfo.value.result) - Number(patientInfo.value.pureWeight)- Number(patientInfo.value.clothesWeight)).toFixed(2)
            }else if(Number(weightInfo.value.result) > 0 && Number(patientInfo.value.pureWeight) !== 0&&patientInfo.value.isAfterMed===1 && patientInfo.value.preWeight>10){
              state.aimTSL = (Number(weightInfo.value.result) - Number(patientInfo.value.preWeight)- Number(patientInfo.value.clothesWeight)).toFixed(2)
            }
          }
      }
@@ -438,7 +448,7 @@
      },3000)
    })
    return {
      ...toRefs(state),isUseFaceRecogService, guyanbi, loginRef, isLink, netLink, weightInfo, patientInfo, xyjInfo, inputRef, inputChabge
      ...toRefs(state),isUseFaceRecogService,fuxuan, guyanbi, loginRef, isLink, netLink, weightInfo, patientInfo, xyjInfo, inputRef, inputChabge
    }
  }
}
@@ -446,13 +456,13 @@
<template>
  <div class="devcont">
    <div class="pagehome" v-if="isUseFaceRecogService">
      <el-dialog v-model="dialogVisible" width="800px" center :show-close="false">
      <el-dialog v-model="dialogVisible" :close-on-click-modal="false" width="800px" center :show-close="false">
        <template>
          <div class="my-header">
            <h4>人脸识别中。。。</h4>
          </div>
        </template>
        <login ref="loginRef" />
        <login ref="loginRef" :dialogVisible="dialogVisible" />
      </el-dialog>
    </div>
    <el-dialog title="提示" v-model="netLink" width="30%">
@@ -480,7 +490,7 @@
            <el-col :span="8" class="imgclass">
              <el-image style="width: 100%; height: 85%" :src="patientInfo.patientAvatarIcon" fit="cover" />
            </el-col>
            <el-col :span="15" class="userinfo">
            <el-col :span="15" class="userinfo" style="margin-top: -5%;">
              <el-row>
                <el-col :span="12">
                  <div class="lableclass">
@@ -503,6 +513,18 @@
                <el-col :span="12">
                  <div class="textclass">
                    {{ patientInfo.hemoCode }}
                  </div>
                </el-col>
              </el-row>
              <el-row style="margin-top: 10%;">
                <el-col :span="12">
                  <div class="lableclass">
                    床号:
                  </div>
                </el-col>
                <el-col :span="12">
                  <div class="textclass">
                    {{ patientInfo.deviceNo }}
                  </div>
                </el-col>
              </el-row>
@@ -564,8 +586,11 @@
          </el-row>
          <el-row class="rowdiv">
            <el-col :span="12">
              <div class="lableclass">
              <div v-if="patientInfo.isAfterMed===0" class="lableclass">
                目标脱水量(L):
              </div>
              <div v-else class="lableclass">
                体重减少(kg):
              </div>
            </el-col>
            <el-col :span="12">
@@ -580,8 +605,11 @@
        <div class="divcol" :style="{ height: haodu }">
          <el-row class="titleHand">
            <el-col :span="12">
              <div class="tilaft">
              <div class="tilaft" v-if="patientInfo.isAfterMed===0">
                透前体重(kg):
              </div>
              <div class="tilaft" v-else>
                透后体重(kg):
              </div>
            </el-col>
            <el-col :span="12">
@@ -600,6 +628,9 @@
        </div>
      </el-col>
    </el-row>
    <div class="chongzhi" @click="fuxuan">
      返回
    </div>
  </div>
</template>
@@ -610,6 +641,19 @@
  margin: 0;
}
.chongzhi{
  width: 100px;
  height: 100px;
  background: #769AFF;
  color: #FFFFFF;
  font-size: 20px;
  line-height: 100px;
  text-align: center;
  position:fixed;
   bottom:0px;
   right:0px;
  border-radius: 50px;
}
.devcont{
  width: 100%;
  height: 99%;