maotao 2 miesięcy temu
rodzic
commit
7119487f80

+ 25 - 20
src/app/components/configurationCenter/configuration-voluntarilyBuild/configuration-voluntarilyBuild.component.ts

@@ -68,7 +68,8 @@ export class ConfigurationVoluntarilyBuildComponent implements OnInit {
68 68
 			idx: 0,
69 69
 			sum: 99999,
70 70
 			group2: {
71
-				statisticalHosId: this.hosId
71
+				statisticalHosId: this.hosId,
72
+				type:'3'
72 73
 			}
73 74
 		};
74 75
 		this.mainService
@@ -184,31 +185,35 @@ export class ConfigurationVoluntarilyBuildComponent implements OnInit {
184 185
     if (this.add) {
185 186
       //增加
186 187
       postData = {
187
-				alarmUrgency: {
188
-					id: this.validatePriorityForm.value.alarmUrgency
189
-				},
190
-				keywords: this.validatePriorityForm.value.keywords || undefined,
191
-				categoryId: this.validatePriorityForm.value.categoryId,
192
-				groupId: this.validatePriorityForm.value.groupId,
193
-				userId: this.validatePriorityForm.value.userId || undefined,
194
-				flag: this.validatePriorityForm.value.flag,
188
+				alarmConfig:{
189
+					alarmUrgency: {
190
+						id: this.validatePriorityForm.value.alarmUrgency
191
+					},
192
+					keywords: this.validatePriorityForm.value.keywords || undefined,
193
+					categoryId: this.validatePriorityForm.value.categoryId,
194
+					groupId: this.validatePriorityForm.value.groupId,
195
+					userId: this.validatePriorityForm.value.userId || undefined,
196
+					flag: this.validatePriorityForm.value.flag,
197
+				}
195 198
       };
196 199
     } else {
197 200
       //编辑
198 201
       postData = {
199
-				...this.coopData,
200
-				alarmUrgency: {
201
-					id: this.validatePriorityForm.value.alarmUrgency
202
-				},
203
-				keywords: this.validatePriorityForm.value.keywords || undefined,
204
-				categoryId: this.validatePriorityForm.value.categoryId,
205
-				groupId: this.validatePriorityForm.value.groupId,
206
-				userId: this.validatePriorityForm.value.userId || undefined,
207
-				flag: this.validatePriorityForm.value.flag,
202
+				alarmConfig:{
203
+					...this.coopData,
204
+					alarmUrgency: {
205
+						id: this.validatePriorityForm.value.alarmUrgency
206
+					},
207
+					keywords: this.validatePriorityForm.value.keywords || undefined,
208
+					categoryId: this.validatePriorityForm.value.categoryId,
209
+					groupId: this.validatePriorityForm.value.groupId,
210
+					userId: this.validatePriorityForm.value.userId || undefined,
211
+					flag: this.validatePriorityForm.value.flag,
212
+				}
208 213
       };
209 214
     }
210 215
     this.mainService
211
-      .simplePost(this.add ? "addData": "upData", "alarmConfig", postData)
216
+      .dataPost(this.add ? "addData": "updData", "alarmConfig", postData)
212 217
       .subscribe((result) => {
213 218
         this.btnLoading = false;
214 219
         this.hidePriorityModal();
@@ -235,7 +240,7 @@ export class ConfigurationVoluntarilyBuildComponent implements OnInit {
235 240
       categoryId: [null, [Validators.required]],
236 241
 			groupId: [null, [Validators.required]],
237 242
 			userId: [null, []],
238
-			flag: [null, [Validators.required]],
243
+			flag: [1, [Validators.required]],
239 244
     });
240 245
     console.log(this.validatePriorityForm.controls)
241 246
   }

+ 7 - 10
src/app/views/emergency-info/emergency-info.component.html

@@ -51,7 +51,7 @@
51 51
 				  <span class="label">紧急度:</span>
52 52
 				  <nz-select [nzDropdownMatchSelectWidth]="false" class="formItem" nzShowSearch nzAllowClear
53 53
 				    nzPlaceHolder="请选择紧急度" [(ngModel)]="alarmUrgency">
54
-				    <ng-container *ngFor="let data of alarmList">
54
+				    <ng-container *ngFor="let data of urgencyList">
55 55
 				      <nz-option nzLabel="{{data.name}}" nzValue="{{data.id}}"></nz-option>
56 56
 				    </ng-container>
57 57
 				  </nz-select>
@@ -101,7 +101,7 @@
101 101
             <td>
102 102
               <div class="coop">
103 103
                 <span *ngIf="coopBtns.view" (click)="look(data)">查看</span>
104
-                <span *ngIf="coopBtns.add" (click)="addOrder(data)">建单</span>
104
+                <span *ngIf="coopBtns.add && !data.incidentSign" (click)="addOrder(data)">建单</span>
105 105
               </div>
106 106
             </td>
107 107
           </tr>
@@ -109,7 +109,7 @@
109 109
       </nz-table>
110 110
       <div class="list-template__pagination">
111 111
         <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
112
-          (nzPageIndexChange)="getList()" (nzPageSizeChange)="getList()">
112
+          (nzPageIndexChange)="getList(false,'page')" (nzPageSizeChange)="getList(false, 'page')">
113 113
         </nz-pagination>
114 114
       </div>
115 115
     </div>
@@ -219,10 +219,7 @@
219 219
 <!-- 遮罩 -->
220 220
 <app-mask *ngIf="maskFlag"></app-mask>
221 221
 
222
-<!-- 二维码打印 -->
223
-<div id="report" style="display: none">
224
-  <div *ngFor="let img of codes" style="display: inline-block;">
225
-    <img style="width: 200px;height:200px;" [src]="img.base64" alt="">
226
-    <p style="margin: 0;text-align: center; font-size: 20px;width: 200px;">{{img.name}}</p>
227
-  </div>
228
-</div>
222
+<!-- 详情 -->
223
+<app-incident-detail [id]="coopData.incidentId" *ngIf="detailModalShow" (closeModelHs)="closeDetailModelOrder($event)" (confirmModelHs)="confirmDetailModelOrder($event)"></app-incident-detail>
224
+
225
+<router-outlet (deactivate)="refreshList()"></router-outlet>

+ 4 - 5
src/app/views/emergency-info/emergency-info.component.less

@@ -2,6 +2,10 @@
2 2
 .width-105{
3 3
 	width: 105px !important;
4 4
 }
5
+.text-underline{
6
+	cursor: pointer;
7
+	text-decoration: underline;
8
+}
5 9
 .save {
6 10
   position: fixed;
7 11
   left: 0;
@@ -80,11 +84,6 @@
80 84
 		      color: #333;
81 85
 		      font-size: 18px;
82 86
 		    }
83
-		
84
-		    &:nth-child(3) {
85
-		      font-size: 14px;
86
-		      color: #666;
87
-		    }
88 87
 		  }
89 88
 		}
90 89
 		

+ 28 - 33
src/app/views/emergency-info/emergency-info.component.ts

