Преглед изворни кода

护士端检查列表去掉

seimin пре 3 година
родитељ
комит
91502dbaec

+ 11 - 138
src/app/views/hushijiandan/hushijiandan.component.html

@@ -19,13 +19,10 @@
19 19
           <input nz-input [(ngModel)]='tabSearchCont' (ngModelChange)="searchTabInp($event)" placeholder="请输入关键字" />
20 20
         </div>
21 21
         <div class="checkBanner" nz-row>
22
-          <button nz-button nz-col nzSpan="12" [ngClass]="{'checkItem':true,'checked':checkedInfo=='patient'}"
23
-            (click)="changeInfo('patient')" [disabled]="checkedInfo!='patient'&&iLoading">患者信息</button>
24
-          <button nz-button nz-col nzSpan="12" [ngClass]="{'checkItem':true,'checked':checkedInfo=='inspect'}"
25
-            (click)="changeInfo('inspect')" [disabled]="checkedInfo!='inspect'&&pLoading">检查信息</button>
22
+          <button nz-button nz-col nzSpan="12" class="checkItem checked" (click)="changeInfo()">患者信息</button>
26 23
         </div>
27 24
         <!-- 患者信息 -->
28
-        <div class="checkedInfo patient" style="padding-bottom:0;" [hidden]='checkedInfo=="inspect"'>
25
+        <div class="checkedInfo patient" style="padding-bottom:0;">
29 26
           <overlay-scrollbars #osComponentRef4 class="box">
30 27
             <div class="loading display_flex align-items_center justify-content_flex-center"
31 28
               *ngIf="pLoading&&deptTaskTypeRules.openInspection">
@@ -82,52 +79,14 @@
82 79
             </div>
83 80
           </overlay-scrollbars>
84 81
         </div>
85
-        <!-- 检查信息 -->
86
-        <div class="checkedInfo inspect" [hidden]='checkedInfo=="patient"'>
87
-          <overlay-scrollbars #osComponentRef5 class="box">
88
-            <div class="loading display_flex align-items_center justify-content_flex-center"
89
-              *ngIf="iLoading&&deptTaskTypeRules.openInspection">
90
-              <div>
91
-                <img src="../../assets/images/loading.gif" alt="">
92
-                <div>加载中...</div>
93
-              </div>
94
-            </div>
95
-            <div class="loading display_flex align-items_center justify-content_flex-center"
96
-              *ngIf="!inspectList.length&&!iLoading">
97
-              <div>
98
-                <div>暂无数据</div>
99
-              </div>
100
-            </div>
101
-            <div *ngIf="inspectList.length&&!iLoading">
102
-              <div class="item" *ngFor="let item of inspectList">
103
-                <div class="row">
104
-                  <span [title]="item.inspectName" class="fl col"
105
-                    style="display:inline-block;width: 115px;overflow:hidden;text-overflow: ellipsis;white-space: nowrap;">{{item.inspectName}}</span>
106
-                  <span class="fr col">{{item.yyTime|date:'MM-dd HH:mm'}}</span>
107
-                </div>
108
-                <div class="row">
109
-                  <span class="fl col">{{item.execDept?item.execDept.dept:''}}</span>
110
-                  <span class="fr col">{{item.inspectState?item.inspectState.name:''}}</span>
111
-                </div>
112
-                <div class="row">
113
-                  <span class="fl col">{{item.patientName}}({{item.bedNum}})</span>
114
-                  <span class="fr col" *ngIf="item.residenceNo">住院号{{item.residenceNo}}</span>
115
-                </div>
116
-                <div class="btn" (click)="newInspectionOrder(item)"
117
-                  *ngIf="!item.gdId&&(item.inspectState.value == 1||item.inspectState.value == 30)">一键建单</div>
118
-                <!-- <div class="btn" style="visibility: hidden;" *ngIf="!(!item.gdId&&(item.inspectState.value == 1||item.inspectState.value == 30))">一键建单</div> -->
119
-              </div>
120
-            </div>
121
-          </overlay-scrollbars>
122
-        </div>
123 82
         <!-- 翻页 -->
124
-        <div class="paging" *ngIf="checkedInfo != 'patient'">
83
+        <!-- <div class="paging">
125 84
           <div>
126 85
             <nz-pagination [(nzPageIndex)]="infoPageIdx" [(nzTotal)]="infoLength" (nzPageIndexChange)="getPatient()"
127 86
               [nzPageSize]='5' nzSimple>
128 87
             </nz-pagination>
129 88
           </div>
130
-        </div>
89
+        </div> -->
131 90
       </div>
132 91
     </nz-sider>
133 92
     <nz-layout class="layout" style="background:#fff;position: relative;">
@@ -510,18 +469,20 @@
510 469
                 </div>
511 470
                 <div class="table">
512 471
                   <div class="box">
513
-                    <nz-table class="hospitalTable" #headerTable [nzData]="adviceList" nzSize="middle"
514
-                      [nzShowPagination]="false" [nzScroll]="{ y: tableHeight+'px' }">
472
+                    <nz-table class="hospitalTable" [nzData]="adviceList" nzSize="middle" [nzShowPagination]="false"
473
+                      [nzLoading]="adviceLoading">
515 474
                       <thead>
516 475
                         <tr class="thead">
476
+                          <th nzWidth="7%">序号</th>
517 477
                           <th nzWidth="15%">填写时间</th>
