Selaa lähdekoodia

护士端是否加急根据检查的紧急度联动

seimin 3 vuotta sitten
vanhempi
commit
d9c80624db
1 muutettua tiedostoa jossa 12 lisäystä ja 1 poistoa
  1. 12 1
      src/app/views/hushijiandan/hushijiandan.component.ts

+ 12 - 1
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -1136,7 +1136,7 @@ export class HushijiandanComponent implements OnInit {
1136 1136
         });
1137 1137
     }
1138 1138
   }
1139
-  // 是否需要护士医生陪同模态框baba
1139
+  // 是否需要护士医生陪同模态框
1140 1140
   accompanyModal: boolean = false;
1141 1141
   accompanyLoading: boolean = false;
1142 1142
   cancenlLoading: boolean = false;
@@ -1343,13 +1343,24 @@ export class HushijiandanComponent implements OnInit {
1343 1343
   lessTime = false; //预约时间列表中预约时间少于生效时长,则是false
1344 1344
   linkCheckLisChange(e) {
1345 1345
     console.log(e, this.linkCheckLis);
1346
+    let flag = false; //检查是否紧急
1346 1347
     this.linkCheckLis.forEach((item) => {
1347 1348
       e.forEach((v) => {
1349
+        if (v.priority == 1) {
1350
+          flag = true;
1351
+        }
1348 1352
         if (v.value == item.value) {
1349 1353
           item.checked = true;
1350 1354
         }
1351 1355
       });
1352 1356
     });
1357
+    if (flag) {
1358
+      this.allowUrgent = "1";
1359
+      this.urgentReason = "系统根据检查信息,自动进行加急";
1360
+    } else {
1361
+      this.allowUrgent = "0";
1362
+      this.urgentReason = "";
1363
+    }
1353 1364
     this.clickYYFlag = false;
1354 1365
     let linkCheckLis = this.linkCheckLis.filter(
1355 1366
       (item) => Boolean(item.yyTime) && item.checked