chenyincheng
2023-03-22 a8943e5ff6ee3c920bbb655a074799f1e9337f32
src/views/home/index.vue
@@ -222,11 +222,15 @@
              patientCodeLs = mode.patientCode
            }
            else {
              // console.log(`patientCodeLs===${patientCodeLs} ,mode.patCode${mode.patientCode}`)
              // speech.value?.speak({ text: "不能重复称重,请先刷卡然后再称重" }).then(() => {
              //   console.log("播报完成...")
              // })
            }
               // api上传
               updatePatient(mode).then(re => {
                  console.log(re)
                }).catch(() => {
                  ElMessage.error('结果上报出错,请联系后台管理员')
                })
                // sendPationSet(mode)
                patientCodeLs = mode.patientCode
              }
            // 计算目标脱水量
            if (Number(weightInfo.value.result) > 0 && Number(patientInfo.value.pureWeight) !== 0) {
              state.aimTSL = (Number(weightInfo.value.result) - Number(patientInfo.value.pureWeight)- Number(patientInfo.value.clothesWeight)).toFixed(2)