518
-                          <th nzWidth="43%">意见内容</th>
478
+                          <th nzWidth="36%">意见内容</th>
519 479
                           <th nzWidth="12%">状态</th>
520 480
                           <th nzWidth="30%">操作</th>
521 481
                         </tr>
522 482
                       </thead>
523 483
                       <tbody>
524
-                        <tr *ngFor="let data of adviceList">
484
+                        <tr *ngFor="let data of adviceList;let i = index;">
485
+                          <td>{{i+1}}</td>
525 486
                           <td>{{ data.createTime.slice(0,16) }}</td>
526 487
                           <td>
527 488
                             <span style="overflow: hidden;text-overflow: ellipsis;">
@@ -565,7 +526,7 @@
565 526
                 <div class="table">
566 527
                   <div class="box">
567 528
                     <nz-table class="hospitalTable" [nzData]="historySpecimenList" nzSize="middle"
568
-                      [nzShowPagination]="false" [nzScroll]="{ y: tableHeight+'px'}" [nzLoading]="hsLoading">
529
+                      [nzShowPagination]="false" [nzLoading]="hsLoading">
569 530
                       <thead>
570 531
                         <tr class="thead">
571 532
                           <th nzWidth="7%">序号</th>
@@ -606,8 +567,6 @@
606 567
                   </div>
607 568
                 </div>
608 569
               </div>
609
-              <!-- 服务规范 -->
610
-              <!-- <div *ngIf="checkedTableType=='service'">暂无</div> -->
611 570
             </div>
612 571
             <div nz-col nzSpan="7" class="orders">
613 572
               <div class="orderTit display_flex justify-content_space-between align-items_center">
@@ -674,10 +633,6 @@
674 633
                                   <p>{{step.operationName}}</p>
675 634
                                   <p class="time" *ngIf="step.record&&step.record[0]&&step.record[0].operationTime">
676 635
                                     {{step.record[0].operationTime|date:'MM-dd HH:mm'}}</p>
677
-                                  <!-- <p *ngIf="!step.record||!step.record[0]||!step[0].operationTime"></p> -->
678
-                                  <!-- <p *ngIf="step.record&&step.record.length&&step.record[0].dept"><span
679
-                                    *ngFor="let dept of step.record">{{dept.dept}},</span></p>
680
-                                <p *ngIf="step.record&&step.record.length">耗时{{filterTime(step.record)}}</p> -->
681 636
                                 </div>
682 637
                                 <div class="line"></div>
683 638
                               </div>
@@ -750,9 +705,6 @@
750 705
   </div>
751 706
 </div>
752 707
 
753
-
754
-
755
-
756 708
 <!-- 患者信息一键建单模态框 -->
757 709
 <div class="save display_flex align-items_center justify-content_flex-center patient" *ngIf="patientModal">
758 710
   <div class="modalBody" style="width: 500px;">
@@ -902,85 +854,6 @@
902 854
   </div>
903 855
 </div>
904 856
 
