chenyc
2025-10-27 c64c31795d1e9ea96671f7e11279af8babecde83
src/samples/sockteStomp.ts
@@ -78,12 +78,14 @@
}
const writePatient=(resultInfo:any)=>{
    // 给一个时间变化
    const da=new Date().toTimeString()
    const da=new Date()
    console.log(da)
    const info={
        id:resultInfo.patientInfo===null?0:resultInfo.patientInfo.id,
        code:resultInfo.patientInfo===null?'':resultInfo.patientInfo.code,
        name:resultInfo.patientInfo===null?'':resultInfo.patientInfo.patientName,
        patientNamePyFull:resultInfo.patientInfo===null?'':resultInfo.patientInfo.patientNamePyFull,
        patientAvatarIcon:resultInfo.patientInfo===null?'':resultInfo.patientInfo.patientAvatarIcon,
        deviceCode:resultInfo.deviceCode===null?"":resultInfo.deviceCode,
        patientGender:resultInfo.patientInfo.patientGender,
@@ -94,6 +96,7 @@
        isScheduled:resultInfo.isScheduled,
        isAfterMed:resultInfo.isAfterMed,
        deviceNo:resultInfo.deviceNo,
        设备分区名称:resultInfo.设备分区名称,
        preWeight:resultInfo.preWeight,
        // s上次体重
        lastTimeAfterWeight:resultInfo.lastTimeAfterWeight,
@@ -104,7 +107,9 @@
        glq:resultInfo.glq,
        preBP:resultInfo.preBP,
        nextRecordDate:resultInfo.nextRecordDate,
        actuallyClliang:resultInfo.actuallyClliang
        actuallyClliang:resultInfo.actuallyClliang,
        下次透析方案名称:resultInfo.下次透析方案名称,
        下次透析时段:resultInfo.下次透析时段
    }
    // 写入vuex里
    patientInfoStore().setpatientInfo(info)