seimin 1 年之前
父節點
當前提交
f6856567c9

+ 1 - 1
src/app/share/dialog-delete/dialog-delete.component.html

@@ -4,7 +4,7 @@
4 4
     <div class="title">提示<i class="icon_transport transport-guanbi" (click)="hideDelModal('x')"></i></div>
5 5
     <div class="content">
6 6
       <div class="icon"><i class="icon_transport transport-wenhao"></i></div>
7
-      <div class="defeat">{{content}}</div>
7
+      <div class="defeat" [innerHTML]="content | htmlTransform"></div>
8 8
       <div class="tips red" *ngIf="tips">({{tips}})</div>
9 9
     </div>
10 10
     <div class="operate">

+ 3 - 0
src/app/share/dialog-delete/dialog-delete.component.less

@@ -69,6 +69,9 @@
69 69
         &.defeat {
70 70
           color: #333;
71 71
           font-size: 16px;
72
+          span {
73
+            color: red;
74
+          }
72 75
         }
73 76
         &.tips {
74 77
           font-size: 14px;

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

@@ -249,7 +249,7 @@
249 249
                   </div>
250 250
                   <div class="checkInfo" nz-row>
251 251
                     <span nz-col nzSpan="24">{{ item.applyDate | date:'HH:mm' }}({{ item.orders }})</span>
252
-                    <span nz-col nzSpan="24">{{ item.areaDept ? (deptDisplay == 2 ? item.areaDept.deptalias : item.areaDept.dept) : '' }}</span>
252
+                    <span nz-col nzSpan="24">{{ item.areaDeptDTO ? (deptDisplay == 2 ? item.areaDeptDTO.deptalias : item.areaDeptDTO.dept) : '' }}</span>
253 253
                     <span nz-col nzSpan="24">{{ item.surgeryName }}</span>
254 254
                   </div>
255 255
                   <div class="btn" (click)="pickUpPatient($event, item)">一键接患者</div>
@@ -3554,4 +3554,4 @@
3554 3554
 
3555 3555
 <!-- 是否一键接患者模态框 -->
3556 3556
 <app-dialog-delete [delModal]="pickUpModal" (hideDelModalEvent)="hidePickUpModal()" [btnLoading]="btnLoading"
3557
-(confirmDelEvent)="confirmPickUp()" content="您本次需要从某某科室接某某患者到某某手术间进行手术,您确认接患者吗?"></app-dialog-delete>
3557
+(confirmDelEvent)="confirmPickUp()" [content]="pickUpInfo"></app-dialog-delete>

+ 3 - 0
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -1396,12 +1396,14 @@ export class HushijiandanComponent implements OnInit {
1396 1396
     }
1397 1397
   };
1398 1398
   pickUpModal: boolean = false; //模态框
1399
+  pickUpInfo:string = '';
1399 1400
   pickUpItem: any = {};
1400 1401
   hidePickUpModal() {
1401 1402
     this.pickUpModal = false;
1402 1403
   }
1403 1404
   // 确认
