Ver código fonte

解决冲突

maotao 2 meses atrás
pai
commit
104ee4f000

+ 9 - 0
src/app/components/configurationCenter/configuration-inspect/configuration-inspect-inspects/configuration-inspect-inspects.component.html

@@ -107,6 +107,15 @@
107 107
             </nz-input-group>
108 108
           </nz-form-control>
109 109
         </nz-form-item>
110
+        <nz-form-item>
111
+          <nz-form-label style="line-height:40px;" [nzSpan]="6" nzRequired nzFor="extra8">是否初始化</nz-form-label>
112
+          <nz-form-control [nzSpan]="18" nzErrorTip="请选择是否初始化!">
113
+            <nz-radio-group formControlName="extra8">
114
+              <label nz-radio nzValue="1">是</label>
115
+              <label nz-radio nzValue="0">否</label>
116
+            </nz-radio-group>
117
+          </nz-form-control>
118
+        </nz-form-item>
110 119
         <nz-form-item>
111 120
           <nz-form-label [nzSpan]="6" nzRequired nzFor="extra6">项目标识</nz-form-label>
112 121
           <nz-form-control [nzSpan]="18" nzErrorTip="请输入项目标识!">

+ 4 - 1
src/app/components/configurationCenter/configuration-inspect/configuration-inspect-inspects/configuration-inspect-inspects.component.ts

@@ -65,6 +65,7 @@ export class ConfigurationInspectInspectsComponent implements OnInit {
65 65
     this.validateForm.controls.extra4.setValue(data.extra4DTO ? data.extra4DTO.id : null);
66 66
     this.validateForm.controls.extra5.setValue(data.extra5DTO ? data.extra5DTO.id : null);
67 67
     this.validateForm.controls.extra7.setValue(data.deptList ? data.deptList.map(v => v.id) : []);
68
+    this.validateForm.controls.extra8.setValue(data.extra8 || '0');
68 69
 
69 70
     data.extra4DTO && (this.deptList = [data.extra4DTO]);
70 71
     data.deptList && (this.deptsList = data.deptList);
@@ -112,7 +113,7 @@ export class ConfigurationInspectInspectsComponent implements OnInit {
112 113
           extra4: this.validateForm.value.extra4,
113 114
           extra5: this.validateForm.value.extra5,
114 115
           extra7: this.validateForm.value.extra7.toString(),
115
-          extra8: '1',
116
+          extra8: this.validateForm.value.extra8,
116 117
         // }
117 118
       };
118 119
     } else {
@@ -127,6 +128,7 @@ export class ConfigurationInspectInspectsComponent implements OnInit {
127 128
           extra4: this.validateForm.value.extra4,
128 129
           extra5: this.validateForm.value.extra5,
129 130
           extra7: this.validateForm.value.extra7.toString(),
131
+          extra8: this.validateForm.value.extra8,
130 132
         // }
131 133
       };
132 134
     }
@@ -159,6 +161,7 @@ export class ConfigurationInspectInspectsComponent implements OnInit {
159 161
       extra4: [null],
160 162
       extra5: [null, [Validators.required]],
161 163
       extra7: [[]],
164
+      extra8: [null, [Validators.required]],
162 165
     });
163 166
   }
164 167
 

+ 2 - 2
src/app/type/types.ts

