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 | 34 ++++++++++++++++++++++++++++++++--
1 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/src/store/type/bedsideAuxiliaryScreen.type.ts b/src/store/type/bedsideAuxiliaryScreen.type.ts
index b6b8971..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 {
@@ -132,6 +134,8 @@
上次透析血压列表: any[];
上次透析超滤总量: number | null;
四点血压图数据: 四点血压图数据[] | null;
+ 患者出生日期: string;
+ 置换总量: number | null;
}
export interface 四点血压图数据 {
@@ -154,6 +158,7 @@
血压2_前半程最低收缩压: number | null;
透后体重减干体重的差值: number | null;
血压1_透前舒张压: number | null;
+ 患者出生日期: string;
}
export interface VascularAccess {
@@ -209,10 +214,12 @@
自定义配置项: Customconfiguration;
服务端版本号: string;
是否需要立即刷新: 0 | 1;
+ 当前登录状态: DeviceLoginRecord | null;
}
interface Customconfiguration {
患者信息是否加密显示: number;
+ 是否显示患者出生年月日: number;
}
export interface Sphygmomanometer {
@@ -242,6 +249,8 @@
underTreatment: UnderTreatment;
sphygmomanometer: Sphygmomanometer;
customConfiguration: Customconfiguration;
+ 患者出生日期: string;
+ 客户编号: string;
}
export const defaultSphygmomanometer = () :Sphygmomanometer => {
@@ -310,6 +319,7 @@
carePackage: any[];
punctureNeedle: PunctureNeedle[];
vascularAccess: VascularAccess[];
+ 透析单编号: string;
}
export const defaultconsumablesCollection = (): ConsumablesCollection => {
@@ -321,6 +331,7 @@
管路: [],
透析器: [],
透析模式: [],
+ 透析单编号: '',
};
};
@@ -334,6 +345,7 @@
carePackage: [], // 一次性使用透析护理包列表
punctureNeedle: [], // 穿刺针列表
vascularAccess: [], // 血管通路列表
+ 透析单编号: ''
};
};
@@ -368,6 +380,7 @@
体重增长_透前_上次透后: number | null; // 体重增长(透前-上次透后)
体重增持_透前_干体重: number | null; // 体重增长(透前-干体重)
四点血压图数据: 四点血压图数据[];
+ 透析单编号: string;
}
export const defaultSignedIn = (): SignedIn => {
@@ -402,6 +415,7 @@
体重增长_透前_上次透后: null, // 体重增长(透前-上次透后)
体重增持_透前_干体重: null, // 体重增长(透前-干体重)
四点血压图数据: [],
+ 透析单编号: '',
};
};
@@ -437,6 +451,8 @@
dialysisAge: number | null, // 透析龄
venousPressure2: number | null; // 静脉压
transmembranePressure2: number | null; // 跨膜压
+ 处方脱水量: number | null; // 处方脱水量
+ 透析单编号: string;
}
export interface MonitoringRecord {
@@ -478,6 +494,8 @@
dialysisAge: null,
venousPressure2: null, // 静脉压
transmembranePressure2: null, // 跨膜压
+ 处方脱水量: null,
+ 透析单编号: ''
};
};
@@ -497,11 +515,13 @@
age: "", // 年龄
gender: "", // 性别
patForm: EPatForm.OUTPATIENT_SERVICE, // 患者来源
+ 患者出生日期: "", // 患者出生日期
patFormNumber: "", // 住院门诊号
customConfiguration: defaultCustomconfiguration(), // 自定义配置项
// @ts-ignore
pageType, // 当前要展示的页面
treatmentStatus: EMedStatus.NOT_CHECKED_IN, // 透析状态
+ 客户编号: "",
consumablesCollection: defaultconsumablesCollection(), // 未排班时需要的数据
notSignedIn: defalutNotSignedIn(), // 未签到时需要的数据
signedIn: defaultSignedIn(), // 已签到时需要的数据
@@ -512,7 +532,8 @@
export const defaultCustomconfiguration = (): Customconfiguration => {
return {
- 患者信息是否加密显示: 0
+ 患者信息是否加密显示: 0,
+ 是否显示患者出生年月日: 0
}
}
@@ -531,6 +552,7 @@
// 默认床号(设备号)
result.devicdeNo = seeMsg.IOT信息?.床号;
result.deviceCode = seeMsg.IOT信息?.设备唯一编号;
+
// 自定义配置项
result.customConfiguration = seeMsg.自定义配置项 ?? defaultCustomconfiguration();
@@ -566,6 +588,10 @@
result.gender = seeMsg.透析状态?.性别 + "";
result.patForm = seeMsg.透析状态?.患者来源;
result.patFormNumber = seeMsg.透析状态?.患者门诊住院号;
+ result.患者出生日期 = seeMsg.透析状态?.患者出生日期 || "";
+
+ result.客户编号 = seeMsg.透析状态?.clientCode;
+
// 未签到页面需要显示的
if (treatmentStatus === EMedStatus.NOT_CHECKED_IN) {
@@ -579,6 +605,7 @@
notSignedIn.punctureNeedle = seeMsg.透析状态?.穿刺针列表 ?? [];
notSignedIn.vascularAccess = seeMsg.透析状态?.血管通路列表 ?? [];
notSignedIn.anticoagulant = seeMsg.透析状态?.抗凝剂列表 ?? [];
+ notSignedIn.透析单编号 = seeMsg.透析状态?.透析单编号;
result.notSignedIn = notSignedIn;
}
@@ -590,7 +617,7 @@
signedIn.置换方式 = seeMsg.透析状态?.置换方式 ?? "";
signedIn.治疗模式 = seeMsg.透析状态?.透析方案 ?? "";
signedIn.处方脱水量 = seeMsg.透析状态?.处方脱水量 ?? null;
- signedIn.置换总量 = null;
+ signedIn.置换总量 = seeMsg.透析状态?.置换总量 ?? null;
signedIn.透析器 = seeMsg.透析状态?.透析器 ?? "";
signedIn.抗凝剂 = seeMsg.透析状态?.抗凝剂列表 ?? [];
signedIn.最近平均脱水量 = seeMsg.透析状态?.最近平均脱水量 ?? "";
@@ -625,6 +652,7 @@
signedIn.上次透析单所属日期 = dayjs(signedIn.四点血压图数据[0].透析日期).format("YYYY-MM-DD");
// signedIn.本次透析单所属日期 = dayjs(signedIn.四点血压图数据[0].透析日期).format("YYYY-MM-DD");
}
+ signedIn.透析单编号 = seeMsg.透析状态?.透析单编号;
result.signedIn = signedIn;
}
// 剩下的全使用治疗中的页面
@@ -687,6 +715,8 @@
seeMsg.透析状态?.实时ktv计算结果列表
?.realTimeKtvCalcDetailResultInfo ?? [];
underTreatment.dialysisAge = seeMsg.透析状态?.透析龄 ?? null;
+ underTreatment.处方脱水量 = seeMsg.透析状态?.处方脱水量 ?? null;
+ underTreatment.透析单编号 = seeMsg.透析状态?.透析单编号;
result.underTreatment = underTreatment;
}
--
Gitblit v1.8.0