From f5dc6411333d824d8b585734d2006367df2ab76a Mon Sep 17 00:00:00 2001
From: chenyincheng <501753378@qq.com>
Date: 星期六, 25 三月 2023 09:06:00 +0800
Subject: [PATCH] 更新透后签到不计算目标脱水量
---
src/views/home/index.vue | 2 +-
src/samples/sockteStomp.ts | 3 ++-
src/stores/patient.ts | 1 +
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/samples/sockteStomp.ts b/src/samples/sockteStomp.ts
index d1e0468..372183b 100644
--- a/src/samples/sockteStomp.ts
+++ b/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)
diff --git a/src/stores/patient.ts b/src/stores/patient.ts
index 9520957..c2e0903 100644
--- a/src/stores/patient.ts
+++ b/src/stores/patient.ts
@@ -14,6 +14,7 @@
datetime:'',
clothesWeight:0,
isScheduled:0,
+ isAfterMed:0
})// 初始值
const viewNumber=ref(150)
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index b5ab7a3..921fc81 100644
--- a/src/views/home/index.vue
+++ b/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)
}
}
--
Gitblit v1.8.0