Bläddra i källkod

护士端患者列表暂未开通增加患者其他服务台的条件

seimin 3 år sedan
förälder
incheckning
d6e77c36d2

+ 1 - 0
src/app/share/detail-patients/detail-patients.component.html

@@ -23,6 +23,7 @@
23 23
           <div nz-col nzSpan="8">陪同情况:{{orderInfo.isAccompany==1?'需要医护陪同':'无需医护陪同'}}</div>
24 24
           <div nz-col nzSpan="8">预约时间:{{orderInfo.yyjdTime|date:'MM-dd HH:mm'}}</div>
25 25
           <div nz-col nzSpan="8" *ngIf="orderInfo.worker">支助人员信息:{{orderInfo.worker.name}}</div>
26
+          <div nz-col nzSpan="8">是否半程陪检:{{orderInfo.isHalfInspect===1?'是':'否'}}</div>
26 27
           <div nz-col nzSpan="24" *ngIf="orderInfo.specialCloseReason">
27 28
             特殊情况关闭原因:{{orderInfo.specialCloseReason}}
28 29
           </div>

+ 2 - 2
src/app/share/order-detail/order-detail.component.html

@@ -392,8 +392,8 @@
392 392
               陪同情况:{{orderInfo.isAccompany==1?'需要医护陪同':'无需医护陪同'}}</div>
393 393
             <div nz-col nzSpan="6" *ngIf="orderInfo.yyjdTime">
394 394
               预约时间:{{orderInfo.yyjdTime|date:'MM-dd HH:mm'}}</div>
395
-            <div nz-col nzSpan="6" *ngIf="orderInfo.taskType">
396
-              是否半程陪检:{{orderInfo.taskType.isHalfInspect===1?'是':'否'}}</div>
395
+            <div nz-col nzSpan="6">
396
+              是否半程陪检:{{orderInfo.isHalfInspect===1?'是':'否'}}</div>
397 397
           </div>
398 398
           <div class="info" nz-row *ngIf="orderInfo.urgentDetails">
399 399
             <div nz-col nzSpan="24" class="jiaji">加急原因:{{orderInfo.urgentDetails.urgentReason}}</div>

+ 3 - 3
src/app/views/fuwutai/fuwutai.component.html

@@ -108,7 +108,7 @@
108 108
                   <span class="left mr8"><label nz-checkbox [ngModel]="data.checked"
109 109
                       (ngModelChange)="batchDispatchSelect($event,data.id)"></label></span>
110 110
                   <span class="left gongdan_name" nz-tooltip
