|
@@ -17,7 +17,7 @@ import http from "../../../assets/js/http";
|
17
|
17
|
import { MainService } from "../../services/main.service";
|
18
|
18
|
import { WebsocketNurseService } from "../../services/websocket-nurse.service";
|
19
|
19
|
|
20
|
|
-import { NzMessageService } from "ng-zorro-antd/message";
|
|
20
|
+import { NzMessageService } from "ng-zorro-antd";
|
21
|
21
|
import { NzNotificationService } from "ng-zorro-antd/notification";
|
22
|
22
|
import { OverlayScrollbarsComponent } from "overlayscrollbars-ngx";
|
23
|
23
|
import { ToolService } from "../../services/tool.service";
|
|
@@ -107,7 +107,6 @@ export class HushijiandanComponent implements OnInit {
|
107
|
107
|
private fb: FormBuilder,
|
108
|
108
|
public router: Router,
|
109
|
109
|
private mainService: MainService,
|
110
|
|
- private msg: NzMessageService,
|
111
|
110
|
private notification: NzNotificationService,
|
112
|
111
|
private webs: WebsocketNurseService,
|
113
|
112
|
private tool: ToolService
|
|
@@ -687,7 +686,7 @@ export class HushijiandanComponent implements OnInit {
|
687
|
686
|
initLogin() {
|
688
|
687
|
let that = this;
|
689
|
688
|
if (!localStorage.getItem("user")) {
|
690
|
|
- that.msg.error("您的登录已失效,请重新登录!", {
|
|
689
|
+ that.message.error("您的登录已失效,请重新登录!", {
|
691
|
690
|
nzDuration: 3000,
|
692
|
691
|
});
|
693
|
692
|
setTimeout(() => {
|
|
@@ -767,14 +766,18 @@ export class HushijiandanComponent implements OnInit {
|
767
|
766
|
this.mainService
|
768
|
767
|
.getFetchDataList("simple/data", "surgery", postData)
|
769
|
768
|
.subscribe((data) => {
|
|
769
|
+ data.list = Array.isArray(data.list) ? data.list : [];
|
770
|
770
|
this.surgeryLoading = false;
|
771
|
|
- this.surgeryWKOMsg = Array.isArray(data.list) ? (data.list[0] ? data.list[0] : {}) : {};
|
|
771
|
+ this.surgeryWKOMsg = data.list[0] || {};
|
772
|
772
|
});
|
773
|
773
|
}
|
774
|
774
|
|
775
|
775
|
// 获取手术配置信息
|
776
|
776
|
surgeryField = null; //手术关联业务
|
777
|
777
|
surgeryConfigs:any = {};
|
|
778
|
+ // 送回苏醒室的运输过程终点科室信息
|
|
779
|
+ surgeryCarryingCourse:any = null;
|
|
780
|
+ surgeryCarryingCourseDepts: any[] = [];
|
778
|
781
|
getSurgeryConfig() {
|
779
|
782
|
this.mainService
|
780
|
783
|
.getDictionary("list", "ordinary_field")
|
|
@@ -794,6 +797,15 @@ export class HushijiandanComponent implements OnInit {
|
794
|
797
|
.subscribe((result) => {
|
795
|
798
|
if (result.status == 200) {
|
796
|
799
|
this.surgeryConfigs = result.list[0] || {};
|
|
800
|
+ // 送回苏醒室开关开启 并且 有对应的任务类型
|
|
801
|
+ if(this.surgeryConfigs.remandRecovery == 1 && this.surgeryConfigs.recoveryType){
|
|
802
|
+ this.surgeryCarryingCourse = this.surgeryConfigs.recoveryType.carryingCourses ? this.surgeryConfigs.recoveryType.carryingCourses.find(v => v.nodeId ? v.nodeId.value == 'finish' : false) : null;
|
|
803
|
+
|
|
804
|
+ // 运输过程终点科室配置是固定科室或者固定科室范围-苏醒室
|
|
805
|
+ if(this.surgeryCarryingCourse && (this.surgeryCarryingCourse.departmentStrategy.value == 2 || this.surgeryCarryingCourse.departmentStrategy.value == 3)){
|
|
806
|
+ this.surgeryCarryingCourseDepts = this.surgeryCarryingCourse.departmentDTOS || [];
|
|
807
|
+ }
|
|
808
|
+ }
|
797
|
809
|
}
|
798
|
810
|
});
|
799
|
811
|
}
|
|
@@ -1525,7 +1537,7 @@ export class HushijiandanComponent implements OnInit {
|
1525
|
1537
|
}
|
1526
|
1538
|
// 确认
|
1527
|
1539
|
sLoading1 = false;
|
1528
|
|
- confirmSendWard(isRemandClean) {
|
|
1540
|
+ confirmSendWard(data) {
|
1529
|
1541
|
console.log(this.sendWardItem);
|
1530
|
1542
|
this.sLoading1 = true;
|
1531
|
1543
|
this.mainService
|
|
@@ -1535,7 +1547,7 @@ export class HushijiandanComponent implements OnInit {
|
1535
|
1547
|
orderId: this.sendWardItem.gdid,
|
1536
|
1548
|
configId: this.surgeryConfigs.id,
|
1537
|
1549
|
remandType: 'clinical',
|
1538
|
|
- remandClean: isRemandClean ? 1 : 0,
|
|
1550
|
+ remandClean: data.isRemandClean ? 1 : 0,
|
1539
|
1551
|
})
|
1540
|
1552
|
.subscribe((result:any) => {
|
1541
|
1553
|
this.sLoading1 = false;
|
|
@@ -1565,8 +1577,13 @@ export class HushijiandanComponent implements OnInit {
|
1565
|
1577
|
}
|
1566
|
1578
|
// 确认
|
1567
|
1579
|
sLoading2 = false;
|
1568
|
|
- confirmSendAwakeningRoom(isRemandClean) {
|
|
1580
|
+ confirmSendAwakeningRoom(data) {
|
1569
|
1581
|
console.log(this.sendAwakeningRoomItem);
|
|
1582
|
+ console.log(this.surgeryConfigs);
|
|
1583
|
+ if(!data.recoveryRoom){
|
|
1584
|
+ this.message.info(`<span class="red">${this.surgeryConfigs.recoveryType.taskName}</span>任务类型-运输过程-终点科室-默认科室配置错误!`);
|
|
1585
|
+ return;
|
|
1586
|
+ }
|
1570
|
1587
|
this.sLoading2 = true;
|
1571
|
1588
|
this.mainService
|
1572
|
1589
|
.createRemandOrder({
|
|
@@ -1575,7 +1592,8 @@ export class HushijiandanComponent implements OnInit {
|
1575
|
1592
|
orderId: this.sendAwakeningRoomItem.gdid,
|
1576
|
1593
|
configId: this.surgeryConfigs.id,
|
1577
|
1594
|
remandType: 'recovery',
|
1578
|
|
- remandClean: isRemandClean ? 1 : 0,
|
|
1595
|
+ remandClean: data.isRemandClean ? 1 : 0,
|
|
1596
|
+ endDept: data.recoveryRoom || undefined,
|
1579
|
1597
|
})
|
1580
|
1598
|
.subscribe((result:any) => {
|
1581
|
1599
|
this.sLoading2 = false;
|