905
-<!-- 检查信息一键建单模态框 -->
906
-<div class="save display_flex align-items_center justify-content_flex-center inspect" *ngIf="inspectionModal">
907
-  <div class="modalBody">
908
-    <div class="title">患者送检<i class="icon_transport transport-guanbi" (click)="hideInspectionOrder()"></i></div>
909
-    <overlay-scrollbars #osComponentRef8 class="content" style="max-height:80vh">
910
-      <div *ngIf="inspMsg.status==100016" [ngClass]="{'jiTit':true, 'borderB':(inspMsg.data&&inspMsg.data.length)}">
911
-        提示:{{inspMsg.msg}}
912
-      </div>
913
-      <div *ngIf="inspMsg.data" [ngClass]="{'jiTit':true, 'borderB':(inspMsg.data&&inspMsg.data.length)}">
914
-        提示:您即将创建{{inspectionInfo.patientName}}患者前往{{inspectionInfo.execDept.dept}}进行{{inspectionInfo.inspectName}}检查,您确认吗?
915
-      </div>
916
-      <div>
917
-        <form nz-form [formGroup]="inspectionForm" class="inspectionForm">
918
-          <nz-form-item *ngIf="linkCheckInsLis.length">
919
-            <nz-form-label [nzSm]="24" [nzXs]="24" nzFor="linkCheck">此患者还有想关联检查可以选择合并工单</nz-form-label>
920
-            <nz-form-control class="datesGroup">
921
-              <nz-checkbox-group formControlName="linkCheck" class="linkCheckCheck" [(ngModel)]="linkCheckInsLis"
922
-                (ngModelChange)="linkCheckInsLisChange()">
923
-              </nz-checkbox-group>
924
-            </nz-form-control>
925
-          </nz-form-item>
926
-          <!-- 预约建单时间 -->
927
-          <nz-form-item class="yyTime" [ngClass]="{yyTimeError:!yyTimeInspect&&clickYYInspectFlag}"
928
-            *ngIf="inspMsg.status!=100016&&(hasTime1||hasYyTime)&&lessTime1&&appointmentBuildFlag === '1'&&allowUrgentInspect==0">
929
-            <nz-form-label [nzSm]="24" [nzXs]="24">预约建单时间</nz-form-label>
930
-            <nz-form-control [nzSm]="24" [nzXs]="24">
931
-              <nz-date-picker [nzShowToday]="false" nzFormat="yyyy-MM-dd HH:mm"
932
-                (nzOnOpenChange)="openYYTime($event,'inspect')" [nzDisabledDate]="disabledYYDate"
933
-                [nzDisabledTime]="disabledYYTime" [nzShowTime]="{nzDefaultOpenValue: timeDefaultValue}"
934
-                [ngModel]="yyTimeInspect" (ngModelChange)="yyTimeInspectChange($event)"
935
-                [ngModelOptions]="{standalone: true}"></nz-date-picker>
936
-            </nz-form-control>
937
-            <div class="red w100" *ngIf="!yyTimeInspect&&clickYYInspectFlag">请填写预约建单时间!</div>
938
-            <div class="red">请您在预约建单时至少在预约检查时间的基础上提前30分钟,以免错过检查!</div>
939
-          </nz-form-item>
940
-          <!-- 携带设备 -->
941
-          <nz-form-item *ngIf="goodsLis.length">
942
-            <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="goods" class="goods">携带设备</nz-form-label>
943
-            <nz-form-control>
944
-              <nz-checkbox-group formControlName="goods" [(ngModel)]="goodsLis">
945
-              </nz-checkbox-group>
946
-            </nz-form-control>
947
-          </nz-form-item>
948
-          <!-- 是否加急 -->
949
-          <nz-form-item *ngIf="allowUrgentFlag">
950
-            <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="allowUrgentInspect" class="goods">是否加急</nz-form-label>
951
-            <nz-form-control>
952
-              <nz-radio-group [(ngModel)]="allowUrgentInspect" formControlName="allowUrgentInspect">
953
-                <label nz-radio nzValue="1">是</label>
954
-                <label nz-radio nzValue="0">否</label>
955
-              </nz-radio-group>
956
-            </nz-form-control>
957
-          </nz-form-item>
958
-          <!-- 加急原因 -->
959
-          <nz-form-item *ngIf="allowUrgentFlag&&allowUrgentInspect == 1">
960
-            <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="urgentReasonInspect" class="goods">加急原因
961
-            </nz-form-label>
962
-            <nz-form-control>
963
-              <textarea rows="4" placeholder="请输入加急原因" nz-input [(ngModel)]="urgentReasonInspect"
964
-                formControlName="urgentReasonInspect"></textarea>
965
-            </nz-form-control>
966
-          </nz-form-item>
967
-        </form>
968
-      </div>
969
-    </overlay-scrollbars>
970
-    <div class="btns display_flex justify-content_flex-center">
971
-      <button
972
-        *ngIf="inspMsg.status!=100016&&(hasTime1||hasYyTime)&&lessTime1&&appointmentBuildFlag === '1'&&allowUrgentInspect==0"
973
-        nz-button nzType="primary" [nzLoading]="btnLoading2" (click)="confirmInspection1()">预约建单</button>
974
-      <button
975
-        *ngIf="inspMsg.status!=100016&&((allowUrgentInspect == 1 && urgentReasonInspect.trim() !== '')||allowUrgentInspect == 0)"
976
-        nz-button nzType="default" [nzLoading]="btnLoading" (click)="confirmInspection()"
977
-        class="orderThis">直接建单</button>
978
-      <button class="btn cancel" nz-button nzType="default" (click)="hideInspectionOrder()">取消</button>
979
-    </div>
980
-  </div>
981
-</div>
982
-
983
-
984 857
 <!-- 标本一键建单模态框 其他-->
985 858
 <div class="save display_flex align-items_center justify-content_flex-center shortcut" *ngIf="shortcutModal">
986 859
   <div class="modalBody">

+ 5 - 3
src/app/views/hushijiandan/hushijiandan.component.less

@@ -432,7 +432,7 @@
432 432
           z-index: 1;
433 433
 
