Browse Source

Merge branch 'master' into develop

seimin 6 months ago
parent
commit
a9a5c09721

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

@@ -2653,14 +2653,15 @@ export class FuwutaiComponent implements OnInit {
2653
     if(this.currentTabIndex === '患者转运'){
2653
     if(this.currentTabIndex === '患者转运'){
2654
       console.log(this.workTypesArrange);
2654
       console.log(this.workTypesArrange);
2655
       let obj = this.workTypesArrange.find(v => v.key == this.currentTabIndex);
2655
       let obj = this.workTypesArrange.find(v => v.key == this.currentTabIndex);
2656
+      let tabIndex = this.workTypesArrange.findIndex(v => v.key == this.currentTabIndex);
2656
       let arr = obj.value || [];
2657
       let arr = obj.value || [];
2657
       let index = arr.findIndex(v => v.associationTypeValue === 'inspect');
2658
       let index = arr.findIndex(v => v.associationTypeValue === 'inspect');
2658
       let o = arr.find(v => v.associationTypeValue === 'inspect');
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
   // 点击tab切换
2663
   // 点击tab切换
2663
-  tabClick(key, isInit = false) {
2664
+  tabClick(key, isInit = false, patient?) {
2664
     let preCurrentTabIndex = this.currentTabIndex;
2665
     let preCurrentTabIndex = this.currentTabIndex;
2665
     this.currentTabIndex = key;
2666
     this.currentTabIndex = key;
2666
     this.radioValueQt = null;
2667
     this.radioValueQt = null;
@@ -2670,7 +2671,7 @@ export class FuwutaiComponent implements OnInit {
2670
     this.radioValueZyPre = null;
2671
     this.radioValueZyPre = null;
2671
     this.defaultInspectFn();
2672
     this.defaultInspectFn();
2672
     if(this.currentTabIndex === '患者转运'){
2673
     if(this.currentTabIndex === '患者转运'){
2673
-      this.getPatientList(this.applyDept, "");
2674
+      this.getPatientList(this.applyDept, "", patient);
2674
     }
2675
     }
2675
     this.startDeptZy = null;
2676
     this.startDeptZy = null;
2676
     this.endDeptZy = null;
2677
     this.endDeptZy = null;
@@ -2725,7 +2726,11 @@ export class FuwutaiComponent implements OnInit {
2725
   }
2726
   }
2726
   // 获取患者信息
2727
   // 获取患者信息
2727
   isLoadingPatient: boolean = false;
2728
   isLoadingPatient: boolean = false;
2728
-  getPatientList(id, searchWords) {
2729
+  getPatientList(id, searchWords, patient?) {
2730
+    if(patient){
2731
+      this.patientList = [patient];
2732
+      return;
2733
+    }
2729
     let dataObj = { searchWords, deptId: id };
2734
     let dataObj = { searchWords, deptId: id };
2730
     this.isLoadingPatient = true;
2735
     this.isLoadingPatient = true;
2731
     this.mainService.getPatientList(dataObj).subscribe((result) => {
2736
     this.mainService.getPatientList(dataObj).subscribe((result) => {
@@ -2759,9 +2764,10 @@ export class FuwutaiComponent implements OnInit {
2759
           patient.patientname = patient.patientName;
2764
           patient.patientname = patient.patientName;
2760
           patient.department && (this.applicationDepartmentList = [patient.department]);
2765
           patient.department && (this.applicationDepartmentList = [patient.department]);
2761
           patient.department && (this.applyDept = patient.department.id);
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
           patient.department && (this.patientZy = patient.patientCode);
2769
           patient.department && (this.patientZy = patient.patientCode);
2770
+          console.log(this.patientList)
2765
         }else{
2771
         }else{
2766
           this.msg.warning('未查询到患者');
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
     this.validateForm.controls.defaultValueNumber.setValue(null);
258
     this.validateForm.controls.defaultValueNumber.setValue(null);
259
     switch(value){
259
     switch(value){
260
       case 1:
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
         break;
263
         break;
263
       case 0:
264
       case 0:
264
         this.requiredChange(['required', 'checkType', 'defaultValueNumber', 'valueLow', 'valueUp']);
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
   <div class="tagsAndTemplete">
2
   <div class="tagsAndTemplete">
3
     <div class="tags">
3
     <div class="tags">
4
       <i class="icon_transport transport-24gf-tags"></i>
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
     </div>
6
     </div>
7
     <div class="template">
7
     <div class="template">
8
       <button nz-button class="btn default" (click)="showInspectionTemplate()">引入模板</button>
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
         gap: 16px;
25
         gap: 16px;
26
         position: relative;
26
         position: relative;
27
         overflow: hidden;
27
         overflow: hidden;
28
+        .active{
29
+          color: @primary-color;
30
+          font-weight: bold;
31
+        }
28
         .transport-24gf-tags{
32
         .transport-24gf-tags{
29
           width: 64px;
33
           width: 64px;
30
           height: 86px;
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
   clickTag(tag){
269
   clickTag(tag){
270
+    this.currentTagId = tag.id;
269
     this.maskFlag = this.message.loading("正在加载中..", {
271
     this.maskFlag = this.message.loading("正在加载中..", {
270
       nzDuration: 0,
272
       nzDuration: 0,
271
     }).messageId;
273
     }).messageId;