Explorar el Código

Merge branch 'master' of http://git.dashitech.com/seimin/zy-pc

maotao hace 3 meses
padre
commit
a6fda46588

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

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

+ 16 - 0
src/app/views/inspect-and-patient-transport-config/inspect-and-patient-transport-config.component.html

@@ -117,6 +117,22 @@
117 117
           <nz-checkbox-group [(ngModel)]="isThirdEmergencyPatient"></nz-checkbox-group>
118 118
         </div>
119 119
 
120
+        <!-- 批量建立送回 -->
121
+        <div class="display_flex align-items_center mb8">
122
+          <nz-form-label class="label">批量建立送回</nz-form-label>
123
+          <nz-checkbox-group [(ngModel)]="batchCreationAndReturn"></nz-checkbox-group>
124
+        </div>
125
+        <!-- 配置执行中扫科室批量签到 -->
126
+        <div class="display_flex align-items_center mb8">
127
+          <nz-form-label class="label">配置执行中扫科室批量签到</nz-form-label>
128
+          <nz-checkbox-group [(ngModel)]="batchSignExecutionDept"></nz-checkbox-group>
129
+        </div>
130
+        <!-- 终点科室扫科室批量签到 -->
131
+        <div class="display_flex align-items_center mb8">
132
+          <nz-form-label class="label">终点科室扫科室批量签到</nz-form-label>
133
+          <nz-checkbox-group [(ngModel)]="batchSignEndDept"></nz-checkbox-group>
134
+        </div>
135
+
120 136
         <!-- 自动关单 -->
121 137
         <!-- <div class="display_flex align-items_center mb8">
122 138
           <nz-form-label class="label">自动关单</nz-form-label>

+ 21 - 0
src/app/views/inspect-and-patient-transport-config/inspect-and-patient-transport-config.component.ts

@@ -58,6 +58,21 @@ export class InspectAndPatientTransportConfigComponent implements OnInit {
58 58
   isThirdEmergencyPatient:any[] = [
59 59
     {label:'是否开启',value: 0}
60 60
   ];
61
+  // 批量建立送回
62
+  batchCreationAndReturn:any[] = [
63
+    {label:'是否开启',value: 0}
64
+  ];
65
+
66
+  // 配置执行中扫科室批量签到
67
+  batchSignExecutionDept:any[] = [
68
+    {label:'是否开启',value: 0}
69
+  ];
70
+
71
+  // 批量建立送回
72
+  batchSignEndDept:any[] = [
73
+    {label:'是否开启',value: 0}
74
+  ];
75
+
61 76
 
62 77
 
63 78
   timeMod:any;
@@ -231,6 +246,9 @@ export class InspectAndPatientTransportConfigComponent implements OnInit {
231 246
       finishService: this.finishService[0].checked ? 1 : 0,
232 247
       isThirdOutpatient: this.isThirdOutpatient[0].checked ? 1 : 0,
233 248
       isThirdEmergencyPatient: this.isThirdEmergencyPatient[0].checked ? 1 : 0,
249
+      batchCreationAndReturn: this.batchCreationAndReturn[0].checked ? 1 : 0,
250
+      batchSignExecutionDept: this.batchSignExecutionDept[0].checked ? 1 : 0,
251
+      batchSignEndDept: this.batchSignEndDept[0].checked ? 1 : 0,
234 252
       addService: this.addService[0].checked ? 1 : 0,
235 253
       addServiceTaskIds: this.addServiceTaskIds.length ? this.addServiceTaskIds.toString() : undefined,
236 254
 
@@ -352,6 +370,9 @@ export class InspectAndPatientTransportConfigComponent implements OnInit {
352 370
           this.finishService[0].checked = this.configs.finishService == 1;
353 371
           this.isThirdOutpatient[0].checked = this.configs.isThirdOutpatient == 1;
354 372
           this.isThirdEmergencyPatient[0].checked = this.configs.isThirdEmergencyPatient == 1;
373
+          this.batchCreationAndReturn[0].checked = this.configs.batchCreationAndReturn == 1;
374
+          this.batchSignExecutionDept[0].checked = this.configs.batchSignExecutionDept == 1;
375
+          this.batchSignEndDept[0].checked = this.configs.batchSignEndDept == 1;
355 376
           this.addService[0].checked = this.configs.addService == 1;
356 377
           this.addServiceTaskIds = this.configs.addServiceTaskIds ? this.configs.addServiceTaskIds.split(',').map(v => +v) : [];
357 378
 

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