434 434
           .checkItem {
435
-            width: 50%;
435
+            width: 100%;
436 436
             text-align: center;
437 437
             color: #fff;
438 438
             background: #284450;
@@ -940,10 +940,12 @@
940 940
               border: 1px solid #e5e9ed;
941 941
               padding-bottom: 60px;
942 942
               position: relative;
943
+              height: 100%;
943 944
 
944 945
               .hospitalTable {
945
-                padding: 21px 12px;
946
-                padding-bottom: 0;
946
+                padding: 24px 16px 0;
947
+                height: 100%;
948
+                overflow: auto;
947 949
 
948 950
                 .ant-table-fixed-header .ant-table-scroll .ant-table-header {
949 951
                   padding-bottom: 16px;

+ 22 - 428
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -1,5 +1,4 @@
1 1
 import {
2
-  AfterViewInit,
3 2
   Component,
4 3
   ElementRef,
5 4
   OnInit,
@@ -31,7 +30,7 @@ import { differenceInCalendarDays, format, setSeconds } from "date-fns";
31 30
   templateUrl: "./hushijiandan.component.html",
32 31
   styleUrls: ["./hushijiandan.component.less"],
33 32
 })
34
-export class HushijiandanComponent implements OnInit, AfterViewInit {
33
+export class HushijiandanComponent implements OnInit {
35 34
   @ViewChild("remarksEle", { static: false }) remarksEle: ElementRef;
36 35
   @ViewChild("osComponentRef1", {
37 36
     read: OverlayScrollbarsComponent,
@@ -53,11 +52,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
53 52
     static: false,
54 53
   })
55 54
   osComponentRef4: OverlayScrollbarsComponent;
56
-  @ViewChild("osComponentRef5", {
57
-    read: OverlayScrollbarsComponent,
58
-    static: false,
59
-  })
60
-  osComponentRef5: OverlayScrollbarsComponent;
61 55
   @ViewChild("osComponentRef6", {
62 56
     read: OverlayScrollbarsComponent,
63 57
     static: false,
@@ -133,12 +127,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
133 127
     this.initRole();
134 128
     this.getWebsocket();
135 129
   }
136
-  ngAfterViewInit() {
137
-    this.windowResize();
138
-    window.addEventListener("resize", () => {
139
-      this.tableHeight = window.innerHeight - 426;
140
-    });
141
-  }
142 130
   ngOnDestroy() {
143 131
     console.log("关闭护士端", this.webs.ws);
144 132
     clearInterval(this.moveId);
@@ -163,7 +151,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
163 151
   hsPromptModalShow: boolean = true; //护士端科室切换提示框是否展示
164 152
 
165 153
   deptTaskTypeRules: any = {}; //当前登录科室任务类型信息规则
166
-  tableHeight: number; //表格动态高
167 154
 
168 155
   orderSelectList: any = []; //工单列表筛选选项
169 156
   orderSelected = "-1"; //工单列表下拉框选中
@@ -171,9 +158,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
171 158
   tabSearchCont: string = ""; //左侧tab搜索框内容
172 159
   pLoading: boolean = true; //患者信息loading
173 160
   patientList: any = []; //左侧tab患者信息list
174
-  iLoading: boolean = true; //检查信息loading
175
-  inspectList: any = []; //左侧tab检查信息list
176
-  checkedInfo: string = "patient"; //左侧tab
177 161
   infoPageIdx: number = 1; //左侧tab页码
178 162
   infoLength: number = 5; //左侧tab信息总数
179 163
 
@@ -238,17 +222,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
238 222
     return this.mainService.getFetchDataList("configuration", "taskType", list);
239 223
   }
240 224
 
241
-  // mainRole: boolean = false;//回到系统管理权限
242
-  // initRole() {
243
-  //   let roles = JSON.parse(localStorage.getItem('user')).user.role;
244
-  //   let that = this
245
-  //   roles.forEach(e => {
246
-  //     if (e.id == 25) {
247
-  //       that.mainRole = true;
248
-  //       return;
249
-  //     }
250
-  //   });
251
-  // }
252 225
   // 关闭其他建单保存结果
253 226
   closeModel(e) {
254 227
     console.log(e);
@@ -312,7 +285,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
312 285
         if (data && data.content) {
313 286
           that.createBasicNotification(data);
314 287
         }
315
-        that.windowResize();
316 288
       });
317 289
   }
318 290
 
@@ -581,16 +553,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
581 553
         }
582 554
       });
583 555
   }
584
-  // 打开搜索框
585
-  // openChange(type){
586
-  //   if (type == 'target') {
587
-  //     this.shortcutForm.controls.targetOffice.setValue(null)
588
-  //     this.patientForm.controls.targetOffice.setValue(null)
589
-  //   } else if (type == 'start') {
590
-  //     this.shortcutForm.controls.originOffice.setValue(null)
591
-  //     this.patientForm.controls.originOffice.setValue(null)
592
-  //   }
593
-  // }
594 556
   // 目标科室输入搜索
595 557
   searchDept(type, msg, e) {
596 558
     this.getDeptList(type, msg, e);
@@ -640,9 +602,8 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
640 602
   }
641 603
 
642 604
   // 切换左侧tab
