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

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

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

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

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

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

@@ -249,7 +249,7 @@
249
                   </div>
249
                   </div>
250
                   <div class="checkInfo" nz-row>
250
                   <div class="checkInfo" nz-row>
251
                     <span nz-col nzSpan="24">{{ item.applyDate | date:'HH:mm' }}({{ item.orders }})</span>
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
                     <span nz-col nzSpan="24">{{ item.surgeryName }}</span>
253
                     <span nz-col nzSpan="24">{{ item.surgeryName }}</span>
254
                   </div>
254
                   </div>
255
                   <div class="btn" (click)="pickUpPatient($event, item)">一键接患者</div>
255
                   <div class="btn" (click)="pickUpPatient($event, item)">一键接患者</div>
@@ -3554,4 +3554,4 @@
3554
 
3554
 
3555
 <!-- 是否一键接患者模态框 -->
3555
 <!-- 是否一键接患者模态框 -->
3556
 <app-dialog-delete [delModal]="pickUpModal" (hideDelModalEvent)="hidePickUpModal()" [btnLoading]="btnLoading"
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
   pickUpModal: boolean = false; //模态框
1398
   pickUpModal: boolean = false; //模态框
1399
+  pickUpInfo:string = '';
1399
   pickUpItem: any = {};
1400
   pickUpItem: any = {};
1400
   hidePickUpModal() {
1401
   hidePickUpModal() {
1401
     this.pickUpModal = false;
1402
     this.pickUpModal = false;
1402
   }
1403
   }
1403
   // 确认
1404
   // 确认
1404
   confirmPickUp() {
1405
   confirmPickUp() {
1406
+    alert('建单,无接口')
1405
     console.log(this.pickUpItem);
1407
     console.log(this.pickUpItem);
1406
     return;
1408
     return;
1407
     this.showPromptModal("创建", true, "");
1409
     this.showPromptModal("创建", true, "");
@@ -1442,6 +1444,7 @@ export class HushijiandanComponent implements OnInit {
1442
     e.stopPropagation();
1444
     e.stopPropagation();
1443
     this.pickUpModal = true;
1445
     this.pickUpModal = true;
1444
     this.pickUpItem = item;
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
         </div>
52
         </div>
53
         <nz-form-label class="label" nzRequired>关联类型</nz-form-label>
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
         </nz-select>
58
         </nz-select>
59
         <ng-container *ngIf="association.value == 'ordinary'">
59
         <ng-container *ngIf="association.value == 'ordinary'">
60
           <nz-form-label class="label" nzRequired>关联业务</nz-form-label>
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
   allScheduleClass; //班次列表
82
   allScheduleClass; //班次列表
83
   //基础信息详情字段
83
   //基础信息详情字段
84
   taskName; //任务名称
84
   taskName; //任务名称
85
-  association: any = {}; //关联类型
85
+  association: any = {
86
+    id: "",
87
+    value: "",
88
+  }; //关联类型
86
   relatedBusiness: any = {
89
   relatedBusiness: any = {
87
     id: "",
90
     id: "",
88
     value: "",
91
     value: "",
@@ -564,12 +567,13 @@ export class TaskTypeManagementComponent implements OnInit {
564
     this.createRuleConfiguration[index] = data;
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
     this.relatedBusiness = {
572
     this.relatedBusiness = {
569
       id:'',
573
       id:'',
570
       value:''
574
       value:''
571
     }
575
     }
572
-    if (data.id == 260) {
576
+    if (id == 260) {
573
       this.carryingCourses = [
577
       this.carryingCourses = [
574
         {
578
         {
575
           nodeId: { id: 261 },
579
           nodeId: { id: 261 },
@@ -603,7 +607,6 @@ export class TaskTypeManagementComponent implements OnInit {
603
       this.getSearchTaskList();
607
       this.getSearchTaskList();
604
     }
608
     }
605
   }
609
   }
606
-  compareFn = (o1: any, o2: any) => (o1 && o2 ? o1.id === o2.id : o1 === o2);
607
   //选择类型
610
   //选择类型
608
   currentChoice;
611
   currentChoice;
609
   itemChoice(data, index) {
612
   itemChoice(data, index) {
@@ -620,7 +623,8 @@ export class TaskTypeManagementComponent implements OnInit {
620
     };
623
     };
621
     this.taskData.taskType["id"] = data.id;
624
     this.taskData.taskType["id"] = data.id;
622
     this.taskName = data.taskName;
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
     this.getType();
628
     this.getType();
625
     this.departments = [];
629
     this.departments = [];
626
     this.mapOfCheckedId = {};
630
     this.mapOfCheckedId = {};
@@ -1205,7 +1209,7 @@ export class TaskTypeManagementComponent implements OnInit {
1205
     this.departmentIds = "";
1209
     this.departmentIds = "";
1206
     this.departmentTypeIds = "";
1210
     this.departmentTypeIds = "";
1207
     this.taskName = ""; //任务名称
1211
     this.taskName = ""; //任务名称
1208
-    this.association = {}; //关联类型
1212
+    this.association.id = null; //关联类型
1209
     this.getAllGoods(); //获取携带设备
1213
     this.getAllGoods(); //获取携带设备
1210
     this.getAllScheduleClass(); //获取班次列表
1214
     this.getAllScheduleClass(); //获取班次列表
1211
     this.allowUrgent = "1"; //是否加急
1215
     this.allowUrgent = "1"; //是否加急