chenyincheng
2023-03-25 f5dc6411333d824d8b585734d2006367df2ab76a
更新透后签到不计算目标脱水量
3个文件已修改
6 ■■■■■ 已修改文件
src/samples/sockteStomp.ts 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/stores/patient.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/samples/sockteStomp.ts
@@ -91,7 +91,8 @@
        pureWeight:resultInfo.pureWeight===null?"":resultInfo.pureWeight,
        datetime:da,
        clothesWeight:resultInfo.clothesWeight===null?0:resultInfo.clothesWeight,
        isScheduled:resultInfo.isScheduled
        isScheduled:resultInfo.isScheduled,
        isAfterMed:resultInfo.isAfterMed
    }
    // 写入vuex里
    patientInfoStore().setpatientInfo(info)
src/stores/patient.ts
@@ -14,6 +14,7 @@
            datetime:'',
            clothesWeight:0,
            isScheduled:0,
            isAfterMed:0
       })// 初始值
    const viewNumber=ref(150)
src/views/home/index.vue
@@ -221,7 +221,7 @@
                patientCodeLs = mode.patientCode
              }
            // 计算目标脱水量
            if (Number(weightInfo.value.result) > 0 && Number(patientInfo.value.pureWeight) !== 0) {
            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)
            }
          }