From a99886eb9c73018235e2c373f3d82a2b0b2311d5 Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期二, 16 九月 2025 13:36:40 +0800
Subject: [PATCH] Merge branch 'ID1766-添加推送登录功能' into test
---
src/store/type/bedsideAuxiliaryScreen.type.ts | 28 ++++++++++++++++++++++++++--
1 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/src/store/type/bedsideAuxiliaryScreen.type.ts b/src/store/type/bedsideAuxiliaryScreen.type.ts
index 9ef805e..1552f67 100644
--- a/src/store/type/bedsideAuxiliaryScreen.type.ts
+++ b/src/store/type/bedsideAuxiliaryScreen.type.ts
@@ -1,6 +1,7 @@
import { tryConvertToInt, deepClone } from "@/utils/utils";
import { Local } from "@/utils/storage";
import dayjs from "dayjs";
+import type { DeviceLoginRecord } from './user.type';
export interface IotInfo {
属性历史列表: any[];
床号: string;
@@ -24,6 +25,7 @@
管路: string[];
透析器: string[];
透析模式: string[];
+ 透析单编号: string;
}
enum EPushType {
@@ -133,6 +135,7 @@
上次透析超滤总量: number | null;
四点血压图数据: 四点血压图数据[] | null;
患者出生日期: string;
+ 置换总量: number | null;
}
export interface 四点血压图数据 {
@@ -155,6 +158,7 @@
血压2_前半程最低收缩压: number | null;
透后体重减干体重的差值: number | null;
血压1_透前舒张压: number | null;
+ 患者出生日期: string;
}
export interface VascularAccess {
@@ -210,6 +214,7 @@
自定义配置项: Customconfiguration;
服务端版本号: string;
是否需要立即刷新: 0 | 1;
+ 当前登录状态: DeviceLoginRecord | null;
}
interface Customconfiguration {
@@ -245,6 +250,7 @@
sphygmomanometer: Sphygmomanometer;
customConfiguration: Customconfiguration;
患者出生日期: string;
+ 客户编号: string;
}
export const defaultSphygmomanometer = () :Sphygmomanometer => {
@@ -313,6 +319,7 @@
carePackage: any[];
punctureNeedle: PunctureNeedle[];
vascularAccess: VascularAccess[];
+ 透析单编号: string;
}
export const defaultconsumablesCollection = (): ConsumablesCollection => {
@@ -324,6 +331,7 @@
管路: [],
透析器: [],
透析模式: [],
+ 透析单编号: '',
};
};
@@ -337,6 +345,7 @@
carePackage: [], // 一次性使用透析护理包列表
punctureNeedle: [], // 穿刺针列表
vascularAccess: [], // 血管通路列表
+ 透析单编号: ''
};
};
@@ -371,6 +380,7 @@
体重增长_透前_上次透后: number | null; // 体重增长(透前-上次透后)
体重增持_透前_干体重: number | null; // 体重增长(透前-干体重)
四点血压图数据: 四点血压图数据[];
+ 透析单编号: string;
}
export const defaultSignedIn = (): SignedIn => {
@@ -405,6 +415,7 @@
体重增长_透前_上次透后: null, // 体重增长(透前-上次透后)
体重增持_透前_干体重: null, // 体重增长(透前-干体重)
四点血压图数据: [],
+ 透析单编号: '',
};
};
@@ -440,6 +451,8 @@
dialysisAge: number | null, // 透析龄
venousPressure2: number | null; // 静脉压
transmembranePressure2: number | null; // 跨膜压
+ 处方脱水量: number | null; // 处方脱水量
+ 透析单编号: string;
}
export interface MonitoringRecord {
@@ -481,6 +494,8 @@
dialysisAge: null,
venousPressure2: null, // 静脉压
transmembranePressure2: null, // 跨膜压
+ 处方脱水量: null,
+ 透析单编号: ''
};
};
@@ -506,6 +521,7 @@
// @ts-ignore
pageType, // 当前要展示的页面
treatmentStatus: EMedStatus.NOT_CHECKED_IN, // 透析状态
+ 客户编号: "",
consumablesCollection: defaultconsumablesCollection(), // 未排班时需要的数据
notSignedIn: defalutNotSignedIn(), // 未签到时需要的数据
signedIn: defaultSignedIn(), // 已签到时需要的数据
@@ -517,7 +533,7 @@
export const defaultCustomconfiguration = (): Customconfiguration => {
return {
患者信息是否加密显示: 0,
- 是否显示患者出生年月日: 0,
+ 是否显示患者出生年月日: 0
}
}
@@ -536,6 +552,7 @@
// 默认床号(设备号)
result.devicdeNo = seeMsg.IOT信息?.床号;
result.deviceCode = seeMsg.IOT信息?.设备唯一编号;
+
// 自定义配置项
result.customConfiguration = seeMsg.自定义配置项 ?? defaultCustomconfiguration();
@@ -573,6 +590,9 @@
result.patFormNumber = seeMsg.透析状态?.患者门诊住院号;
result.患者出生日期 = seeMsg.透析状态?.患者出生日期 || "";
+ result.客户编号 = seeMsg.透析状态?.clientCode;
+
+
// 未签到页面需要显示的
if (treatmentStatus === EMedStatus.NOT_CHECKED_IN) {
result.pageType = EPageType.NOT_SIGNED_IN;
@@ -585,6 +605,7 @@
notSignedIn.punctureNeedle = seeMsg.透析状态?.穿刺针列表 ?? [];
notSignedIn.vascularAccess = seeMsg.透析状态?.血管通路列表 ?? [];
notSignedIn.anticoagulant = seeMsg.透析状态?.抗凝剂列表 ?? [];
+ notSignedIn.透析单编号 = seeMsg.透析状态?.透析单编号;
result.notSignedIn = notSignedIn;
}
@@ -596,7 +617,7 @@
signedIn.置换方式 = seeMsg.透析状态?.置换方式 ?? "";
signedIn.治疗模式 = seeMsg.透析状态?.透析方案 ?? "";
signedIn.处方脱水量 = seeMsg.透析状态?.处方脱水量 ?? null;
- signedIn.置换总量 = null;
+ signedIn.置换总量 = seeMsg.透析状态?.置换总量 ?? null;
signedIn.透析器 = seeMsg.透析状态?.透析器 ?? "";
signedIn.抗凝剂 = seeMsg.透析状态?.抗凝剂列表 ?? [];
signedIn.最近平均脱水量 = seeMsg.透析状态?.最近平均脱水量 ?? "";
@@ -631,6 +652,7 @@
signedIn.上次透析单所属日期 = dayjs(signedIn.四点血压图数据[0].透析日期).format("YYYY-MM-DD");
// signedIn.本次透析单所属日期 = dayjs(signedIn.四点血压图数据[0].透析日期).format("YYYY-MM-DD");
}
+ signedIn.透析单编号 = seeMsg.透析状态?.透析单编号;
result.signedIn = signedIn;
}
// 剩下的全使用治疗中的页面
@@ -693,6 +715,8 @@
seeMsg.透析状态?.实时ktv计算结果列表
?.realTimeKtvCalcDetailResultInfo ?? [];
underTreatment.dialysisAge = seeMsg.透析状态?.透析龄 ?? null;
+ underTreatment.处方脱水量 = seeMsg.透析状态?.处方脱水量 ?? null;
+ underTreatment.透析单编号 = seeMsg.透析状态?.透析单编号;
result.underTreatment = underTreatment;
}
--
Gitblit v1.8.0