seimin 2 miesięcy temu
rodzic
commit
c455c8b2ce

+ 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" (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 {
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; //标本间权限
@@ -80,6 +80,7 @@ export class MainComponent implements OnInit {
80 80
 		private http: HttpClient,
81 81
   ) {}
82 82
   ngOnInit() {
83
+		this.initHospitalAndDuty(this.tool.getCurrentHospital());
83 84
     this.highlightMenuByUrl();
84 85
     this.routerEventsListener = this.router.events
85 86
       .pipe(filter((event) => event instanceof NavigationEnd))
@@ -313,11 +314,11 @@ export class MainComponent implements OnInit {
313 314
       }
314 315
       if (e.link == "largeScreen2") {
315 316
         this.largeScreenRole2 = true;
316
-        console.log("大屏端2权限");
317
+        console.log("运送陪检大屏权限");
317 318
       }
318 319
 			if (e.link == "largeScreen3") {
319 320
         this.largeScreenRole3 = true;
320
-        console.log("大屏端3权限");
321
+        console.log("运维大屏权限");
321 322
       }
322 323
       if (e.link == "specimenView") {
323 324
         this.specimenViewRole = true;
@@ -4019,7 +4020,7 @@ export class MainComponent implements OnInit {
4019 4020
     } else if (this.screenType === "largeScreen2") {
4020 4021
       window.open(http.bigScreenHost2 + "/#/" + id);
4021 4022
     } else if (this.screenType === "largeScreen3") {
4022
-      window.open(http.bigScreenHost3 + "/#/" + id);
4023
+      window.open(`${http.bigScreenHost3}/#/${this.queryType}/${this.hospital ? this.hospital.id : ''}/${this.duty ? this.duty.id : ''}`);
4023 4024
     } else if (this.screenType === "specimenView") {
4024 4025
       window.open(http.specimenViewHost + "/#/" + id);
4025 4026
     }
@@ -4072,7 +4073,7 @@ export class MainComponent implements OnInit {
4072 4073
   showDropdown:boolean = false;
4073 4074
   showDropdown1:boolean = false;
4074 4075
 	showFastDropdown:boolean = false;
4075
-	
4076
+
4076 4077
   // 选择院区
4077 4078
   selectHospital(){
4078 4079
     this.hosFlag1 = true
@@ -4274,5 +4275,71 @@ export class MainComponent implements OnInit {
4274 4275
     if (!flag) {
4275 4276
       this.hosFlag1 = false;
4276 4277
     }
4278
+  }
4279
+
4280
+	// 查询范围
4281
+  queryRangeFlag = false;
4282
+  queryRangeClick(){
4283
+    this.queryRangeFlag = true;
4284
+  }
4285
+  submitQueryRange({queryType, hospital, duty, parent}) {
4286
+    console.log('queryType:', queryType)
4287
+    console.log('hospital:', hospital)
4288
+    console.log('duty:', duty)
4289
+    console.log('parent:', parent)
4290
+    this.queryType = queryType;
4291
+    this.hospital = hospital;
4292
+    this.duty = duty;
4293
+		this.parent = parent;
4294
+    this.queryRangeFlag = false;
4295
+
4296
+    this.toBigScreen('largeScreen3');
4297
+  }
4298
+  cancelQueryRange() {
4299
+    this.queryRangeFlag = false;
4300
+  }
4301
+
4302
+	// 全院查询-1|院区查询-2|责任部门查询-3|部门垂直查询-4
4303
+  hospital;
4304
+  duty;
4305
+  queryType;//查询范围
4306
+	parent:any = 0;
4307
+  // 初始化院区、部门显示
4308
+  initHospitalAndDuty(hospitalOrDuty){
4309
+    let type = 'hospital';//默认是院区
4310
+    if(hospitalOrDuty.type){
4311
+      // 当前是责任部门
4312
+      type = 'duty';
4313
+    }
4314
+
4315
+    if(type === 'duty'){
4316
+      // 当前的所属责任部门
4317
+      this.hospital = hospitalOrDuty.parent;
4318
+      this.duty = hospitalOrDuty;
4319
+    }else{
4320
+      // 当前的所属院区
4321
+      this.hospital = hospitalOrDuty;
4322
+      this.duty = undefined;
4323
+    }
4324
+
4325
+    // 查询范围单选框
4326
+    if(this.hospital){
4327
+      if(this.duty){
4328
+        if(this.duty.parentDeptId){
4329
+          this.queryType = 3;
4330
+        }else{
4331
+          this.queryType = 4;
4332
+        }
4333
+      }else{
4334
+        this.queryType = 2;
4335
+      }
4336
+    }else{
4337
+      this.queryType = 1;
4338
+    }
4339
+
4340
+		console.log('this.hospital:', this.hospital)
4341
+    console.log('this.duty:', this.duty)
4342
+    console.log('this.queryType:', this.queryType)
4343
+    console.log('this.parent:', this.parent)
4277 4344
   }
4278 4345
 }

+ 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 { }

+ 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护士端地址