@@ -15,8 +15,8 @@ export interface baseUrlType {
15 15
   host: string; //接口地址
16 16
   specimenViewHost: string; //业务视图地址
17 17
   bigScreenHost: string; //大屏地址地址
18
-  bigScreenHost2: string; //大屏地址2地址
19
-  bigScreenHost3: string; //大屏地址3地址
18
+  bigScreenHost2: string; //运送陪检大屏地址
19
+  bigScreenHost3: string; //运维大屏地址
20 20
   homeWs: string; //websocket首页地址
21 21
   mainWs: string; //websocket管理端地址
22 22
   nurseWs: string; //websocket护士端地址

+ 6 - 4
src/app/views/main/main.component.html

@@ -48,8 +48,8 @@
48 48
               <div class="dropdownItem" *ngIf="pharmacyRole" (click)="toPharmacy()">药房端</div>
49 49
               <div class="dropdownItem" *ngIf="pharmacyRole" (click)="toPharmacy2()">药房端2</div>
50 50
               <div class="dropdownItem" *ngIf="largeScreenRole" (click)="toBigScreen('largeScreen')">大屏端</div>
51
-              <div class="dropdownItem" *ngIf="largeScreenRole2" (click)="toBigScreen('largeScreen2')">大屏端2</div>
52
-              <div class="dropdownItem" *ngIf="largeScreenRole3" (click)="toBigScreen('largeScreen3')">大屏端3</div>
51
+              <div class="dropdownItem" *ngIf="largeScreenRole2" (click)="toBigScreen('largeScreen2')">运送陪检大屏</div>
52
+              <div class="dropdownItem" *ngIf="largeScreenRole3" (click)="queryRangeClick()">运维大屏</div>
53 53
               <div class="dropdownItem" *ngIf="specimenViewRole" (click)="toBigScreen('specimenView')">业务视图</div>
54 54
               <div class="dropdownItem" *ngIf="specimenViewRole2" (click)="toSpecimenView2()">标本视图</div>
55 55
               <div class="dropdownItem" *ngIf="specimenRoomView" (click)="toSpecimenRoomView()">标本间端</div>
@@ -626,6 +626,9 @@
626 626
 	</div>
627 627
 </div>
628 628
 
629
+<!-- 查询范围 -->
630
+<app-query-range [hospital]="hospital" [duty]="duty" [queryType]="queryType" [parent]="parent" [hiddenParent]="true" (cancelQueryRange)="cancelQueryRange()" (submitQueryRange)="submitQueryRange($event)" *ngIf="queryRangeFlag"></app-query-range>
631
+
629 632
 <!-- 操作成功/失败提示框 -->
630 633
 <app-prompt-modal
631 634
   *ngIf="promptModalShow"
@@ -635,5 +638,4 @@
635 638
   [info]="promptInfo"
636 639
   [back]="back"
637 640
   (closeModel)="closeModel($event)"
638
->
639
-
641
+></app-prompt-modal>

+ 73 - 6
src/app/views/main/main.component.ts

@@ -46,8 +46,8 @@ export class MainComponent implements OnInit, OnDestroy {
46 46
   nurseRole: boolean = false; //护士端权限
47 47
   pharmacyRole: boolean = false; //药房端权限
48 48
   largeScreenRole: boolean = false; //大屏端权限
49
-  largeScreenRole2: boolean = false; //大屏端2权限
50
-  largeScreenRole3: boolean = false; //大屏端3权限
49
+  largeScreenRole2: boolean = false; //运送陪检大屏权限
50
+  largeScreenRole3: boolean = false; //运维大屏权限
51 51
   specimenViewRole: boolean = false; //业务视图权限
52 52
   specimenViewRole2: boolean = false; //标本视图权限
53 53
 	specimenRoomView: boolean = false; //标本间权限
@@ -84,6 +84,7 @@ export class MainComponent implements OnInit, OnDestroy {
84 84
 	eventData:any
85 85
   ngOnInit() {
86 86
 		this.getEvent();
87
+		this.initHospitalAndDuty(this.tool.getCurrentHospital());
87 88
     this.highlightMenuByUrl();
88 89
     this.routerEventsListener = this.router.events
89 90
       .pipe(filter((event) => event instanceof NavigationEnd))
@@ -333,11 +334,11 @@ export class MainComponent implements OnInit, OnDestroy {
333 334
       }
334 335
       if (e.link == "largeScreen2") {
335 336
         this.largeScreenRole2 = true;
336
-        console.log("大屏端2权限");
337
+        console.log("运送陪检大屏权限");
337 338
       }
338 339
 			if (e.link == "largeScreen3") {
339 340
         this.largeScreenRole3 = true;
340
-        console.log("大屏端3权限");
341
+        console.log("运维大屏权限");
341 342
       }
342 343
       if (e.link == "specimenView") {
343 344
         this.specimenViewRole = true;
@@ -4086,7 +4087,7 @@ export class MainComponent implements OnInit, OnDestroy {
4086 4087
     } else if (this.screenType === "largeScreen2") {
4087 4088
       window.open(http.bigScreenHost2 + "/#/" + id);
4088 4089
     } else if (this.screenType === "largeScreen3") {
4089
-      window.open(http.bigScreenHost3 + "/#/" + id);
4090
+      window.open(`${http.bigScreenHost3}/#/${this.queryType}?hosId=${this.hospital ? this.hospital.id : ''}&dutyId=${this.duty ? this.duty.id : ''}`);
4090 4091
     } else if (this.screenType === "specimenView") {
4091 4092
       window.open(http.specimenViewHost + "/#/" + id);
4092 4093
     }
@@ -4139,7 +4140,7 @@ export class MainComponent implements OnInit, OnDestroy {
4139 4140
   showDropdown:boolean = false;
4140 4141
   showDropdown1:boolean = false;
4141 4142
 	showFastDropdown:boolean = false;
4142
-	
4143
+
4143 4144
   // 选择院区
4144 4145
   selectHospital(){
4145 4146
     this.hosFlag1 = true
@@ -4341,5 +4342,71 @@ export class MainComponent implements OnInit, OnDestroy {
4341 4342
     if (!flag) {
4342 4343
       this.hosFlag1 = false;
4343 4344
     }
4345
+  }
4346
+
4347
+	// 查询范围
4348
+  queryRangeFlag = false;
4349
+  queryRangeClick(){
4350
+    this.queryRangeFlag = true;
4351
+  }
4352
+  submitQueryRange({queryType, hospital, duty, parent}) {
4353
+    console.log('queryType:', queryType)
4354
+    console.log('hospital:', hospital)
4355
+    console.log('duty:', duty)
4356
+    console.log('parent:', parent)
4357
+    this.queryType = queryType;
4358
+    this.hospital = hospital;
4359
+    this.duty = duty;
4360
+		this.parent = parent;
4361
+    this.queryRangeFlag = false;
4362
+
4363
+    this.toBigScreen('largeScreen3');
4364
+  }
4365
+  cancelQueryRange() {
4366
+    this.queryRangeFlag = false;
4367
+  }
4368
+
4369
+	// 全院查询-1|院区查询-2|责任部门查询-3|部门垂直查询-4
4370
+  hospital;
4371
+  duty;
4372
+  queryType;//查询范围
4373
+	parent:any = 0;
4374
+  // 初始化院区、部门显示
4375
+  initHospitalAndDuty(hospitalOrDuty){
4376
+    let type = 'hospital';//默认是院区
4377
+    if(hospitalOrDuty.type){
4378
+      // 当前是责任部门
4379
+      type = 'duty';
4380
+    }
4381
+
4382
+    if(type === 'duty'){
4383
+      // 当前的所属责任部门
4384
+      this.hospital = hospitalOrDuty.parent;
4385
+      this.duty = hospitalOrDuty;
4386
+    }else{
4387
+      // 当前的所属院区
4388
+      this.hospital = hospitalOrDuty;
4389
+      this.duty = undefined;
4390
+    }
4391
+
4392
+    // 查询范围单选框
4393
+    if(this.hospital){
4394
+      if(this.duty){
4395
+        if(this.duty.parentDeptId){
4396
+          this.queryType = 3;
4397
+        }else{
4398
+          this.queryType = 4;
4399
+        }
4400
+      }else{
4401
+        this.queryType = 2;
4402
+      }
4403
+    }else{
4404
+      this.queryType = 1;
4405
+    }
4406
+
4407
+		console.log('this.hospital:', this.hospital)
4408
+    console.log('this.duty:', this.duty)
4409
+    console.log('this.queryType:', this.queryType)
4410
+    console.log('this.parent:', this.parent)
4344 4411
   }
4345 4412
 }

+ 3 - 1
src/app/views/main/main.module.ts

@@ -6,6 +6,7 @@ import { MainComponent } from './main.component';
6 6
 import { ShareModule } from 'src/app/share/share.module';
7 7
 import { SelectMenuComponent } from 'src/app/components/select-menu/select-menu.component';
8 8
 import { IncidentDicrectOrderModule } from 'src/app/components/incidentManagement/incident-direct-order/incident-direct-order.module';
9
+import { QueryRangeModule } from '../new-statistics/components/query-range/query-range.module';
9 10
 
10 11
 @NgModule({
11 12
   declarations: [
@@ -16,7 +17,8 @@ import { IncidentDicrectOrderModule } from 'src/app/components/incidentManagemen
16 17
     CommonModule,
17 18
     MainRoutingModule,
18 19
     ShareModule,
19
-		IncidentDicrectOrderModule
20
+		IncidentDicrectOrderModule,
21
+    QueryRangeModule,
20 22
   ]
21 23
 })
22 24
 export class MainModule { }

+ 1 - 1
src/app/views/new-statistics/components/query-range/query-range.component.html

@@ -42,7 +42,7 @@
42 42
             </nz-select>
43 43
           </nz-form-control>
44 44
         </nz-form-item>
45
-				<nz-form-item class="mb0">
45
+				<nz-form-item class="mb0" [ngStyle]="{ visibility: !hiddenParent ? 'visible' : 'hidden'}" style="visibility: hidden;">
46 46
 				  <nz-form-label [nzSpan]="7" nzRequired nzFor="parent">是否显示父级科室</nz-form-label>
47 47
 				  <nz-form-control [nzSpan]="15" nzErrorTip="请选择是否显示父级科室!">
48 48
 				    <nz-radio-group formControlName="parent">

+ 1 - 0
src/app/views/new-statistics/components/query-range/query-range.component.ts

@@ -16,6 +16,7 @@ export class QueryRangeComponent implements OnInit {
16 16
   @Input() hospital: any;
17 17
   @Input() duty: any;
18 18
 	@Input() parent: any;
19
+	@Input() hiddenParent: any = false;
19 20
   validateForm: FormGroup;//表单
20 21
   constructor(
21 22
     private fb: FormBuilder,

+ 2 - 2
src/assets/js/http.ts

@@ -9,8 +9,8 @@ const baseUrl: baseUrlType = {
9 9
   host: `${protocolName}//${domainName}:${port}/service`, //接口地址
10 10
   specimenViewHost: `${protocolName}//${domainName}:${port}/specimenView`, //业务视图地址
11 11
   bigScreenHost: `${protocolName}//${domainName}:${port}/largeScreen`, //大屏地址地址
12
-  bigScreenHost2: `${protocolName}//${domainName}:${port}/largeScreen2`, //大屏地址2地址
13
-  bigScreenHost3: `${protocolName}//${domainName}:${port}/largeScreen3`, //大屏地址3地址
12
+  bigScreenHost2: `${protocolName}//${domainName}:${port}/largeScreen2`, //运送陪检大屏地址
13
+  bigScreenHost3: `${protocolName}//${domainName}:${port}/largeScreen3`, //运维大屏地址
14 14
   homeWs: `${wsName}://${domainName}:${port}/webSocket/index`, //websocket首页地址
15 15
   mainWs: `${wsName}://${domainName}:${port}/webSocket/message/manage`, //websocket管理端地址
16 16
   nurseWs: `${wsName}://${domainName}:${port}/webSocket/message/nurse`, //websocket护士端地址