seimin 3 月之前
父節點
當前提交
e4571f20f1

+ 14 - 8
src/app/views/fuwutai/fuwutai.component.ts

@@ -2660,7 +2660,7 @@ export class FuwutaiComponent implements OnInit {
2660 2660
     }
2661 2661
   }
2662 2662
   // 点击tab切换
2663
-  tabClick(key, isInit = false) {
2663
+  tabClick(key, isInit = false, patient?) {
2664 2664
     let preCurrentTabIndex = this.currentTabIndex;
2665 2665
     this.currentTabIndex = key;
2666 2666
     this.radioValueQt = null;
@@ -2670,7 +2670,7 @@ export class FuwutaiComponent implements OnInit {
2670 2670
     this.radioValueZyPre = null;
2671 2671
     this.defaultInspectFn();
2672 2672
     if(this.currentTabIndex === '患者转运'){
2673
-      this.getPatientList(this.applyDept, "");
2673
+      this.getPatientList(this.applyDept, "", patient);
2674 2674
     }
2675 2675
     this.startDeptZy = null;
2676 2676
     this.endDeptZy = null;
@@ -2725,7 +2725,11 @@ export class FuwutaiComponent implements OnInit {
2725 2725
   }
2726 2726
   // 获取患者信息
2727 2727
   isLoadingPatient: boolean = false;
2728
-  getPatientList(id, searchWords) {
2728
+  getPatientList(id, searchWords, patient?) {
2729
+    if(patient){
2730
+      this.patientList = [patient];
2731
+      return;
2732
+    }
2729 2733
     let dataObj = { searchWords, deptId: id };
2730 2734
     this.isLoadingPatient = true;
2731 2735
     this.mainService.getPatientList(dataObj).subscribe((result) => {
@@ -2759,9 +2763,10 @@ export class FuwutaiComponent implements OnInit {
2759 2763
           patient.patientname = patient.patientName;
2760 2764
           patient.department && (this.applicationDepartmentList = [patient.department]);
2761 2765
           patient.department && (this.applyDept = patient.department.id);
2762
-          patient.department && this.tabClick('患者转运');
2763
-          patient.department && (this.patientList = [patient]);
2766
+          patient.department && this.tabClick('患者转运', false, patient);
2767
+          // patient.department && (this.patientList = [patient]);
2764 2768
           patient.department && (this.patientZy = patient.patientCode);
2769
+          console.log(this.patientList)
2765 2770
         }else{
2766 2771
           this.msg.warning('未查询到患者');
2767 2772
         }
@@ -4537,8 +4542,8 @@ export class FuwutaiComponent implements OnInit {
4537 4542
     this.startDeptZy = null;
4538 4543
     this.endDeptZy = null;
4539 4544
     // 患者陪检-则参数增加patientCode
4540
-    console.log(this.workTypesArrange[index].value);
4541
-    let taskType = this.workTypesArrange[index].value.find(v => v.id == value);
4545
+    let currentTab = this.workTypesArrange.find(v => v.key === this.currentTabIndex);
4546
+    let taskType = currentTab.value[index];
4542 4547
     let patientCode;
4543 4548
     if(taskType.associationTypeValue === 'inspect'){
4544 4549
       patientCode = this.patientZy;
@@ -5711,7 +5716,8 @@ export class FuwutaiComponent implements OnInit {
5711 5716
     if(this.tabIndex !== undefined && this.currentTasktype && this.currentTasktype.associationType.value === 'inspect'){
5712 5717
       let index = this.tabIndex;
5713 5718
       let value = this.currentTasktype.id;
5714
-      let taskType = this.workTypesArrange[index].value.find(v => v.id == value);
5719
+      let currentTab = this.workTypesArrange.find(v => v.key === this.currentTabIndex);
5720
+      let taskType = currentTab.value[index];
5715 5721
       let patientCode;
5716 5722
       if(taskType.associationTypeValue === 'inspect'){
5717 5723
         patientCode = this.patientZy;

+ 1 - 1
src/app/views/inspection-plan-config/inspection-plan-config.component.html

@@ -2,7 +2,7 @@
2 2
   <div class="tagsAndTemplete">
3 3
     <div class="tags">
4 4
       <i class="icon_transport transport-24gf-tags"></i>
5
-      <span *ngFor="let tag of tagList" (click)="clickTag(tag)">{{ tag.name }}</span>
5
+      <span *ngFor="let tag of tagList" (click)="clickTag(tag)" [ngClass]="{active: tag.id === currentTagId}">{{ tag.name }}</span>
6 6
     </div>
7 7
     <div class="template">
8 8
       <button nz-button class="btn default" (click)="showInspectionTemplate()">引入模板</button>

+ 4 - 0
src/app/views/inspection-plan-config/inspection-plan-config.component.less

@@ -25,6 +25,10 @@
25 25
         gap: 16px;
26 26
         position: relative;
27 27
         overflow: hidden;
28
+        .active{
29
+          color: @primary-color;
30
+          font-weight: bold;
31
+        }
28 32
         .transport-24gf-tags{
29 33
           width: 64px;
30 34
           height: 86px;

+ 2 - 0
src/app/views/inspection-plan-config/inspection-plan-config.component.ts

@@ -265,7 +265,9 @@ export class InspectionPlanConfigComponent implements OnInit, AfterViewInit {
265 265
   }
266 266
 
267 267
   // 点击标签
268
+  currentTagId;
268 269
   clickTag(tag){
270
+    this.currentTagId = tag.id;
269 271
     this.maskFlag = this.message.loading("正在加载中..", {
270 272
       nzDuration: 0,
271 273
     }).messageId;