111
-                    [nzTooltipTitle]="data.taskType.taskName+'('+data.gdcode+')'">{{data.taskType.isHalfInspect ===
111
+                    [nzTooltipTitle]="data.taskType.taskName+'('+data.gdcode+')'">{{data.isHalfInspect ===
112 112
                     1?'半程陪检':data.taskType.taskName}}({{data.gdcode}})</span>
113 113
                   <span>{{data.worker?data.worker.name:''}}</span>
114 114
                   <span class="right">
@@ -274,7 +274,7 @@
274 274
                   <span class="left mr8"><label nz-checkbox [ngModel]="data.checked"
275 275
                       (ngModelChange)="batchWithdrawalSelect($event,data.id)"></label></span>
276 276
                   <span class="left gongdan_name" nz-tooltip
277
-                    [nzTooltipTitle]="data.taskType.taskName+'('+data.gdcode+')'">{{data.taskType.isHalfInspect ===
277
+                    [nzTooltipTitle]="data.taskType.taskName+'('+data.gdcode+')'">{{data.isHalfInspect ===
278 278
                     1?'半程陪检':data.taskType.taskName}}({{data.gdcode}})</span>
279 279
                   <span>{{data.worker?data.worker.name:''}}</span>
280 280
                   <span class="right">
@@ -438,7 +438,7 @@
438 438
                 <!-- 工单 -->
439 439
                 <div class="gongdan">
440 440
                   <span class="left gongdan_name" nz-tooltip
441
-                    [nzTooltipTitle]="data.taskType.taskName+'('+data.gdcode+')'">{{data.taskType.isHalfInspect ===
441
+                    [nzTooltipTitle]="data.taskType.taskName+'('+data.gdcode+')'">{{data.isHalfInspect ===
442 442
                     1?'半程陪检':data.taskType.taskName}}({{data.gdcode}})</span>
443 443
                   <span>{{data.worker?data.worker.name:''}}</span>
444 444
                   <span class="right">

+ 3 - 3
src/app/views/hushijiandan/hushijiandan.component.html

@@ -8,7 +8,7 @@
8 8
         </div>
9 9
       </div>
10 10
       <div class="notAvailable display_flex align-items_center justify-content_flex-center"
11
-        *ngIf="!deptTaskTypeRules.openInspection">
11
+        *ngIf="!deptTaskTypeRules.openInspection&&!deptTaskTypeRules.openPatientTransport">
12 12
         <div>
13 13
           <img src="../../assets/images/icon_jianchakong.png" alt="">
14 14
           <div>暂未开通</div>
@@ -25,7 +25,7 @@
25 25
         <div class="checkedInfo patient" style="padding-bottom:0;">
26 26
           <overlay-scrollbars #osComponentRef4 class="box">
27 27
             <div class="loading display_flex align-items_center justify-content_flex-center"
28
-              *ngIf="pLoading&&deptTaskTypeRules.openInspection">
28
+              *ngIf="pLoading&&(deptTaskTypeRules.openInspection||deptTaskTypeRules.openPatientTransport)">
29 29
               <div>
30 30
                 <img src="../../assets/images/loading.gif" alt="">
31 31
                 <div>加载中...</div>
@@ -649,7 +649,7 @@
649 649
                         <div class="info">
650 650
                           <div class="row" nz-row>
651 651
                             <div nz-col nzSpan="12" class="col txtL">
652
-                              {{item.taskType.isHalfInspect ===
652
+                              {{item.isHalfInspect ===
653 653
                               1?'半程陪检':item.taskType.taskName}}
654 654
                               <span
655 655
                                 *ngIf="item.patient&&(item.taskType.associationType.value=='patientTransport'||item.taskType.associationType.value=='inspect')">

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

@@ -630,8 +630,11 @@ export class HushijiandanComponent implements OnInit {
630 630
         if (search === undefined) {
631 631
           that.deptTaskTypeRules = data.data;
632 632
           that.getOrderList();
633
-          if (that.deptTaskTypeRules.openInspection) {
634
-            // 陪检权限
633
+          if (
634
+            that.deptTaskTypeRules.openInspection ||
635
+            that.deptTaskTypeRules.openPatientTransport
636
+          ) {
637
+            // 陪检权限或转科权限
635 638
             if (this.tabFlag) {
636 639
               this.tabFlag = false;
637 640
               this.getTaskTypeByInspection().subscribe((result) => {
@@ -992,13 +995,24 @@ export class HushijiandanComponent implements OnInit {
992 995
       .postCustom("configuration", "deptTSPTaskType", {})
993 996
       .subscribe((data) => {
994 997
         that.checkTypeLis = data.data;
995
-        // 默认选中患者陪检
996
-        that.checkTypeLis.forEach((e) => {
997
-          if (e.associationType.value == "inspect") {
998
-            that.patientForm.controls.checkedType.setValue(e.id);
999
-            that.patientForm.value.checkedType = e.id;
998
+        // 默认选中患者陪检,没有患者陪检,则选择第一个患者其他服务的任务类型
999
+        for (let i = 0; i < that.checkTypeLis.length; i++) {
1000
+          if (that.checkTypeLis[i].associationType.value == "inspect") {
1001
+            that.patientForm.controls.checkedType.setValue(
1002
+              that.checkTypeLis[i].id
1003
+            );
1004
+            that.patientForm.value.checkedType = that.checkTypeLis[i].id;
1005
+            break;
1006
+          } else if (
1007
+            that.checkTypeLis[i].associationType.value == "patientTransport"
1008
+          ) {
1009
+            that.patientForm.controls.checkedType.setValue(
1010
+              that.checkTypeLis[i].id
1011
+            );
1012
+            that.patientForm.value.checkedType = that.checkTypeLis[i].id;
1013
+            break;
1000 1014
           }
1001
-        });
1015
+        }
1002 1016
         this.changeCheckedType();
1003 1017
       });
1004 1018
   }