@@ -113,6 +113,7 @@ export class EmergencyInfoComponent implements OnInit {
113 113
 	// 获取工单状态
114 114
 	gdList:any = [];
115 115
 	alarmList:any = [];
116
+	urgencyList:any = [];
116 117
 	getGdList() {
117 118
 	  this.isLoading = true;
118 119
 	  this.quickOrderAcceptanceService.getDictionary("incident_status").subscribe((res) => {
@@ -123,6 +124,10 @@ export class EmergencyInfoComponent implements OnInit {
123 124
 		  this.isLoading = false;
124 125
 		  this.alarmList = res || [];
125 126
 		});
127
+		this.quickOrderAcceptanceService.getDictionary("alarm_urgency").subscribe((res) => {
128
+		  this.isLoading = false;
129
+		  this.urgencyList = res || [];
130
+		});
126 131
 	}
127 132
 	
128 133
   // 搜索
@@ -144,7 +149,7 @@ export class EmergencyInfoComponent implements OnInit {
144 149
 	
145 150
   // 表格数据
146 151
   loading1 = false;
147
-  getList(isResetPageIndex = false) {
152
+  getList(isResetPageIndex = false, type?) {
148 153
     isResetPageIndex && (this.pageIndex = 1);
149 154
     let data = {
150 155
       pageIndex: this.pageIndex,
@@ -174,8 +179,10 @@ export class EmergencyInfoComponent implements OnInit {
174 179
 			delete data.alarm.alarmUrgency
175 180
 		}
176 181
     this.loading1 = true;
177
-    this.mapOfCheckedId = {};
178
-    this.checkedDepIds = [];
182
+		if(type!='page'){
183
+			this.mapOfCheckedId = {};
184
+			this.checkedDepIds = [];
185
+		}
179 186
     this.isAllDisplayDataChecked = false;
180 187
     this.quickOrderAcceptanceService
181 188
       .query(data)
@@ -348,17 +355,30 @@ export class EmergencyInfoComponent implements OnInit {
348 355
 	addOrder(data){
349 356
 		this.tool.triggerEvent({
350 357
 			message:'建单',
351
-			data:{id:data.id}
358
+			data: data
352 359
 		})
353 360
 	}
354 361
 	
355 362
 	// 查看工单
363
+	detailModalShow = false; //弹窗开关
356 364
 	detail(e, data) {
357
-		if(!data.workOrderDTO){
358
-			return
359
-		}
360 365
 	  e.stopPropagation();
361
-	  this.router.navigateByUrl("/main/emergencyInfo/orderDetail/" + data.workOrderDTO.id);
366
+	  this.coopData = data;
367
+	  this.detailModalShow = true;
368
+	}
369
+	// 关闭弹窗
370
+	closeDetailModelOrder(e) {
371
+	  this.detailModalShow = JSON.parse(e).show;
372
+	}
373
+	// 弹窗确定
374
+	confirmDetailModelOrder(e){
375
+	  console.log(e);
376
+	  this.detailModalShow = false;
377
+	  this.getList(true);
378
+	}
379
+	
380
+	refreshList(){
381
+		
362 382
 	}
363 383
 	
364 384
 	// 查看列表
@@ -404,31 +424,6 @@ export class EmergencyInfoComponent implements OnInit {
404 424
     this.refreshStatus();
405 425
   }
406 426
 
407
-  // 打印
408
-  codes = []; //二维码
409
-  printLoading: boolean = false; //批量打印按钮loading状态
410
-  print(e, batch, id?) {
411
-    e.stopPropagation();
412
-    this.printLoading = true;
413
-    this.quickOrderAcceptanceService
414
-      .print({
415
-        ids: batch ? this.checkedDepIds.toString() : id.toString()
416
-      })
417
-      .subscribe((data) => {
418
-        this.codes = data.data;
419
-        this.printLoading = false;
420
-        setTimeout(() => {
421
-          const printContent = document.getElementById("report");
422
-          const WindowPrt = window.open("", "", "width=700,height=900");
423
-          WindowPrt.document.write(printContent.innerHTML);
424
-          WindowPrt.document.close();
425
-          WindowPrt.focus();
426
-          WindowPrt.print();
427
-          WindowPrt.close();
428
-        }, 100);
429
-      });
430
-  }
431
-
432 427
   // 编辑
433 428
   maskFlag: any = false;
434 429
   coopData = {};

+ 2 - 1
src/app/views/emergency-info/emergency-info.module.ts

@@ -4,7 +4,7 @@ import { CommonModule } from '@angular/common';
4 4
 import { EmergencyInfoRoutingModule } from './emergency-info-routing.module';
5 5
 import { ShareModule } from 'src/app/share/share.module';
6 6
 import { EmergencyInfoComponent } from './emergency-info.component';
7
-
7
+import { IncidentDetailModule } from 'src/app/components/incidentManagement/incident-detail/incident-detail.module';
8 8
 
9 9
 @NgModule({
10 10
   declarations: [
@@ -14,6 +14,7 @@ import { EmergencyInfoComponent } from './emergency-info.component';
14 14
     CommonModule,
15 15
     EmergencyInfoRoutingModule,
16 16
     ShareModule,
17
+		IncidentDetailModule
17 18
   ]
18 19
 })
19 20
 export class EmergencyInfoModule { }

+ 13 - 13
src/app/views/fuwutai/fuwutai.component.html

@@ -1011,7 +1011,7 @@
1011 1011
 					</div>
1012 1012
           <div class="newTopItem">
1013 1013
             <span class="grayFont">申请科室:</span>
1014
-            <nz-select style="width: 146px" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="changeInp('hsms', $event)" nzPlaceHolder="请选择申请科室" [(ngModel)]="applyDept" (ngModelChange)="changeApply($event)" (nzOpenChange)="openChangeApply($event)">
1014
+            <nz-select style="width: 146px" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="changeInp('hsms', $event)" nzPlaceHolder="请选择申请科室" [(ngModel)]="applyDept" (ngModelChange)="changeApply($event)">
1015 1015
               <ng-container *ngFor="let option of applicationDepartmentList">
1016 1016
                 <nz-option *ngIf="!isLoadingApply" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
1017 1017
               </ng-container>
@@ -1215,9 +1215,9 @@
1215 1215
                         </div>
1216 1216
                         <div *ngIf="!isTaskTypeInspect && radioValueZy" nz-col [nzSpan]="deptZyList['startStatus'] != 201 ? 12 : 24" [ngStyle]="{ display: (deptZyList['startStatus'] != 201 && !isTaskTypeInspect) ? 'block' : 'none'}">
1217 1217
                           <nz-form-item *ngIf="(deptZyList.startStatus == 204 || deptZyList.startStatus == 205) && deptZyList.startMultipleHospital==1">
1218
-                            <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="startHosId">院区</nz-form-label>
1219
-                            <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择院区!">
1220
-                              <nz-select [nzDropdownMatchSelectWidth]="false" nzServerSearch nzPlaceHolder="请选择院区" formControlName="startHosId" (ngModelChange)="changeTypeHospital($event, 1)" nzAllowClear>
1218
+                            <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="startHosId">起点科室院区</nz-form-label>
1219
+                            <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择起点科室院区!">
1220
+                              <nz-select [nzDropdownMatchSelectWidth]="false" nzServerSearch nzPlaceHolder="请选择起点科室院区" formControlName="startHosId" (ngModelChange)="changeTypeHospital($event, 1)" nzAllowClear>
1221 1221
                                 <ng-container *ngFor="let option of applicationHospitalList">
1222 1222
                                   <nz-option *ngIf="!isLoading" [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
1223 1223
                                 </ng-container>
@@ -1244,9 +1244,9 @@
1244 1244
                         </div>
1245 1245
                         <div *ngIf="!isTaskTypeInspect && radioValueZy" nz-col [nzSpan]="deptZyList['startStatus'] != 201 ? 12 : 24">
1246 1246
                           <nz-form-item *ngIf="(deptZyList.endStatus == 204 || deptZyList.endStatus == 205) && deptZyList.endMultipleHospital==1">
1247
-                            <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="endHosId">院区</nz-form-label>
1248
-                            <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择院区!">
1249
-                              <nz-select [nzDropdownMatchSelectWidth]="false" nzServerSearch nzPlaceHolder="请选择院区" formControlName="endHosId" (ngModelChange)="changeTypeHospital($event, 2)" nzAllowClear>
1247
+                            <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="endHosId">终点科室院区</nz-form-label>
1248
+                            <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择终点科室院区!">
1249
+                              <nz-select [nzDropdownMatchSelectWidth]="false" nzServerSearch nzPlaceHolder="请选择终点科室院区" formControlName="endHosId" (ngModelChange)="changeTypeHospital($event, 2)" nzAllowClear>
1250 1250
                                 <ng-container *ngFor="let option of applicationHospitalList">
1251 1251
                                   <nz-option *ngIf="!isLoading" [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
1252 1252
                                 </ng-container>
@@ -1352,9 +1352,9 @@
1352 1352
                         </div>
1353 1353
                         <div *ngIf="deptQtList.taskType && deptQtList.taskType.associationType.value !== 'specimen'" nz-col [nzSpan]="12" [ngStyle]="{ display: deptQtList['startStatus'] != 201 ? 'block' : 'none' }">
1354 1354
 													<nz-form-item *ngIf="(deptQtList.startStatus == 204 || deptQtList.startStatus == 205) && deptQtList.startMultipleHospital==1">
1355
-													  <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="startHosId">院区</nz-form-label>
1356
-													  <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择院区!">
1357
-													    <nz-select [nzDropdownMatchSelectWidth]="false" nzServerSearch nzPlaceHolder="请选择院区" formControlName="startHosId" (ngModelChange)="changeTypeQtHospital($event, 1)" nzAllowClear>
1355
+													  <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="startHosId">起点科室院区</nz-form-label>
1356
+													  <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择起点科室院区!">
1357
+													    <nz-select [nzDropdownMatchSelectWidth]="false" nzServerSearch nzPlaceHolder="请选择起点科室院区" formControlName="startHosId" (ngModelChange)="changeTypeQtHospital($event, 1)" nzAllowClear>
1358 1358
 													      <ng-container *ngFor="let option of applicationHospitalList">
1359 1359
 													        <nz-option *ngIf="!isLoading" [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
1360 1360
 													      </ng-container>
@@ -1381,9 +1381,9 @@
1381 1381
                         </div>
1382 1382
                         <div *ngIf="deptQtList.taskType && deptQtList.taskType.associationType.value !== 'specimen'" nz-col [nzSpan]="12">
1383 1383
                           <nz-form-item *ngIf="(deptQtList.endStatus == 204 || deptQtList.endStatus == 205) && deptQtList.endMultipleHospital==1">
1384
-														<nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="endHosId">院区</nz-form-label>
1385
-														<nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择院区!">
1386
-															<nz-select [nzDropdownMatchSelectWidth]="false" nzServerSearch nzPlaceHolder="请选择院区" formControlName="endHosId" (ngModelChange)="changeTypeQtHospital($event, 2)" nzAllowClear>
1384
+														<nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="endHosId">终点科室院区</nz-form-label>
1385
+														<nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择终点科室院区!">
1386
+															<nz-select [nzDropdownMatchSelectWidth]="false" nzServerSearch nzPlaceHolder="请选择终点科室院区" formControlName="endHosId" (ngModelChange)="changeTypeQtHospital($event, 2)" nzAllowClear>
1387 1387
 																<ng-container *ngFor="let option of applicationHospitalList">
1388 1388
 																	<nz-option *ngIf="!isLoading" [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
1389 1389
 																</ng-container>

+ 170 - 14
src/app/views/fuwutai/fuwutai.component.ts

@@ -2835,6 +2835,7 @@ export class FuwutaiComponent implements OnInit {
2835 2835
 		this.malPriorityDTO = null;
2836 2836
     this.buildType = buildType;
2837 2837
 		console.log(123,buildType)
2838
+		this.searchApplicationHospital();
2838 2839
     if(this.itsmData.mdv2Switch){
2839 2840
       if(this.buildType !== '继续建单' && this.buildType !== '编辑事件' && this.buildType !== '报修转事件'){
2840 2841
         this.resetOrderData();
@@ -2842,7 +2843,6 @@ export class FuwutaiComponent implements OnInit {
2842 2843
         this.resetOrderData2();
2843 2844
       }
2844 2845
 			this.getSysConfig(type);
2845
-      this.searchApplicationHospital();
2846 2846
       this.searchApplicationCategory();
2847 2847
       this.searchApplicationPriority();
2848 2848
       this.searchApplicationSource();
@@ -2922,7 +2922,9 @@ export class FuwutaiComponent implements OnInit {
2922 2922
       this.noWorkerPhone = false;
2923 2923
     } else {
2924 2924
       //正常初始化
2925
-      this.searchApplicationDepartment("hsms");
2925
+			if(this.crossHospital!=1){
2926
+				this.searchApplicationDepartment("hsms");
2927
+			}
2926 2928
       this.noWorkerPhone = true;
2927 2929
     }
2928 2930
     this.getSearchTaskList("").subscribe((result) => {
@@ -3333,6 +3335,14 @@ export class FuwutaiComponent implements OnInit {
3333 3335
 		  .getFetchDataList("data", "department", dataObj)
3334 3336
 		  .subscribe((data) => {
3335 3337
 		    if (data.status == 200) {
3338
+					if(data.list.length>0){
3339
+						data.list.forEach(i=>{
3340
+							if(i.inputcode){
3341
+								i.inputcode = i.inputcode.toUpperCase()
3342
+								i.dept = i.dept + '('+i.inputcode+')'
3343
+							}
3344
+						})
3345
+					}
3336 3346
 					if(type==1){
3337 3347
 						this.deptZyList.startDept = data.list
3338 3348
 					}else{
@@ -3344,7 +3354,6 @@ export class FuwutaiComponent implements OnInit {
3344 3354
 	
3345 3355
 	// 物品配送-任务类型-院区切换
3346 3356
 	changeTypeQtHospital(e, type){
3347
-		console.log(111,e)
3348 3357
 		if(type==1){
3349 3358
 			this.validateFormQt.controls.startDeptQt.setValue(null)
3350 3359
 		}else{
@@ -3368,6 +3377,14 @@ export class FuwutaiComponent implements OnInit {
3368 3377
 		  .getFetchDataList("data", "department", dataObj)
3369 3378
 		  .subscribe((data) => {
3370 3379
 		    if (data.status == 200) {
3380
+					if(data.list.length>0){
3381
+						data.list.forEach(i=>{
3382
+							if(i.inputcode){
3383
+								i.inputcode = i.inputcode.toUpperCase()
3384
+								i.dept = i.dept + '('+i.inputcode+')'
3385
+							}
3386
+						})
3387
+					}
3371 3388
 					if(type==1){
3372 3389
 						this.deptQtList.startDept = data.list
3373 3390
 					}else{
@@ -4878,11 +4895,19 @@ export class FuwutaiComponent implements OnInit {
4878 4895
     //id院区,type起点科室'start',终点科室'end'。科室名称dept。
4879 4896
     let value = "";
4880 4897
     if (dept) {
4881
-      value = dept;
4898
+      value = dept.toUpperCase();
4882 4899
     }
4883 4900
 		if (type === "start" && this.deptZyList["startStatus"] == 202) {
4884 4901
 		  //固定科室范围,禁止搜索
4885 4902
 			this.mainService.getdeptList(this.radioValueZy).subscribe((data:any) => {
4903
+				if(data.startDept){
4904
+					data.startDept.forEach(i=>{
4905
+						if(i.inputcode){
4906
+							i.inputcode = i.inputcode.toUpperCase()
4907
+							i.dept = i.dept + '('+i.inputcode+')'
4908
+						}
4909
+					})
4910
+				}
4886 4911
 				let arr = data;
4887 4912
 				if(value!=''){
4888 4913
 					data = arr.startDept.filter(i=>i.dept.indexOf(value) !=-1)
@@ -4895,6 +4920,14 @@ export class FuwutaiComponent implements OnInit {
4895 4920
 		} else if (type === "end" && this.deptZyList["endStatus"] == 202) {
4896 4921
 		  //固定科室范围,禁止搜索
4897 4922
 			this.mainService.getdeptList(this.radioValueZy).subscribe((data:any) => {
4923
+				if(data.endDept){
4924
+					data.endDept.forEach(i=>{
4925
+						if(i.inputcode){
4926
+							i.inputcode = i.inputcode.toUpperCase()
4927
+							i.dept = i.dept + '('+i.inputcode+')'
4928
+						}
4929
+					})
4930
+				}
4898 4931
 				let arr = data;
4899 4932
 				if(value!=''){
4900 4933
 					data = arr.endDept.filter(i=>i.dept.indexOf(value) !=-1)
@@ -4905,12 +4938,19 @@ export class FuwutaiComponent implements OnInit {
4905 4938
 			})
4906 4939
 		  return;
4907 4940
 		}
4941
+		let hsoId = null
4942
+		if(type === "start" && this.deptZyList.startMultipleHospital==1){
4943
+			hsoId = this.validateFormZy.controls.startHosId.value
4944
+		}
4945
+		if(type === "end" && this.deptZyList.endMultipleHospital==1){
4946
+			hsoId = this.validateFormZy.controls.endHosId.value
4947
+		}
4908 4948
     let postData = {
4909 4949
       idx: 0,
4910 4950
       sum: 10,
4911 4951
       department: {
4912 4952
         dept: value,
4913
-        cascadeHosId: id
4953
+        cascadeHosId: hsoId ? hsoId : id
4914 4954
       },
4915 4955
     };
4916 4956
     if (type == "start" && this.deptZyList["startStatus"] == 205) {
@@ -4924,6 +4964,14 @@ export class FuwutaiComponent implements OnInit {
4924 4964
       .subscribe((data) => {
4925 4965
         this.isLoading = false;
4926 4966
         if (data["status"] == 200) {
4967
+					if(data.list.length>0){
4968
+						data.list.forEach(i=>{
4969
+							if(i.inputcode){
4970
+							  i.inputcode = i.inputcode.toUpperCase()
4971
+							  i.dept = i.dept + '('+i.inputcode+')'
4972
+							}
4973
+						})
4974
+					}
4927 4975
           if (type === "start") {
4928 4976
             this.deptZyList["startDept"] = data.list;
4929 4977
           } else if (type === "end") {
@@ -4945,11 +4993,19 @@ export class FuwutaiComponent implements OnInit {
4945 4993
     //id院区,type起点科室'start',终点科室'end'。科室名称dept。
4946 4994
     let value = "";
4947 4995
     if (dept) {
4948
-      value = dept;
4996
+      value = dept.toUpperCase();
4949 4997
     }
4950 4998
     if (type === "start" && this.deptQtList["startStatus"] == 202) {
4951 4999
       //固定科室范围,禁止搜索
4952 5000
 			this.mainService.getdeptList(this.psValue).subscribe((data:any) => {
5001
+				if(data.startDept){
5002
+					data.startDept.forEach(i=>{
5003
+						if(i.inputcode){
5004
+							i.inputcode = i.inputcode.toUpperCase()
5005
+							i.dept = i.dept + '('+i.inputcode+')'
5006
+						}
5007
+					})
5008
+				}
4953 5009
 				let arr = data;
4954 5010
 				if(value!=''){
4955 5011
 					data = arr.startDept.filter(i=>i.dept.indexOf(value) !=-1)
@@ -4962,6 +5018,14 @@ export class FuwutaiComponent implements OnInit {
4962 5018
     } else if (type === "end" && this.deptQtList["endStatus"] == 202) {
4963 5019
       //固定科室范围,禁止搜索
4964 5020
 			this.mainService.getdeptList(this.psValue).subscribe((data:any) => {
5021
+				if(data.endDept){
5022
+					data.endDept.forEach(i=>{
5023
+						if(i.inputcode){
5024
+							i.inputcode = i.inputcode.toUpperCase()
5025
+							i.dept = i.dept + '('+i.inputcode+')'
5026
+						}
5027
+					})
5028
+				}
4965 5029
 				let arr = data;
4966 5030
 				if(value!=''){
4967 5031
 					data = arr.endDept.filter(i=>i.dept.indexOf(value) !=-1)
@@ -4972,12 +5036,19 @@ export class FuwutaiComponent implements OnInit {
4972 5036
 			})
4973 5037
       return;
4974 5038
     }
5039
+		let hsoId = null
5040
+		if(type === "start" && this.deptQtList.startMultipleHospital==1){
5041
+			hsoId = this.validateFormQt.controls.startHosId.value
5042
+		}
5043
+		if(type === "end" && this.deptQtList.endMultipleHospital==1){
5044
+			hsoId = this.validateFormQt.controls.endHosId.value
5045
+		}
4975 5046
     let postData = {
4976 5047
       idx: 0,
4977 5048
       sum: 10,
4978 5049
       department: {
4979 5050
         dept: value,
4980
-        cascadeHosId: id
5051
+        cascadeHosId: hsoId ? hsoId : id
4981 5052
       },
4982 5053
     };
4983 5054
     if (type == "start" && this.deptQtList["startStatus"] == 205) {
@@ -4991,6 +5062,14 @@ export class FuwutaiComponent implements OnInit {
4991 5062
       .subscribe((data) => {
4992 5063
         this.isLoading = false;
4993 5064
         if (data["status"] == 200) {
5065
+					if(data.list.length>0){
5066
+						data.list.forEach(i=>{
5067
+							if(i.inputcode){
5068
+							  i.inputcode = i.inputcode.toUpperCase()
5069
+							  i.dept = i.dept + '('+i.inputcode+')'
5070
+							}
5071
+						})
5072
+					}
4994 5073
           if (type === "start") {
4995 5074
             this.deptQtList["startDept"] = data.list;
4996 5075
           } else if (type === "end") {
@@ -5284,7 +5363,29 @@ export class FuwutaiComponent implements OnInit {
5284 5363
     // 返回值的status是205 则是固定科室类型,会返回科室列表
5285 5364
     // 返回值的status是206 则是默认患者所在科室,把患者所在科室作为值
5286 5365
     this.mainService.getdeptList(value, patientCode, (taskType.associationTypeValue === 'inspect' ? format(startOfDay(this.inspectToday), 'yyyy-MM-dd HH:mm:ss') : undefined), (taskType.associationTypeValue === 'inspect' ? format(endOfDay(this.inspectToday), 'yyyy-MM-dd HH:mm:ss') : undefined)).subscribe((data:any) => {
5287
-      this.deptZyList = data;
5366
+			if(data.startDept){
5367
+				data.startDept.forEach(i=>{
5368
+					if(i.inputcode){
5369
+						i.inputcode = i.inputcode.toUpperCase()
5370
+						i.dept = i.dept + '('+i.inputcode+')'
5371
+					}
5372
+				})
5373
+			}
5374
+			if(data.endDept){
5375
+				data.endDept.forEach(i=>{
5376
+					if(i.inputcode){
5377
+						i.inputcode = i.inputcode.toUpperCase()
5378
+						i.dept = i.dept + '('+i.inputcode+')'
5379
+					}
5380
+				})
5381
+			}
5382
+			this.deptZyList = data;
5383
+			if(this.deptZyList.startMultipleHospital==1){
5384
+				this.deptZyList.startDept = []
5385
+			}
5386
+			if(this.deptZyList.endMultipleHospital==1){
5387
+				this.deptZyList.endDept = []
5388
+			}
5288 5389
 			if(data.startStatus==202 || data.startStatus==204 || data.startStatus==205){
5289 5390
 				this.isStartFixedType = true
5290 5391
 			}else{
@@ -5296,19 +5397,31 @@ export class FuwutaiComponent implements OnInit {
5296 5397
 				this.isEndFixedType = false
5297 5398
 			}
5298 5399
 			if((data.startStatus==204 || data.startStatus==205) && data.startMultipleHospital==1){
5400
+				if(this.validateFormZy.value.startHosId){
5401
+					this.validateFormZy.controls.startHosId.setValue(null)
5402
+				}
5299 5403
 				this.validateFormZy.addControl(
5300 5404
 				  "startHosId",
5301 5405
 				  new FormControl(null, Validators.required)
5302 5406
 				);
5303 5407
 			}else{
5408
+				if(this.validateFormZy.value.startHosId){
5409
+					this.validateFormZy.controls.startHosId.setValue(null)
5410
+				}
5304 5411
 				this.validateFormZy.removeControl("startHosId");
5305 5412
 			}
5306 5413
 			if((data.endStatus==204 || data.endStatus==205) && data.endMultipleHospital==1){
5414
+				if(this.validateFormZy.value.endHosId){
5415
+					this.validateFormZy.controls.endHosId.setValue(null)
5416
+				}
5307 5417
 				this.validateFormZy.addControl(
5308 5418
 				  "endHosId",
5309 5419
 				  new FormControl(null, Validators.required)
5310 5420
 				);
5311 5421
 			}else{
5422
+				if(this.validateFormZy.value.endHosId){
5423
+					this.validateFormZy.controls.endHosId.setValue(null)
5424
+				}
5312 5425
 				this.validateFormZy.removeControl("endHosId");
5313 5426
 			}
5314 5427
       // 预约start
@@ -5340,7 +5453,7 @@ export class FuwutaiComponent implements OnInit {
5340 5453
       }
5341 5454
       // 起点科室
5342 5455
       if (data["startStatus"] == 201 || data["startStatus"] == 206) {
5343
-        if (this.applyDept) {
5456
+        if (this.applyDept && data.startMultipleHospital!=1) {
5344 5457
           //选择了申请科室,则起点科室就是申请科室
5345 5458
           this.deptZyList["startDept"] = this.applicationDepartmentList.filter(
5346 5459
             (item) => item.id == this.applyDept
@@ -5349,12 +5462,12 @@ export class FuwutaiComponent implements OnInit {
5349 5462
         }
5350 5463
       } else if (data["startStatus"] == 203) {
5351 5464
         this.startDeptZy = data["startDept"][0]["id"];
5352
-      } else if (data["startStatus"] == 204 || data["startStatus"] == 205) {
5465
+      } else if ((data["startStatus"] == 204 || data["startStatus"] == 205) && data.startMultipleHospital!=1) {
5353 5466
         this.getHosDepartment(this.checkedHos, "start", "");
5354 5467
       }
5355 5468
       // 终点科室
5356 5469
       if (data["endStatus"] == 201 || data["endStatus"] == 206) {
5357
-        if (this.applyDept) {
5470
+        if (this.applyDept && data.endMultipleHospital!=1) {
5358 5471
           //选择了申请科室,则终点科室就是申请科室
5359 5472
           this.deptZyList["endDept"] = this.applicationDepartmentList.filter(
5360 5473
             (item) => item.id == this.applyDept
@@ -5363,7 +5476,7 @@ export class FuwutaiComponent implements OnInit {
5363 5476
         }
5364 5477
       } else if (data["endStatus"] == 203) {
5365 5478
         this.endDeptZy = data["endDept"][0]["id"];
5366
-      } else if (data["endStatus"] == 204 || data["endStatus"] == 205) {
5479
+      } else if ((data["endStatus"] == 204 || data["endStatus"] == 205) && data.endMultipleHospital!=1) {
5367 5480
         this.getHosDepartment(this.checkedHos, "end", "");
5368 5481
       }
5369 5482
       if (this.currentTabIndex == "患者转运") {
@@ -5441,7 +5554,30 @@ export class FuwutaiComponent implements OnInit {
5441 5554
     // 返回值的status是204 则让前端自己调用科室搜索接口
5442 5555
     // 返回值的status是205 则是固定科室类型,会返回科室列表
5443 5556
     this.mainService.getdeptList(value).subscribe((data:any) => {
5557
+			if(data.startDept){
5558
+				data.startDept.forEach(i=>{
5559
+					if(i.inputcode){
5560
+					  i.inputcode = i.inputcode.toUpperCase()
5561
+					  i.dept = i.dept + '('+i.inputcode+')'
5562
+					}
5563
+				})
5564
+			}
5565
+			if(data.endDept){
5566
+				data.endDept.forEach(i=>{
5567
+					if(i.inputcode){
5568
+					  i.inputcode = i.inputcode.toUpperCase()
5569
+					  i.dept = i.dept + '('+i.inputcode+')'
5570
+					}
5571
+				})
5572
+			}
5444 5573
       this.deptQtList = data;
5574
+			if(this.deptQtList.startMultipleHospital==1){
5575
+				this.deptQtList.startDept = []
5576
+			}
5577
+			if(this.deptQtList.endMultipleHospital==1){
5578
+				this.deptQtList.endDept = []
5579
+			}
5580
+
5445 5581
 			if(data.startStatus==202 || data.startStatus==204 || data.startStatus==205){
5446 5582
 				this.isStartFixedType = true
5447 5583
 			}else{
@@ -5453,19 +5589,31 @@ export class FuwutaiComponent implements OnInit {
5453 5589
 				this.isEndFixedType = false
5454 5590
 			}
5455 5591
 			if((data.startStatus==204 || data.startStatus==205) && data.startMultipleHospital==1){
5592
+				if(this.validateFormQt.value.startHosId){
5593
+					this.validateFormQt.controls.startHosId.setValue(null)
5594
+				}
5456 5595
 				this.validateFormQt.addControl(
5457 5596
 				  "startHosId",
5458 5597
 				  new FormControl(null, Validators.required)
5459 5598
 				);
5460 5599
 			}else{
5600
+				if(this.validateFormQt.value.startHosId){
5601
+					this.validateFormQt.controls.startHosId.setValue(null)
5602
+				}
5461 5603
 				this.validateFormQt.removeControl("startHosId");
5462 5604
 			}
5463 5605
 			if((data.endStatus==204 || data.endStatus==205) && data.endMultipleHospital==1){
5606
+				if(this.validateFormQt.value.endHosId){
5607
+					this.validateFormQt.controls.endHosId.setValue(null)
5608
+				}
5464 5609
 				this.validateFormQt.addControl(
5465 5610
 				  "endHosId",
5466 5611
 				  new FormControl(null, Validators.required)
5467 5612
 				);
5468 5613
 			}else{
5614
+				if(this.validateFormQt.value.endHosId){
5615
+					this.validateFormQt.controls.endHosId.setValue(null)
5616
+				}
5469 5617
 				this.validateFormQt.removeControl("endHosId");
5470 5618
 			}
5471 5619
       // 预约start
@@ -5487,7 +5635,7 @@ export class FuwutaiComponent implements OnInit {
5487 5635
         }
5488 5636
       } else if (data["startStatus"] == 203) {
5489 5637
         this.startDeptQt = data["startDept"][0]["id"];
5490
-      } else if (data["startStatus"] == 204 || data["startStatus"] == 205) {
5638
+      } else if ((data["startStatus"] == 204 || data["startStatus"] == 205) && data.startMultipleHospital!=1) {
5491 5639
         this.getHosDepartmentQt(this.checkedHos, "start", "");
5492 5640
       }
5493 5641
       // 终点科室
@@ -5501,7 +5649,7 @@ export class FuwutaiComponent implements OnInit {
5501 5649
         }
5502 5650
       } else if (data["endStatus"] == 203) {
5503 5651
         this.endDeptQt = data["endDept"][0]["id"];
5504
-      } else if (data["endStatus"] == 204 || data["endStatus"] == 205) {
5652
+      } else if ((data["endStatus"] == 204 || data["endStatus"] == 205) && data.endMultipleHospital!=1) {
5505 5653
         this.getHosDepartmentQt(this.checkedHos, "end", "");
5506 5654
       }
5507 5655
     });
@@ -5541,6 +5689,14 @@ export class FuwutaiComponent implements OnInit {
5541 5689
 		if(this.currentTabIndex!='患者转运'){
5542 5690
 			this.patientCode = null;
5543 5691
 		}
5692
+		if(this.crossHospital==1){
5693
+			if(!this.inHosId){
5694
+				this.msg.error('院区不能为空'!)
5695
+				this.isOkLoading = false;
5696
+				this.isGoLoading = false;
5697
+				return
5698
+			}
5699
+		}
5544 5700
     if (objZy && objZy.associationTypeValue === 'patientTransport') {
5545 5701
       //患者转运
5546 5702
       go === "&go&" ? this.submitFormZy(go) : this.submitFormZy();

+ 1 - 1
src/app/views/main/main.component.html

@@ -321,7 +321,7 @@
321 321
 									<div class="col alignItemsStart">
322 322
 										<span class="name required">故障描述:</span>
323 323
 										<nz-input-group [nzSuffix]="suffixTemplate">
324
-											<textarea class="w100" nz-input rows="4" placeholder="请填写故障描述" [(ngModel)]="incidentModel.description"></textarea>
324
+											<textarea class="w100" [innerHTML]="incidentModel.description" nz-input rows="4" placeholder="请填写故障描述" [(ngModel)]="incidentModel.description"></textarea>
325 325
 										</nz-input-group>
326 326
 										<span #suffixTemplate class="ant-input-clear-icon ml8" *ngIf="incidentModel.description" (click)="incidentModel.description = null">清空</span>
327 327
 									</div>

+ 32 - 7
src/app/views/main/main.component.ts

@@ -100,8 +100,8 @@ export class MainComponent implements OnInit, OnDestroy {
100 100
 		// 全局监听
101 101
 		let that = this;
102 102
 		that.tool.getEventObservable().subscribe(res => {
103
-			console.log('全局的监听触发111111', res);
104 103
 			that.eventData = res;
104
+			console.log('全局的监听触发111111', that.eventData);
105 105
 			if(that.eventData.message == '建单'){
106 106
 				that.speedinessAdd()
107 107
 			}
@@ -774,7 +774,7 @@ export class MainComponent implements OnInit, OnDestroy {
774 774
 	      this.applyDept = null;
775 775
 	      this.countRemarkIndex = -1;
776 776
 	      this.incidentModel.department = isInit ? this.incidentModel.department : null;
777
-
777
+				
778 778
 	      //正常初始化
779 779
 	      this.getAutoWorkTypes(false, isInit);
780 780
 				this.newOrderShowOpen = true
@@ -1815,6 +1815,27 @@ export class MainComponent implements OnInit, OnDestroy {
1815 1815
 	            this.changeApplicationDepartment(phone);
1816 1816
 	          }
1817 1817
 	        }else if(type == 'itsm'){
1818
+						if(this.eventData){
1819
+							this.applicationRequesterList.push({
1820
+								name: this.userInfo.user.name,
1821
+								id: this.userInfo.user.id,
1822
+							})
1823
+							this.incidentModel.requester = this.userInfo.user.id;
1824
+							this.incidentModel.description = 
1825
+							'告警id:' + this.eventData.data.alarmId + ';' +
1826
+							'告警来源:' + this.eventData.data.alarmSource + ';' +
1827
+							'\n' +
1828
+							'告警地点:' + this.eventData.data.alarmLocation + ';' +
1829
+							'\n' +
1830
+							'紧急度:' + this.eventData.data.alarmUrgency.name + ';' +
1831
+							'告警时间:' + format(new Date(this.eventData.data.alarmActiveTime), 'yyyy-MM-dd HH:mm:ss') + ';' +
1832
+							'\n' +
1833
+							'告警ip:' + this.eventData.data.alarmIp + ';' +
1834
+							'\n' +
1835
+							'告警描述:' + this.eventData.data.alarmDescription + ';' +
1836
+							'\n' +
1837
+							'告警内容:' + this.eventData.data.alarmContent 
1838
+						}
1818 1839
 	          this.applicationDeptList = data.list;
1819 1840
 	          let ids = this.applicationDeptList.map(v => v.id);
1820 1841
 	          isInit && !ids.includes(this.incidentModel.department) && (this.applicationDeptList.unshift({id: this.incidentModel.department, dept: this.incidentMsg.deptName}))
@@ -3950,12 +3971,16 @@ export class MainComponent implements OnInit, OnDestroy {
3950 3971
 									break;
3951 3972
 							}
3952 3973
 						});
3953
-						if(this.publicRepair && !this.deptRepair){
3974
+						if(this.eventData){
3954 3975
 							this.incidentModel.repairIncidentType = 'public'
3955
-							this.isRelatedDepartment = false
3956
-						}
3957
-						if(!this.publicRepair && this.deptRepair){
3958
-							this.incidentModel.repairIncidentType = 'dept'
3976
+						}else{
3977
+							if(this.publicRepair && !this.deptRepair){
3978
+								this.incidentModel.repairIncidentType = 'public'
3979
+								this.isRelatedDepartment = false
3980
+							}
3981
+							if(!this.publicRepair && this.deptRepair){
3982
+								this.incidentModel.repairIncidentType = 'dept'
3983
+							}
3959 3984
 						}
3960 3985
 						if(this.hospitalModel==1){
3961 3986
 							if(this.tool.getCurrentHospital().parent){

+ 1 - 1
src/app/views/nurse-config/nurse-config.component.html

@@ -1,7 +1,7 @@
1 1
 <div class="incidentConfig">
2 2
   <div class="tagsAndTemplete">
3 3
     <div class="tags">
4
-      <div><i class="icon_transport transport-peizhizhongxin"></i>配置中心&emsp;&gt;&emsp;护士端配置</div>
4
+      <div><i class="icon_transport transport-peizhizhongxin"></i>配置中心&emsp;&gt;&emsp;配送陪检配置</div>
5 5
       <div class="tagList">
6 6
         <span *ngFor="let tag of tagList" [ngClass]="{ active: activeTagLink === tag.link }" (click)="clickTag(tag)">{{ tag.title }}</span>
7 7
       </div>

+ 3 - 3
src/app/views/operation-search/operation-search.component.html

@@ -130,9 +130,9 @@
130 130
             <td>{{ data.applyCode }}</td>
131 131
 						<td>{{ data.total }}</td>
132 132
 						<td>
133
-							<div>{{data.residenceNo}}</div>
133
+							<div>{{data.patientDTO && data.patientDTO.residenceNo || ''}}</div>
134 134
 							<div>
135
-								{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span>
135
+								{{ data.patientName}}<span *ngIf="data.patientDTO && data.patientDTO.bedNum">({{data.patientDTO.bedNum}})</span>
136 136
 							</div>
137 137
 						</td>
138 138
 						<td>
@@ -191,7 +191,7 @@
191 191
 					  <nz-form-control nzErrorTip="请选择患者!">
192 192
 					    <nz-input-group>
193 193
 								<nz-select class="formItem" [nzDisabled]="view" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
194
-								  (nzOnSearch)="changePatient($event)" nzAllowClear nzPlaceHolder="请选择患者" formControlName="patientName">
194
+								  (nzOnSearch)="changePatient($event)" (ngModelChange)="onPatientChange($event)" nzAllowClear nzPlaceHolder="请选择患者" formControlName="patientName">
195 195
 									<ng-container *ngFor="let option of patientList">
196 196
 									  <nz-option *ngIf="!isLoading" [nzLabel]="option.patientName" [nzValue]="option.id"></nz-option>
197 197
 									</ng-container>

+ 37 - 1
src/app/views/operation-search/operation-search.component.ts

@@ -116,11 +116,47 @@ export class OperationSearchComponent implements OnInit {
116 116
 		this.mainService.listMsgByMain('listPatient',postData).subscribe((data) => {
117 117
 		  this.isLoading = false;
118 118
 		  if (data["status"] == 200) {
119
+				data["list"].forEach(i=>{
120
+					if(i.bedNum && i.residenceNo){
121
+						i.patientName = i.patientName + '('+ i.bedNum +')' +'-'+ i.residenceNo
122
+					}
123
+					if(i.bedNum && !i.residenceNo){
124
+						i.patientName = i.patientName + '('+ i.bedNum +')'
125
+					}
126
+					if(!i.bedNum && !i.residenceNo){
127
+						i.patientName = i.patientName 
128
+					}
129
+					if(!i.bedNum && i.residenceNo){
130
+						i.patientName = i.patientName +'-'+ i.residenceNo
131
+					}
132
+				})
119 133
 		    this.patientList = data["list"];
120 134
 		  }
121 135
 		});
122 136
 	}
123 137
 	
138
+	// 选择患者
139
+	onPatientChange(e){
140
+		let item = this.patientList.find(i=>i.id = e)
141
+		console.log(777,item)
142
+		if(item){
143
+			if(item.department){
144
+				let list = this.departmentSearch.find(i =>i.id == item.department.id)
145
+				if(list){
146
+					this.validateForm.controls.areaDept.setValue(item.department.id)
147
+				}else{
148
+					this.departmentSearch.push({
149
+						dept: item.department.dept,
150
+						id: item.department.id
151
+					})
152
+					this.validateForm.controls.areaDept.setValue(item.department.id)
153
+				}
154
+			}else{
155
+				this.validateForm.controls.areaDept.setValue(null)
156
+			}
157
+		}
158
+	}
159
+	
124 160
 	//  选择开始时间
125 161
 	applyDate:any;
126 162
 	onApplyChange(result: Date): void {
@@ -502,7 +538,7 @@ export class OperationSearchComponent implements OnInit {
502 538
   // 边输边搜节流阀
503 539
   isLoading = false;
504 540
   deptKey = "";
505
-  changeDeptInp(dept, type) {
541
+  changeDeptInp(dept, type?) {
506 542
     if (!dept) {
507 543
       return;
508 544
     }

+ 1 - 1
src/app/views/shortcut-build-orders/shortcut-build-orders.component.html

@@ -91,7 +91,7 @@
91 91
           <nz-form-item>
92 92
             <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="roundRobinType">快捷建单类型</nz-form-label>
93 93
             <nz-form-control nzErrorTip="请选择快捷建单类型!">
94
-              <nz-select [nzDropdownMatchSelectWidth]="false" [nzDisabled]="true" formControlName="roundRobinType"
94
+              <nz-select [nzDropdownMatchSelectWidth]="false" [nzDisabled]="false" formControlName="roundRobinType"
95 95
                 nzShowSearch nzAllowClear nzPlaceHolder="请选择快捷建单类型">
96 96
                 <nz-option nzLabel="{{data.hosName}}" nzValue="{{data.id}}" *ngFor="let data of roundRobinTypes">
97 97
                 </nz-option>

+ 9 - 9
src/app/views/shortcut-build-orders/shortcut-build-orders.component.ts

@@ -92,9 +92,9 @@ export class ShortcutBuildOrdersComponent implements OnInit {
92 92
           this.roundRobinTypes = data.list.map((item) => {
93 93
             return { id: item.id + "", hosName: item.taskName };
94 94
           });
95
-          this.validateForm.controls.roundRobinType.setValue(
96
-            this.roundRobinTypes[0] && this.roundRobinTypes[0].id
97
-          );
95
+          // this.validateForm.controls.roundRobinType.setValue(
96
+          //   this.roundRobinTypes[0] && this.roundRobinTypes[0].id
97
+          // );
98 98
         }
99 99
       });
100 100
   }
@@ -379,9 +379,9 @@ export class ShortcutBuildOrdersComponent implements OnInit {
379 379
       endDepartmentHospital: [null, [Validators.required]],
380 380
       endDepartment: [null, [Validators.required]],
381 381
     });
382
-    this.validateForm.controls.roundRobinType.setValue(
383
-      this.roundRobinTypes[0] && this.roundRobinTypes[0].id
384
-    );
382
+    // this.validateForm.controls.roundRobinType.setValue(
383
+    //   this.roundRobinTypes[0] && this.roundRobinTypes[0].id
384
+    // );
385 385
     this.timeSelectedValue = [];
386 386
   }
387 387
 
@@ -405,7 +405,7 @@ export class ShortcutBuildOrdersComponent implements OnInit {
405 405
           title: this.validateForm.value.roundRobinName,
406 406
           hospital: this.hosId,
407 407
           startDept: this.validateForm.value.startDepartment,
408
-          taskType: this.roundRobinTypes[0].id,
408
+          taskType: this.validateForm.value.roundRobinType,
409 409
           targetDept: this.validateForm.value.endDepartment.join(),
410 410
         },
411 411
       };
@@ -417,7 +417,7 @@ export class ShortcutBuildOrdersComponent implements OnInit {
417 417
           title: this.validateForm.value.roundRobinName,
418 418
           hospital: this.hosId,
419 419
           startDept: this.validateForm.value.startDepartment,
420
-          taskType: this.roundRobinTypes[0].id,
420
+          taskType: this.validateForm.value.roundRobinType,
421 421
           targetDept: this.validateForm.value.endDepartment.join(),
422 422
         },
423 423
       };
@@ -503,7 +503,7 @@ export class ShortcutBuildOrdersComponent implements OnInit {
503 503
           return { id: item.id + "", hosName: item.taskName };
504 504
         });
505 505
         this.validateForm.controls.roundRobinType.setValue(
506
-          this.roundRobinTypes[0].id
506
+          data.taskType + ""
507 507
         ); //快捷建单类型
508 508
       }
509 509
       //起点科室

+ 11 - 0
src/app/views/task-type-management/task-type-management.component.html

@@ -101,6 +101,13 @@
101 101
             <label nz-radio nzValue='0'>否</label>
102 102
           </nz-radio-group>
103 103
         </div>
104
+				<div class="mb8 w100" *ngIf="association.value == 'other'">
105
+				  <nz-form-label class="label" nzRequired>是否配送人员可以新建工单</nz-form-label>
106
+				  <nz-radio-group class="handlerType" [(ngModel)]="distribution">
107
+				    <label nz-radio nzValue='1'>是</label>
108
+				    <label nz-radio nzValue='0'>否</label>
109
+				  </nz-radio-group>
110
+				</div>
104 111
         <!-- 患者其他服务 -->
105 112
         <div class="mb8 w100" *ngIf="association.value == 'patientTransport'">
106 113
           <nz-form-label class="label" nzRequired>护士端是否允许预约建单</nz-form-label>
@@ -810,6 +817,10 @@
810 817
           <div class="turnoff" *ngIf="carryingCourses[indexs].actionsSwitch">
811 818
             <label nz-checkbox [(ngModel)]="carryingCourses[indexs].actionPhotoSwitch">拍照动作</label>
812 819
           </div>
820
+					<!-- 数字交接 -->
821
+					<div class="turnoff" *ngIf="carryingCourses[indexs].actionsSwitch && association.value == 'other' && indexs == 0">
822
+					  <label nz-checkbox [(ngModel)]="carryingCourses[indexs].numSwitch">数字交接</label>
823
+					</div>
813 824
           <!-- 运送过程备注 -->
814 825
           <div class="mb8 w100" *ngIf="currentChoice.associationType.value == 'other' && indexs==1">
815 826
             <label nz-checkbox [(ngModel)]="carryingCourses[indexs].logSwitch" (ngModelChange)="changeLogSwitch($event)">是否开通备注填写</label>

+ 33 - 7
src/app/views/task-type-management/task-type-management.component.ts

@@ -105,6 +105,7 @@ export class TaskTypeManagementComponent implements OnInit {
105 105
   allowUrgent = "1"; //是否加急
106 106
   urgentAudit = "0"; //加急是否审核
107 107
   autoFlag = "0"; //调度台是否可以新建工单
108
+	distribution = "0"; //是否配送人员可以新建工单
108 109
   isRemand = "0"; //是否开通自动送回
109 110
   remandTypeId = null; //开通自动送回,选择的任务类型
110 111
   defaultNullDeptId = null; //空单默认科室-标本配送
@@ -847,7 +848,7 @@ export class TaskTypeManagementComponent implements OnInit {
847 848
   //选择类型
848 849
   currentChoice;
849 850
   itemChoice(data, index) {
850
-    console.log(data);
851
+    console.log('点击了任务类型', data);
851 852
     if (data === undefined) {
852 853
       return;
853 854
     }
@@ -960,6 +961,7 @@ export class TaskTypeManagementComponent implements OnInit {
960 961
     this.allowUrgent = data.allowUrgent + "";
961 962
     this.urgentAudit = data.urgentAudit + "";
962 963
     this.autoFlag = data.autoFlag + "";
964
+		this.distribution = data.distribution ? data.distribution + "" : "0";
963 965
     this.isRemand = data.isRemand ? data.isRemand + "" : "0";
964 966
     if (data.remandTypeId) {
965 967
       this.remandTypeId = `${data.remandTypeId.id}__${data.remandTypeId.taskName}`;
@@ -1070,6 +1072,16 @@ export class TaskTypeManagementComponent implements OnInit {
1070 1072
       if (this.indexs == 2 && this.association.value != "inspect") {
1071 1073
         this.indexs = 1;
1072 1074
       }
1075
+			if(data.carryingCourses[0].multipleHospital==1){
1076
+				data.carryingCourses[0].multipleHospital = true
1077
+			}else{
1078
+				data.carryingCourses[0].multipleHospital = false
1079
+			}
1080
+			if(data.carryingCourses[1].multipleHospital==1){
1081
+				data.carryingCourses[1].multipleHospital = true
1082
+			}else{
1083
+				data.carryingCourses[1].multipleHospital = false
1084
+			}
1073 1085
       this.carryingCourses = data.carryingCourses;
1074 1086
       this.ysgcData(this.carryingCourses[this.indexs]);
1075 1087
       this.depa(
@@ -1258,6 +1270,7 @@ export class TaskTypeManagementComponent implements OnInit {
1258 1270
     this.taskData.taskType["allowUrgent"] = parseInt(this.allowUrgent);
1259 1271
     this.taskData.taskType["urgentAudit"] = parseInt(this.urgentAudit);
1260 1272
     this.taskData.taskType["autoFlag"] = parseInt(this.autoFlag);
1273
+		this.taskData.taskType["distribution"] = parseInt(this.distribution);
1261 1274
     this.taskData.taskType["isRemand"] = parseInt(this.isRemand);
1262 1275
     if (this.isRemand == "1") {
1263 1276
       let arr = this.remandTypeId.split("__");
@@ -1415,6 +1428,13 @@ export class TaskTypeManagementComponent implements OnInit {
1415 1428
         this.showPromptModal("提示", false, `【${i == 0 ? '起点科室' : '终点科室'}】是否支持多动作签到开启后,请配置确认动作或拍照动作!`);
1416 1429
         return;
1417 1430
       }
1431
+			// if(i==0){
1432
+			// 	this.showPromptModal("提示", false, `【起点科室】是否支持多动作签到开启后,请配置确认动作或拍照动作或数字交接!`);
1433
+			// 	return;
1434
+			// }else{
1435
+			// 	this.showPromptModal("提示", false, `【终点科室】是否支持多动作签到开启后,请配置确认动作或拍照动作!`);
1436
+			// 	return;
1437
+			// }
1418 1438
       // 其他临床服务,多动作开启后,必须配置至少一个动作
1419 1439
       if(this.taskData.taskType.associationType.value === 'other' && this.taskData.taskType.carryingCourses[i].actionConfirmSwitch && !this.taskData.taskType.carryingCourses[i].actionRemarks){
1420 1440
         this.showPromptModal("提示", false, `【${i == 0 ? '起点科室' : '终点科室'}】确认动作开启后,至少配置一个动作!`);
@@ -1426,16 +1446,21 @@ export class TaskTypeManagementComponent implements OnInit {
1426 1446
         return;
1427 1447
       }
1428 1448
     }
1429
-		if(this.taskData.taskType.carryingCourses[this.indexs].multipleHospital){
1430
-			this.taskData.taskType.carryingCourses[this.indexs].multipleHospital = 1
1449
+		let newData = JSON.parse(JSON.stringify(this.taskData))
1450
+		if(newData.taskType.carryingCourses[0].multipleHospital){
1451
+			newData.taskType.carryingCourses[0].multipleHospital = 1
1452
+		}else{
1453
+			newData.taskType.carryingCourses[0].multipleHospital = 0
1454
+		}
1455
+		if(newData.taskType.carryingCourses[1].multipleHospital){
1456
+			newData.taskType.carryingCourses[1].multipleHospital = 1
1431 1457
 		}else{
1432
-			this.taskData.taskType.carryingCourses[this.indexs].multipleHospital = 0
1458
+			newData.taskType.carryingCourses[1].multipleHospital = 0
1433 1459
 		}
1434
-    console.log(this.taskData);
1435
-    // return;
1460
+    console.log(newData.taskType.carryingCourses[this.indexs]);
1436 1461
     this.loading5 = true;
1437 1462
     that.mainService
1438
-      .coopTypeConfig("addData", "taskType", this.taskData)
1463
+      .coopTypeConfig("addData", "taskType", newData)
1439 1464
       .subscribe((data) => {
1440 1465
         this.loading5 = false;
1441 1466
         if (data.status == 200) {
@@ -1513,6 +1538,7 @@ export class TaskTypeManagementComponent implements OnInit {
1513 1538
     this.allowUrgent = "1"; //是否加急
1514 1539
     this.urgentAudit = "0"; //加急是否审核
1515 1540
     this.autoFlag = "0"; //调度台是否可以新建工单
1541
+		this.distribution = "0"; //是否配送人员可以新建工单
1516 1542
     this.isRemand = "0"; //是否开通自动送回
1517 1543
     this.remandTypeId = null; //自动送回,选择任务类型
1518 1544
     this.defaultNullDeptId = null; //标本配送空单默认值