45
chenyincheng
2023-03-22 608b8c5f7e43c3a3f43ffffaa8287c8434adbdc9
45
2个文件已修改
21 ■■■■■ 已修改文件
package.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/index.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json
@@ -1,6 +1,6 @@
{
  "name": "sign-tool",
  "version": "2.5.4",
  "version": "2.5.6",
  "icon": "public/favicon.ico",
  "main": "dist/electron/main/index.js",
  "author": "",
src/views/home/index.vue
@@ -192,11 +192,11 @@
      () => weightInfo.value.resultTime,
      () => {
        console.log("体重变化了", weightInfo.value)
        if (patientInfo.value.id === 0) {
          speech.value?.speak({ text: "没有识别的患者,请先验证患者" }).then(() => {
            console.log("播报完成...")
          })
        }
        // if (patientInfo.value.id === 0) {
        //   speech.value?.speak({ text: "没有识别的患者,请先验证患者" }).then(() => {
        //     console.log("播报完成...")
        //   })
        // }
        if (weightInfo.value.result !== "0") {
            // 发送结果到sockte服务
            const mode = {
@@ -211,6 +211,7 @@
              speech.value?.speak({ text: `称重完成,${tt}kg` }).then(() => {
                console.log("播报完成...")
              })
              console.log(111111)
              // api上传
              updatePatient(mode).then(re => {
                console.log(re)
@@ -221,13 +222,7 @@
              patientCodeLs = mode.patientCode
            }
            else {
               // api上传
               updatePatient(mode).then(re => {
                  console.log(re)
                }).catch(() => {
                  ElMessage.error('结果上报出错,请联系后台管理员')
                })
                // sendPationSet(mode)
                console.log(22222)
                patientCodeLs = mode.patientCode
              }
            // 计算目标脱水量