chenyincheng
2023-03-22 a8943e5ff6ee3c920bbb655a074799f1e9337f32
更新
2个文件已修改
14 ■■■■■ 已修改文件
package.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/index.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json
@@ -1,6 +1,6 @@
{
  "name": "sign-tool",
  "version": "2.5.3",
  "version": "2.5.4",
  "icon": "public/favicon.ico",
  "main": "dist/electron/main/index.js",
  "author": "",
src/views/home/index.vue
@@ -222,10 +222,14 @@
              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) {