643
-  changeInfo(type) {
605
+  changeInfo() {
644 606
     if (!this.deptTaskTypeRules.openInspection) return;
645
-    this.checkedInfo = type;
646 607
     this.infoPageIdx = 1;
647 608
     this.getPatient();
648 609
   }
@@ -652,51 +613,30 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
652 613
   getPatient(e?) {
653 614
     let that = this;
654 615
     that.pLoading = true;
655
-    that.iLoading = true;
656 616
     let postData = {
657 617
       idx: that.infoPageIdx - 1,
658
-      sum: that.checkedInfo == "patient" ? 9999 : 5,
618
+      sum: 9999,
659 619
     };
660
-    if (that.checkedInfo == "patient") {
661
-      // 患者信息
662
-      postData["patient"] = {
663
-        keyWord: e ? e : that.tabSearchCont,
664
-      };
665
-      postData["patient"]["department"] = { id: that.loginUserDeptId };
666
-      delete postData["inspect"];
667
-    } else if (that.checkedInfo == "inspect") {
668
-      // 检查信息
669
-      postData["inspect"] = {
670
-        hosId: this.currentHospital.id,
671
-        keyWord: e ? e : that.tabSearchCont,
672
-        searchDays: 10000,
673
-        platForm: 1,
674
-        applyDept: { id: that.loginUserDeptId },
675
-      };
676
-      delete postData["patient"];
677
-    }
620
+    // 患者信息
621
+    postData["patient"] = {
622
+      keyWord: e ? e : that.tabSearchCont,
623
+    };
624
+    postData["patient"]["department"] = { id: that.loginUserDeptId };
678 625
     this.snum++;
679 626
     that.mainService
680
-      .getFetchDataList("nurse", that.checkedInfo, postData)
627
+      .getFetchDataList("nurse", "patient", postData)
681 628
       .subscribe((data) => {
682 629
         this.snum--;
683
-        if (that.checkedInfo == "patient") {
684
-          if (data.list.length > 0) {
685
-            data.list.forEach((item) => {
686
-              if (item.focusPatient === undefined) {
687
-                item.focusPatient = 0;
688
-              }
689
-            });
690
-          }
691
-          that.patientList = data.list || [];
692
-          if (this.snum === 0) {
693
-            that.pLoading = false;
694
-          }
695
-        } else if (that.checkedInfo == "inspect") {
696
-          that.inspectList = data.list || [];
697
-          if (this.snum === 0) {
698
-            that.iLoading = false;
699
-          }
630
+        if (data.list.length > 0) {
631
+          data.list.forEach((item) => {
632
+            if (item.focusPatient === undefined) {
633
+              item.focusPatient = 0;
634
+            }
635
+          });
636
+        }
637
+        that.patientList = data.list || [];
638
+        if (this.snum === 0) {
639
+          that.pLoading = false;
700 640
         }
701 641
         that.infoLength = data.totalNum || 0;
702 642
       });
@@ -786,8 +726,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
786 726
   urgentReason: any = ""; //加急原因
787 727
 
788 728
   // 初始化form表单
789
-  allowUrgentInspect: any = "0";
790
-  urgentReasonInspect: any = "";
791 729
   initForm() {
792 730
     // 初始化患者信息一键建单表单
793 731
     this.patientForm = this.fb.group({
@@ -800,14 +738,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
800 738
       urgentReason: [null], //加急原因
801 739
     });
802 740
 
803
-    // 初始化检查信息一键建单表单
804
-    this.inspectionForm = this.fb.group({
805
-      goods: [null],
806
-      linkCheck: [null, []],
807
-      allowUrgentInspect: [null], //加急
808
-      urgentReasonInspect: [null], //加急原因
809
-    });
810
-
811 741
     // 初始化一键发起建单表单
812 742
     this.shortcutForm = this.fb.group({
813 743
       targetOffice: [null, [this.targetOfficeShortCutValidator]],
@@ -886,16 +816,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
886 816
     this.clickYYFlag = false;
887 817
     this.openYYTime(true, "parent");
888 818
   }
889
-  yyTimeInspectChange(e) {
890
-    if (e) {
891
-      this.yyTimeInspect = format(e, "yyyy-MM-dd HH:mm") + ":00";
892
-      this.timeOperate(this.yyTimeInspect);
893
-    } else {
894
-      this.yyTimeInspect = null;
895
-    }
896
-    this.clickYYInspectFlag = false;
897
-    this.openYYTime(true, "inspect");
898
-  }
899 819
   yyTimeZyChange(e) {
900 820
     if (e) {
901 821
       this.yyTimeZy = format(e, "yyyy-MM-dd HH:mm") + ":00";
@@ -945,8 +865,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
945 865
     ) {
946 866
       return;
947 867
     }
948
-    // console.log(this.patientForm.controls.checkedType.value,this.checkTypeLis )
949
-    // return;
950 868
     var that = this;
951 869
     for (const i in that.patientForm.controls) {
952 870
       that.patientForm.controls[i].markAsDirty();
@@ -1157,31 +1075,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
1157 1075
             this.showPromptModal("创建", false, data.msg);
1158 1076
           }
1159 1077
         });
1160
-    } else if (this.accompanyType == "inspect") {
1161
-      this.mainService
1162
-        .postCustom(
1163
-          "api",
1164
-          this.accompanyYuyue ? "appointmentOrder" : "startOrder",
1165
-          this.accompanyPostData
1166
-        )
1167
-        .subscribe((data) => {
1168
-          this.hideInspectionOrder();
1169
-          this.accompanyModal = false;
1170
-          this.accompanyLoading = false;
1171
-          if (data.status == 200) {
1172
-            this.showPromptModal("创建", true, "");
1173
-            this.goodsLis = [];
1174
-            this.getOrderList();
1175
-            this.getDeptTaskType();
1176
-          } else if (data.status == 100042) {
1177
-            this.showPromptModal("创建", true, data.msg);
1178
-            this.goodsLis = [];
1179
-            this.getOrderList();
1180
-            this.getDeptTaskType();
1181
-          } else {
1182
-            this.showPromptModal("创建", false, data.msg);
1183
-          }
1184
-        });
1185 1078
     }
1186 1079
   }
1187 1080
   hideAccompanyModal() {
@@ -1232,36 +1125,10 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
1232 1125
             this.showPromptModal("创建", false, data.msg);
1233 1126
           }
1234 1127
         });
1235
-    } else if (this.accompanyType == "inspect") {
1236
-      this.mainService
1237
-        .postCustom(
1238
-          "api",
1239
-          this.accompanyYuyue ? "appointmentOrder" : "startOrder",
1240
-          this.accompanyPostData
1241
-        )
1242
-        .subscribe((data) => {
1243
-          this.hideInspectionOrder();
1244
-          this.accompanyModal = false;
1245
-          this.cancenlLoading = false;
1246
-          if (data.status == 200) {
1247
-            this.showPromptModal("创建", true, "");
1248
-            this.goodsLis = [];
1249
-            this.getOrderList();
1250
-            this.getDeptTaskType();
1251
-          } else if (data.status == 100042) {
1252
-            this.showPromptModal("创建", true, data.msg);
1253
-            this.goodsLis = [];
1254
-            this.getOrderList();
1255
-            this.getDeptTaskType();
1256
-          } else {
1257
-            this.showPromptModal("创建", false, data.msg);
1258
-          }
1259
-        });
1260 1128
     }