1404 1405
   confirmPickUp() {
1406
+    alert('建单,无接口')
1405 1407
     console.log(this.pickUpItem);
1406 1408
     return;
1407 1409
     this.showPromptModal("创建", true, "");
@@ -1442,6 +1444,7 @@ export class HushijiandanComponent implements OnInit {
1442 1444
     e.stopPropagation();
1443 1445
     this.pickUpModal = true;
1444 1446
     this.pickUpItem = item;
1447
+    this.pickUpInfo = `您本次需要从<span style="color:red;">${item.areaDeptDTO ? (this.deptDisplay == 2 ? item.areaDeptDTO.deptalias : item.areaDeptDTO.dept) : ''}</span>科室接<span style="color:red;">${item.patientDTO ? item.patientDTO.patientName : ''}</span>患者到<span style="color:red;">${item.surgeryDeptDTO ? (this.deptDisplay == 2 ? item.surgeryDeptDTO.deptalias : item.surgeryDeptDTO.dept) : ''}</span>手术间进行手术,您确认接患者吗?`
1445 1448
   }
1446 1449
 
1447 1450
   // 患者信息一键建单

+ 3 - 3
src/app/views/task-type-management/task-type-management.component.html

@@ -52,9 +52,9 @@
52 52
         </div>
53 53
         <nz-form-label class="label" nzRequired>关联类型</nz-form-label>
54 54
         <!-- 关联类型禁止修改 -->
55
-        <nz-select class="mb8 w100" nzShowSearch nzPlaceHolder="请选择关联类型" [(ngModel)]="association" [compareWith]="compareFn"
56
-          (ngModelChange)="asso(association)" [nzDisabled]="!add">
57
-          <nz-option [nzLabel]="data.name" [nzValue]="data" *ngFor="let data of allAssociation"></nz-option>
55
+        <nz-select class="mb8 w100" nzShowSearch nzPlaceHolder="请选择关联类型" [ngModel]="association.id"
56
+          (ngModelChange)="asso($event)" [nzDisabled]="!add">
57
+          <nz-option nzLabel="{{data.name}}" nzValue="{{data.id}}" *ngFor="let data of allAssociation"></nz-option>
58 58
         </nz-select>
59 59
         <ng-container *ngIf="association.value == 'ordinary'">
60 60
           <nz-form-label class="label" nzRequired>关联业务</nz-form-label>

+ 10 - 6
src/app/views/task-type-management/task-type-management.component.ts

@@ -82,7 +82,10 @@ export class TaskTypeManagementComponent implements OnInit {
82 82
   allScheduleClass; //班次列表
83 83
   //基础信息详情字段
84 84
   taskName; //任务名称
85
-  association: any = {}; //关联类型
85
+  association: any = {
86
+    id: "",
87
+    value: "",
88
+  }; //关联类型
86 89
   relatedBusiness: any = {
87 90
     id: "",
88 91
     value: "",
@@ -564,12 +567,13 @@ export class TaskTypeManagementComponent implements OnInit {
564 567
     this.createRuleConfiguration[index] = data;
565 568
   }
566 569
   //类型选择
567
-  asso(data): void {
570
+  asso(id): void {
571
+    this.association = this.allAssociation.find(v=>v.id == id);
568 572
     this.relatedBusiness = {
569 573
       id:'',
570 574
       value:''
571 575
     }
572
-    if (data.id == 260) {
576
+    if (id == 260) {
573 577
       this.carryingCourses = [
574 578
         {
575 579
           nodeId: { id: 261 },
@@ -603,7 +607,6 @@ export class TaskTypeManagementComponent implements OnInit {
603 607
       this.getSearchTaskList();
604 608
     }
605 609
   }
606
-  compareFn = (o1: any, o2: any) => (o1 && o2 ? o1.id === o2.id : o1 === o2);
607 610
   //选择类型
608 611
   currentChoice;
609 612
   itemChoice(data, index) {
@@ -620,7 +623,8 @@ export class TaskTypeManagementComponent implements OnInit {
620 623
     };
621 624
     this.taskData.taskType["id"] = data.id;
622 625
     this.taskName = data.taskName;
623
-    this.association = data.associationType;
626
+    this.association.id = data.associationType.id + "";
627
+    this.association.value = data.associationType.value;
624 628
     this.getType();
625 629
     this.departments = [];
626 630
     this.mapOfCheckedId = {};
@@ -1205,7 +1209,7 @@ export class TaskTypeManagementComponent implements OnInit {
1205 1209
     this.departmentIds = "";
1206 1210
     this.departmentTypeIds = "";
1207 1211
     this.taskName = ""; //任务名称
1208
-    this.association = {}; //关联类型
1212
+    this.association.id = null; //关联类型
1209 1213
     this.getAllGoods(); //获取携带设备
1210 1214
     this.getAllScheduleClass(); //获取班次列表
1211 1215
     this.allowUrgent = "1"; //是否加急