ソースを参照

Merge branch 'master' into develop

seimin 3 ヶ月 前
コミット
a9a5c09721

+ 12 - 6
src/app/views/fuwutai/fuwutai.component.ts

@@ -2653,14 +2653,15 @@ export class FuwutaiComponent implements OnInit {
2653 2653
     if(this.currentTabIndex === '患者转运'){
2654 2654
       console.log(this.workTypesArrange);
2655 2655
       let obj = this.workTypesArrange.find(v => v.key == this.currentTabIndex);
2656
+      let tabIndex = this.workTypesArrange.findIndex(v => v.key == this.currentTabIndex);
2656 2657
       let arr = obj.value || [];
2657 2658
       let index = arr.findIndex(v => v.associationTypeValue === 'inspect');
2658 2659
       let o = arr.find(v => v.associationTypeValue === 'inspect');
2659
-      o && this.radioChangeZy(o.id, index);
2660
+      o && this.radioChangeZy(o.id, tabIndex);
2660 2661
     }
2661 2662
   }
2662 2663
   // 点击tab切换
2663
-  tabClick(key, isInit = false) {
2664
+  tabClick(key, isInit = false, patient?) {
2664 2665
     let preCurrentTabIndex = this.currentTabIndex;
2665 2666
     this.currentTabIndex = key;
2666 2667
     this.radioValueQt = null;
@@ -2670,7 +2671,7 @@ export class FuwutaiComponent implements OnInit {
2670 2671
     this.radioValueZyPre = null;
2671 2672
     this.defaultInspectFn();
2672 2673
     if(this.currentTabIndex === '患者转运'){
2673
-      this.getPatientList(this.applyDept, "");
2674
+      this.getPatientList(this.applyDept, "", patient);
2674 2675
     }
2675 2676
     this.startDeptZy = null;
2676 2677
     this.endDeptZy = null;
@@ -2725,7 +2726,11 @@ export class FuwutaiComponent implements OnInit {
2725 2726
   }
2726 2727
   // 获取患者信息
2727 2728
   isLoadingPatient: boolean = false;
2728
-  getPatientList(id, searchWords) {
2729
+  getPatientList(id, searchWords, patient?) {
2730
+    if(patient){
2731
+      this.patientList = [patient];
2732
+      return;
2733
+    }
2729 2734
     let dataObj = { searchWords, deptId: id };
2730 2735
     this.isLoadingPatient = true;
2731 2736
     this.mainService.getPatientList(dataObj).subscribe((result) => {
@@ -2759,9 +2764,10 @@ export class FuwutaiComponent implements OnInit {
2759 2764
           patient.patientname = patient.patientName;
2760 2765
           patient.department && (this.applicationDepartmentList = [patient.department]);
2761 2766
           patient.department && (this.applyDept = patient.department.id);
2762
-          patient.department && this.tabClick('患者转运');
2763
-          patient.department && (this.patientList = [patient]);
2767
+          patient.department && this.tabClick('患者转运', false, patient);
2768
+          // patient.department && (this.patientList = [patient]);
2764 2769
           patient.department && (this.patientZy = patient.patientCode);
2770
+          console.log(this.patientList)
2765 2771
         }else{
2766 2772
           this.msg.warning('未查询到患者');
2767 2773
         }

+ 2 - 1
src/app/views/inspection-configuration-item/inspection-configuration-item.component.ts

@@ -258,7 +258,8 @@ export class InspectionConfigurationItemComponent implements OnInit, AfterViewIn
258 258
     this.validateForm.controls.defaultValueNumber.setValue(null);
259 259
     switch(value){
260 260
       case 1:
261
-        this.requiredChange(['required', 'checkType', 'defaultValueNumber', 'valuex', 'valueGap']);
261
+        // this.requiredChange(['required', 'checkType', 'defaultValueNumber', 'valuex', 'valueGap']);
262
+        this.requiredChange(['required', 'checkType', 'defaultValueNumber']);
262 263
         break;
263 264
       case 0:
264 265
         this.requiredChange(['required', 'checkType', 'defaultValueNumber', 'valueLow', 'valueUp']);

+ 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;