1261 1129
   }
1262 1130
   // 切换患者送检检查项目
1263 1131
   checkedShowMsg: any = {}; //患者送检检查项目对应展示信息
1264
-  // checkedShowFlag: any;//切换到患者检查
1265 1132
   current_allowUrgent = false; //当前任务类型是否允许加急
1266 1133
   changeCheckedType() {
1267 1134
     this.clickYYFlag = false;
@@ -1289,7 +1156,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
1289 1156
     // 判断这个任务类型是否允许加急 end
1290 1157
     let that = this;
1291 1158
     this.linkCheckLisTrue = true;
1292
-    // this.checkedShowFlag = that.patientForm.controls.checkedType.value == 3;
1293 1159
     console.log(
1294 1160
       that.patientForm.controls.linkCheck.value,
1295 1161
       this.linkCheckLis,
@@ -1375,47 +1241,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
1375 1241
       );
1376 1242
     }
1377 1243
   }
1378
-  // 患者送检检查项目-选择检查项目
1379
-  hasTime1 = false; //是否有已选择,并且是否有预约时间(检查信息)
1380
-  lessTime1 = false; //预约时间列表中预约时间少于生效时长,则是false
1381
-  lessTime1List = []; //预约时间列表
1382
-  linkCheckInsLisChange() {
1383
-    this.clickYYInspectFlag = false;
1384
-    this.lessTime1List = [];
1385
-    if (this.initLessTime1) {
1386
-      this.lessTime1List.push(this.initLessTime1);
1387
-    }
1388
-    let linkCheckInsLis = this.linkCheckInsLis.filter(
1389
-      (item) => Boolean(item.yyTime) && item.checked
1390
-    );
1391
-    linkCheckInsLis.forEach((item) => {
1392
-      this.lessTime1List.push(item.yyTime);
1393
-    });
1394
-    this.lessTime1 = this.lessTime1List.every((item) => {
1395
-      return (
1396
-        new Date(item).getTime() - new Date().getTime() >
1397
-        this.leadTime * 60 * 1000
1398
-      );
1399
-    });
1400
-    //回显预约时间2021年5月10日
1401
-    if (this.lessTime1 && linkCheckInsLis.length) {
1402
-      let timeList = linkCheckInsLis
1403
-        .map((item) => new Date(item.yyTime).getTime())
1404
-        .sort();
1405
-      this.yyTimeInspect = format(
1406
-        new Date(timeList[0] - this.leadTime * 60 * 1000),
1407
-        "yyyy-MM-dd HH:mm"
1408
-      );
1409
-    }
1410
-    let linkCheckInsLisTrue = this.linkCheckInsLis.some((item) => item.checked);
1411
-    if (!linkCheckInsLisTrue) {
1412
-      this.hasTime1 = false;
1413
-    } else {
1414
-      this.hasTime1 = this.linkCheckInsLis.some(
1415
-        (item) => Boolean(item.yyTime) && item.checked
1416
-      );
1417
-    }
1418
-  }
1419 1244
   // 日期禁用
1420 1245
   range(start: number, end: number): number[] {
1421 1246
     const result: number[] = [];
@@ -1501,227 +1326,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
1501 1326
       };
1502 1327
     };
1503 1328
   }
