18339543638 1 年之前
父节点
当前提交
9be580569f
共有 2 个文件被更改,包括 16 次插入3 次删除
  1. 8 2
      tuoren-pump-chemo-runtime/scripts/prod/toWeb.js
  2. 8 1
      tuoren-pump-chemo-runtime/scripts/test/toWeb.js

+ 8 - 2
tuoren-pump-chemo-runtime/scripts/prod/toWeb.js

@@ -23,11 +23,17 @@ function toWeb(rawData){
         pcaValidCount: items.validTimes, // 有效次数
         pcaInvalidCount: items.invalidTimes, // 无效次数
         totalDose: items.totalDose, // 总量
-        userId: items.userId, // 医院编号
+        userId: 1000, // 医院编号
         selfControlLockTime: items.lockTime, // 锁时
         alarm: 0, // 报警
     };
-
+    
+    if(obj.type==2){
+      obj.type=3
+    }
+    else if(obj.type==3){
+      obj.type=2
+    }
     var alarms = items.alarm;
     // 气泡无液
     if (includes(alarms, 1)){

+ 8 - 1
tuoren-pump-chemo-runtime/scripts/test/toWeb.js

@@ -23,11 +23,18 @@ function toWeb(rawData){
         pcaValidCount: items.validTimes, // 有效次数
         pcaInvalidCount: items.invalidTimes, // 无效次数
         totalDose: items.totalDose, // 总量
-        userId: items.userId, // 医院编号
+        userId: 1000, // 医院编号
         selfControlLockTime: items.lockTime, // 锁时
         alarm: 0, // 报警
     };
 
+    if(obj.type==2){
+      obj.type=3
+    }
+    else if(obj.type==3){
+      obj.type=2
+    }
+
     var alarms = items.alarm;
     // 气泡无液
     if (includes(alarms, 1)){