1504
-  // 检查信息一键建单
1505
-  inspectionModal: boolean = false; //检查信息一键建单模态框
1506
-  inspectionInfo; //检查信息
1507
-  inspMsg: any = {}; //检查信息提示
1508
-  // 打开检查信息一键建单模态框
1509
-  hasYyTime = false;
1510
-  initLessTime1 = "";
1511
-  newInspectionOrder(info) {
1512
-    console.log(info);
1513
-    if (info.yyTime) {
1514
-      this.hasYyTime = true;
1515
-      this.lessTime1List.push(info.yyTime);
1516
-      this.initLessTime1 = info.yyTime;
1517
-      this.lessTime1 =
1518
-        new Date(info.yyTime).getTime() - new Date().getTime() >
1519
-        this.leadTime * 60 * 1000;
1520
-      //回显预约时间
1521
-      if (this.lessTime1) {
1522
-        this.yyTimeInspect = format(
1523
-          new Date(new Date(info.yyTime).getTime() - this.leadTime * 60 * 1000),
1524
-          "yyyy-MM-dd HH:mm"
1525
-        );
1526
-      }
1527
-    } else {
1528
-      this.hasYyTime = false;
1529
-    }
1530
-    let that = this;
1531
-    that.linkCheckInsLis = [];
1532
-    that.inspMsg = {};
1533
-    that.inspectionInfo = info;
1534
-    if (this.allowUrgentFlag) {
1535
-      this.allowUrgentInspect = "0"; //加急
1536
-      this.urgentReasonInspect = ""; //加急原因
1537
-    }
1538
-    let postData = {
1539
-      type: 1,
1540
-      inspectId: info.id,
1541
-    };
1542
-    this.maskFlag = this.message.loading("正在加载中..", {
1543
-      nzDuration: 0,
1544
-    }).messageId;
1545
-    that.mainService
1546
-      .postCustom("nurse", "workOrder/buildTrip2", postData)
1547
-      .subscribe((data) => {
1548
-        this.message.remove(this.maskFlag);
1549
-        this.maskFlag = false;
1550
-        that.inspectionModal = true;
1551
-        that.inspMsg = data;
1552
-        that.goodsLis = [];
1553
-        if (data.goods && data.goods.length) {
1554
-          data.goods.forEach((e) => {
1555
-            that.goodsLis.push({
1556
-              label: e.name,
1557
-              value: e.id,
1558
-              checked: false,
1559
-            });
1560
-          });
1561
-        }
1562
-        if (data.data && data.data.length) {
1563
-          let arr = [];
1564
-          data.data.forEach((e) => {
1565
-            arr.push({
1566
-              yyTime: e.yyTime,
1567
-              label:
1568
-                (e.yyTime || "") +
1569
-                " " +
1570
-                e.execDept.dept +
1571
-                " 进行 " +
1572
-                (e.inspectName || "检查"),
1573
-              value: e.id,
1574
-              checked: false,
1575
-            });
1576
-          });
1577
-          that.linkCheckInsLis = arr;
1578
-        } else {
1579
-          that.linkCheckInsLis = [];
1580
-        }
1581
-      });
1582
-  }
1583
-  hideInspectionOrder() {
1584
-    this.clickYYInspectFlag = false;
1585
-    this.inspectionModal = false;
1586
-    this.lessTime1List = [];
1587
-    this.initLessTime1 = "";
1588
-  }
1589
-  btnLoading2 = false;
1590
-  confirmInspection1() {
1591
-    this.confirmInspection("yuyue");
1592
-  }
1593
-  inspectionForm: FormGroup; //信息检查一键建单表单
1594
-  // 检查信息一键建单关联检查
1595
-  linkCheckInsLis: any = [];
1596
-  // 检查信息保存
1597
-  clickYYInspectFlag = false; //是否点击预约建单
1598
-  confirmInspection(yuyue?) {
1599
-    if (yuyue) {
1600
-      this.clickYYInspectFlag = true;
1601
-    } else {
1602
-      this.clickYYInspectFlag = false;
1603
-    }
1604
-    //预约时间不能为空
1605
-    if (!this.yyTimeInspect) {
1606
-      return;
1607
-    }
1608
-    var that = this;
1609
-    for (const i in that.inspectionForm.controls) {
1610
-      that.inspectionForm.controls[i].markAsDirty();
1611
-      that.inspectionForm.controls[i].updateValueAndValidity();
1612
-    }
1613
-    if (that.inspectionForm.invalid) return;
1614
-    if (yuyue) {
1615
-      that.btnLoading2 = true;
1616
-    } else {
1617
-      that.btnLoading = true;
1618
-    }
1619
-
1620
-    let typeId;
1621
-    that.patientMsgList.forEach((e) => {
1622
-      if (e.associationType.value == "inspect") {
1623
-        typeId = e.id;
1624
-      }
1625
-    });
1626
-    console.log(that.inspectionForm);
1627
-    let postData: any = {
1628
-      workOrder: {
1629
-        taskType: { id: typeId },
1630
-        createDept: that.loginUserDeptId,
1631
-        startDept: { id: that.loginUserDeptId },
1632
-        patient: {
1633
-          patientCode: that.inspectionInfo.patientCode,
1634
-        },
1635
-        checkList: [],
1636
-      },
1637
-    };
1638
-    if (
1639
-      that.inspectionForm.value.linkCheck &&
1640
-      that.inspectionForm.value.linkCheck.length
1641
-    ) {
1642
-      that.inspectionForm.value.linkCheck.forEach((e) => {
1643
-        if (e.checked) {
1644
-          postData.workOrder["checkList"].push({ id: e.value });
1645
-        }
1646
-      });
1647
-    }
1648
-    postData.workOrder["checkList"].push({ id: that.inspectionInfo.id });
1649
-
1650
-    // 携带设备
1651
-    let goods = "";
1652
-    if (
1653
-      that.inspectionForm.value.goods &&
1654
-      that.inspectionForm.value.goods.length
1655
-    ) {
1656
-      that.inspectionForm.value.goods.forEach((e) => {
1657
-        if (e.checked) {
1658
-          goods += e.value + ",";
1659
-        }
1660
-      });
1661
-      goods = goods.slice(0, goods.length - 1);
1662
-    }
1663
-    postData.workOrder["goods"] = goods;
1664
-    if (!yuyue && that.allowUrgentFlag) {
1665
-      postData.workOrder["urgentDetails"] = {
1666
-        checkStatus: { id: 329 },
1667
-        urgentReason: that.urgentReasonInspect,
1668
-      };
1669
-    }
1670
-    // 添加预约时间
1671
-    if (yuyue) {
1672
-      postData.workOrder.yyTime = format(
1673
-        new Date(this.yyTimeInspect),
1674
-        "yyyy-MM-dd HH:mm:ss"
1675
-      );
1676
-    }
1677
-    console.log(this.inspectionInfo);
1678
-    //是否需要医护陪同检查
1679
-    let isAccompany = false;
1680
-    if (this.inspectionInfo.careLevel && !isAccompany) {
1681
-      //特级护理或一级护理
1682
-      if (
1683
-        this.inspectionInfo.careLevel.value === "0" ||
1684
-        this.inspectionInfo.careLevel.value === "1"
1685
-      ) {
1686
-        isAccompany = true;
1687
-        this.btnLoading = false;
1688
-        this.btnLoading2 = false;
1689
-        this.accompany(postData, yuyue, "inspect");
1690
-        return;
1691
-      }
1692
-    }
1693
-    if (this.inspectionInfo.illnessState && !isAccompany) {
1694
-      //病危或病重
1695
-      if (
1696
-        this.inspectionInfo.illnessState.value === "2" ||
1697
-        this.inspectionInfo.illnessState.value === "3"
1698
-      ) {
1699
-        this.btnLoading = false;
1700
-        this.btnLoading2 = false;
1701
-        this.accompany(postData, yuyue, "inspect");
1702
-        return;
1703
-      }
1704
-    }
1705
-    postData.workOrder.isAccompany = 0; //是否需要医护陪同检查
1706
-    that.mainService
1707
-      .postCustom("api", yuyue ? "appointmentOrder" : "startOrder", postData)
1708
-      .subscribe((data) => {
1709
-        that.hideInspectionOrder();
1710
-        if (data.status == 200) {
1711
-          that.showPromptModal("创建", true, "");
1712
-          that.goodsLis = [];
1713
-          that.getOrderList();
1714
-          that.getDeptTaskType();
1715
-        } else if (data.status == 100042) {
1716
-          that.showPromptModal("创建", true, data.msg);
1717
-          that.goodsLis = [];
1718
-          that.getOrderList();
1719
-          that.getDeptTaskType();
1720
-        } else {
1721
-          that.showPromptModal("创建", false, data.msg);
1722
-        }
1723
-      });
1724
-  }
1725 1329
 
1726 1330
   // 快捷一键发起建单
1727 1331
   shortcutMsg; //一键发起信息
@@ -1838,9 +1442,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
1838 1442
           { id: that.buildMsg.end.end.list[0].id },
1839 1443
         ];
1840 1444
       }
1841
-      // if (that.buildMsg.status == 100013 || that.buildMsg.status == 100012) {
1842
-      //   delete postData.workOrder['endDepts'];
1843
-      // }
1844 1445
     }
1845 1446
     console.log(postData);
1846 1447
     that.mainService
@@ -1961,7 +1562,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
1961 1562
   checkedTableType: string = "other";
1962 1563
   checkTable(type) {
1963 1564
     this.checkedTableType = type;
1964
-    this.tableHeight = window.innerHeight - 426;
1965 1565
   }
1966 1566
 
1967 1567
   // 意见箱表格数据
@@ -1970,6 +1570,7 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
1970 1570
   advicePageSize: number = 10; //表格每页展示条数
1971 1571
   adviceListLength: number = 10; //表格总数据量
1972 1572
   adviceSearchInp: string = ""; //意见箱搜索
1573
+  adviceLoading = false;
1973 1574
   getAdvice() {
1974 1575
     let that = this;
1975 1576
     let postData = {
@@ -1985,9 +1586,11 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
1985 1586
       idx: that.advicePageIndex - 1 < 0 ? 0 : that.advicePageIndex - 1,
1986 1587
       sum: that.advicePageSize,
1987 1588
     };
1589
+    this.adviceLoading = true;
1988 1590
     that.mainService
1989 1591
       .getFetchDataList("adviceCollection", "advice", postData)
1990 1592
       .subscribe((data) => {
1593
+        this.adviceLoading = false;
1991 1594
         that.adviceList = data.list || [];
1992 1595
         that.adviceListLength = data.totalNum || 0;
1993 1596
       });
@@ -2122,7 +1725,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
2122 1725
     this.detailModel = true;
2123 1726
     let user = JSON.parse(localStorage.getItem("user"));
2124 1727
     let postData = {
2125
-      // hosIds: user.infoPermission.hospitals[0].id,
2126 1728
       deptId: user.user.dept.id,
2127 1729
       urgent: speDetailType,
2128 1730
     };
@@ -2397,7 +1999,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
2397 1999
   showPromptModal(con, success, promptInfo?, back?) {
2398 2000
     this.btnLoading = false;
2399 2001
     this.btnLoading1 = false;
2400
-    this.btnLoading2 = false;
2401 2002
     this.promptModalShow = false;
2402 2003
     this.promptContent = con;
2403 2004
     this.ifSuccess = success;
@@ -2427,11 +2028,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
2427 2028
     });
2428 2029
   }
2429 2030
 
2430
-  // window resize事件 获取表格动态高
2431
-  windowResize() {
2432
-    this.tableHeight = window.innerHeight - 426;
2433
-  }
2434
-
2435 2031
   // 格式化时分秒
2436 2032
   // (时间小于一分钟则显示秒,时间大于一分钟则显示分钟数,如超出一小时则显示小时和分钟。)time单位:秒
2437 2033
   formatTime(time) {
@@ -2455,7 +2051,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
2455 2051
 
2456 2052
   // 计算历史记录耗时
2457 2053
   filterTime(step) {
2458
-    // step = [{ difTime: 2 }, { difTime: 6 }]
2459 2054
     let num = 0;
2460 2055
     step.forEach((e) => {
2461 2056
       num += e.difTime;
@@ -2523,7 +2118,6 @@ export class HushijiandanComponent implements OnInit, AfterViewInit {
2523 2118
 
2524 2119
   mainRole: boolean = false; //回到系统管理权限
2525 2120
   initRole() {
2526
-    // let roles = JSON.parse(localStorage.getItem('user')).user.role;
2527 2121
     let menus = JSON.parse(localStorage.getItem("menu"));
2528 2122
     let that = this;
2529 2123
     console.log("菜单数量" + menus.length);