소스 검색

解决冲突

maotao 2 달 전
부모
커밋
7119487f80

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

@@ -68,7 +68,8 @@ export class ConfigurationVoluntarilyBuildComponent implements OnInit {
68
 			idx: 0,
68
 			idx: 0,
69
 			sum: 99999,
69
 			sum: 99999,
70
 			group2: {
70
 			group2: {
71
-				statisticalHosId: this.hosId
71
+				statisticalHosId: this.hosId,
72
+				type:'3'
72
 			}
73
 			}
73
 		};
74
 		};
74
 		this.mainService
75
 		this.mainService
@@ -184,31 +185,35 @@ export class ConfigurationVoluntarilyBuildComponent implements OnInit {
184
     if (this.add) {
185
     if (this.add) {
185
       //增加
186
       //增加
186
       postData = {
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
     } else {
199
     } else {
197
       //编辑
200
       //编辑
198
       postData = {
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
     this.mainService
215
     this.mainService
211
-      .simplePost(this.add ? "addData": "upData", "alarmConfig", postData)
216
+      .dataPost(this.add ? "addData": "updData", "alarmConfig", postData)
212
       .subscribe((result) => {
217
       .subscribe((result) => {
213
         this.btnLoading = false;
218
         this.btnLoading = false;
214
         this.hidePriorityModal();
219
         this.hidePriorityModal();
@@ -235,7 +240,7 @@ export class ConfigurationVoluntarilyBuildComponent implements OnInit {
235
       categoryId: [null, [Validators.required]],
240
       categoryId: [null, [Validators.required]],
236
 			groupId: [null, [Validators.required]],
241
 			groupId: [null, [Validators.required]],
237
 			userId: [null, []],
242
 			userId: [null, []],
238
-			flag: [null, [Validators.required]],
243
+			flag: [1, [Validators.required]],
239
     });
244
     });
240
     console.log(this.validatePriorityForm.controls)
245
     console.log(this.validatePriorityForm.controls)
241
   }
246
   }

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

@@ -51,7 +51,7 @@
51
 				  <span class="label">紧急度:</span>
51
 				  <span class="label">紧急度:</span>
52
 				  <nz-select [nzDropdownMatchSelectWidth]="false" class="formItem" nzShowSearch nzAllowClear
52
 				  <nz-select [nzDropdownMatchSelectWidth]="false" class="formItem" nzShowSearch nzAllowClear
53
 				    nzPlaceHolder="请选择紧急度" [(ngModel)]="alarmUrgency">
53
 				    nzPlaceHolder="请选择紧急度" [(ngModel)]="alarmUrgency">
54
-				    <ng-container *ngFor="let data of alarmList">
54
+				    <ng-container *ngFor="let data of urgencyList">
55
 				      <nz-option nzLabel="{{data.name}}" nzValue="{{data.id}}"></nz-option>
55
 				      <nz-option nzLabel="{{data.name}}" nzValue="{{data.id}}"></nz-option>
56
 				    </ng-container>
56
 				    </ng-container>
57
 				  </nz-select>
57
 				  </nz-select>
@@ -101,7 +101,7 @@
101
             <td>
101
             <td>
102
               <div class="coop">
102
               <div class="coop">
103
                 <span *ngIf="coopBtns.view" (click)="look(data)">查看</span>
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
               </div>
105
               </div>
106
             </td>
106
             </td>
107
           </tr>
107
           </tr>
@@ -109,7 +109,7 @@
109
       </nz-table>
109
       </nz-table>
110
       <div class="list-template__pagination">
110
       <div class="list-template__pagination">
111
         <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
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
         </nz-pagination>
113
         </nz-pagination>
114
       </div>
114
       </div>
115
     </div>
115
     </div>
@@ -219,10 +219,7 @@
219
 <!-- 遮罩 -->
219
 <!-- 遮罩 -->
220
 <app-mask *ngIf="maskFlag"></app-mask>
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
 .width-105{
2
 .width-105{
3
 	width: 105px !important;
3
 	width: 105px !important;
4
 }
4
 }
5
+.text-underline{
6
+	cursor: pointer;
7
+	text-decoration: underline;
8
+}
5
 .save {
9
 .save {
6
   position: fixed;
10
   position: fixed;
7
   left: 0;
11
   left: 0;
@@ -80,11 +84,6 @@
80
 		      color: #333;
84
 		      color: #333;
81
 		      font-size: 18px;
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
 	gdList:any = [];
114
 	gdList:any = [];
115
 	alarmList:any = [];
115
 	alarmList:any = [];
116
+	urgencyList:any = [];
116
 	getGdList() {
117
 	getGdList() {
117
 	  this.isLoading = true;
118
 	  this.isLoading = true;
118
 	  this.quickOrderAcceptanceService.getDictionary("incident_status").subscribe((res) => {
119
 	  this.quickOrderAcceptanceService.getDictionary("incident_status").subscribe((res) => {
@@ -123,6 +124,10 @@ export class EmergencyInfoComponent implements OnInit {
123
 		  this.isLoading = false;
124
 		  this.isLoading = false;
124
 		  this.alarmList = res || [];
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
   loading1 = false;
151
   loading1 = false;
147
-  getList(isResetPageIndex = false) {
152
+  getList(isResetPageIndex = false, type?) {
148
     isResetPageIndex && (this.pageIndex = 1);
153
     isResetPageIndex && (this.pageIndex = 1);
149
     let data = {
154
     let data = {
150
       pageIndex: this.pageIndex,
155
       pageIndex: this.pageIndex,
@@ -174,8 +179,10 @@ export class EmergencyInfoComponent implements OnInit {
174
 			delete data.alarm.alarmUrgency
179
 			delete data.alarm.alarmUrgency
175
 		}
180
 		}
176
     this.loading1 = true;
181
     this.loading1 = true;
177
-    this.mapOfCheckedId = {};
178
-    this.checkedDepIds = [];
182
+		if(type!='page'){
183
+			this.mapOfCheckedId = {};
184
+			this.checkedDepIds = [];
185
+		}
179
     this.isAllDisplayDataChecked = false;
186
     this.isAllDisplayDataChecked = false;
180
     this.quickOrderAcceptanceService
187
     this.quickOrderAcceptanceService
181
       .query(data)
188
       .query(data)
@@ -348,17 +355,30 @@ export class EmergencyInfoComponent implements OnInit {
348
 	addOrder(data){
355
 	addOrder(data){
349
 		this.tool.triggerEvent({
356
 		this.tool.triggerEvent({
350
 			message:'建单',
357
 			message:'建单',
351
-			data:{id:data.id}
358
+			data: data
352
 		})
359
 		})
353
 	}
360
 	}
354
 	
361
 	
355
 	// 查看工单
362
 	// 查看工单
363
+	detailModalShow = false; //弹窗开关
356
 	detail(e, data) {
364
 	detail(e, data) {
357
-		if(!data.workOrderDTO){
358
-			return
359
-		}
360
 	  e.stopPropagation();
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
     this.refreshStatus();
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
   maskFlag: any = false;
428
   maskFlag: any = false;
434
   coopData = {};
429
   coopData = {};

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

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

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

@@ -1011,7 +1011,7 @@
1011
 					</div>
1011
 					</div>
1012
           <div class="newTopItem">
1012
           <div class="newTopItem">
1013
             <span class="grayFont">申请科室:</span>
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
               <ng-container *ngFor="let option of applicationDepartmentList">
1015
               <ng-container *ngFor="let option of applicationDepartmentList">
1016
                 <nz-option *ngIf="!isLoadingApply" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
1016
                 <nz-option *ngIf="!isLoadingApply" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
1017
               </ng-container>
1017
               </ng-container>
@@ -1215,9 +1215,9 @@
1215
                         </div>
1215
                         </div>
1216
                         <div *ngIf="!isTaskTypeInspect && radioValueZy" nz-col [nzSpan]="deptZyList['startStatus'] != 201 ? 12 : 24" [ngStyle]="{ display: (deptZyList['startStatus'] != 201 && !isTaskTypeInspect) ? 'block' : 'none'}">
1216
                         <div *ngIf="!isTaskTypeInspect && radioValueZy" nz-col [nzSpan]="deptZyList['startStatus'] != 201 ? 12 : 24" [ngStyle]="{ display: (deptZyList['startStatus'] != 201 && !isTaskTypeInspect) ? 'block' : 'none'}">
1217
                           <nz-form-item *ngIf="(deptZyList.startStatus == 204 || deptZyList.startStatus == 205) && deptZyList.startMultipleHospital==1">
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
                                 <ng-container *ngFor="let option of applicationHospitalList">
1221
                                 <ng-container *ngFor="let option of applicationHospitalList">
1222
                                   <nz-option *ngIf="!isLoading" [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
1222
                                   <nz-option *ngIf="!isLoading" [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
1223
                                 </ng-container>
1223
                                 </ng-container>
@@ -1244,9 +1244,9 @@
1244
                         </div>
1244
                         </div>
1245
                         <div *ngIf="!isTaskTypeInspect && radioValueZy" nz-col [nzSpan]="deptZyList['startStatus'] != 201 ? 12 : 24">
1245
                         <div *ngIf="!isTaskTypeInspect && radioValueZy" nz-col [nzSpan]="deptZyList['startStatus'] != 201 ? 12 : 24">
1246
                           <nz-form-item *ngIf="(deptZyList.endStatus == 204 || deptZyList.endStatus == 205) && deptZyList.endMultipleHospital==1">
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
                                 <ng-container *ngFor="let option of applicationHospitalList">
1250
                                 <ng-container *ngFor="let option of applicationHospitalList">
1251
                                   <nz-option *ngIf="!isLoading" [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
1251
                                   <nz-option *ngIf="!isLoading" [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
1252
                                 </ng-container>
1252
                                 </ng-container>
@@ -1352,9 +1352,9 @@
1352
                         </div>
1352
                         </div>
1353
                         <div *ngIf="deptQtList.taskType && deptQtList.taskType.associationType.value !== 'specimen'" nz-col [nzSpan]="12" [ngStyle]="{ display: deptQtList['startStatus'] != 201 ? 'block' : 'none' }">
1353
                         <div *ngIf="deptQtList.taskType && deptQtList.taskType.associationType.value !== 'specimen'" nz-col [nzSpan]="12" [ngStyle]="{ display: deptQtList['startStatus'] != 201 ? 'block' : 'none' }">
1354
 													<nz-form-item *ngIf="(deptQtList.startStatus == 204 || deptQtList.startStatus == 205) && deptQtList.startMultipleHospital==1">
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
 													      <ng-container *ngFor="let option of applicationHospitalList">
1358
 													      <ng-container *ngFor="let option of applicationHospitalList">
1359
 													        <nz-option *ngIf="!isLoading" [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
1359
 													        <nz-option *ngIf="!isLoading" [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
1360
 													      </ng-container>
1360
 													      </ng-container>
@@ -1381,9 +1381,9 @@
1381
                         </div>
1381
                         </div>
1382
                         <div *ngIf="deptQtList.taskType && deptQtList.taskType.associationType.value !== 'specimen'" nz-col [nzSpan]="12">
1382
                         <div *ngIf="deptQtList.taskType && deptQtList.taskType.associationType.value !== 'specimen'" nz-col [nzSpan]="12">
1383
                           <nz-form-item *ngIf="(deptQtList.endStatus == 204 || deptQtList.endStatus == 205) && deptQtList.endMultipleHospital==1">
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
 																<ng-container *ngFor="let option of applicationHospitalList">
1387
 																<ng-container *ngFor="let option of applicationHospitalList">
1388
 																	<nz-option *ngIf="!isLoading" [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
1388
 																	<nz-option *ngIf="!isLoading" [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
1389
 																</ng-container>
1389
 																</ng-container>

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

@@ -2835,6 +2835,7 @@ export class FuwutaiComponent implements OnInit {
2835
 		this.malPriorityDTO = null;
2835
 		this.malPriorityDTO = null;
2836
     this.buildType = buildType;
2836
     this.buildType = buildType;
2837
 		console.log(123,buildType)
2837
 		console.log(123,buildType)
2838
+		this.searchApplicationHospital();
2838
     if(this.itsmData.mdv2Switch){
2839
     if(this.itsmData.mdv2Switch){
2839
       if(this.buildType !== '继续建单' && this.buildType !== '编辑事件' && this.buildType !== '报修转事件'){
2840
       if(this.buildType !== '继续建单' && this.buildType !== '编辑事件' && this.buildType !== '报修转事件'){
2840
         this.resetOrderData();
2841
         this.resetOrderData();
@@ -2842,7 +2843,6 @@ export class FuwutaiComponent implements OnInit {
2842
         this.resetOrderData2();
2843
         this.resetOrderData2();
2843
       }
2844
       }
2844
 			this.getSysConfig(type);
2845
 			this.getSysConfig(type);
2845
-      this.searchApplicationHospital();
2846
       this.searchApplicationCategory();
2846
       this.searchApplicationCategory();
2847
       this.searchApplicationPriority();
2847
       this.searchApplicationPriority();
2848
       this.searchApplicationSource();
2848
       this.searchApplicationSource();
@@ -2922,7 +2922,9 @@ export class FuwutaiComponent implements OnInit {
2922
       this.noWorkerPhone = false;
2922
       this.noWorkerPhone = false;
2923
     } else {
2923
     } else {
2924
       //正常初始化
2924
       //正常初始化
2925
-      this.searchApplicationDepartment("hsms");
2925
+			if(this.crossHospital!=1){
2926
+				this.searchApplicationDepartment("hsms");
2927
+			}
2926
       this.noWorkerPhone = true;
2928
       this.noWorkerPhone = true;
2927
     }
2929
     }
2928
     this.getSearchTaskList("").subscribe((result) => {
2930
     this.getSearchTaskList("").subscribe((result) => {
@@ -3333,6 +3335,14 @@ export class FuwutaiComponent implements OnInit {
3333
 		  .getFetchDataList("data", "department", dataObj)
3335
 		  .getFetchDataList("data", "department", dataObj)
3334
 		  .subscribe((data) => {
3336
 		  .subscribe((data) => {
3335
 		    if (data.status == 200) {
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
 					if(type==1){
3346
 					if(type==1){
3337
 						this.deptZyList.startDept = data.list
3347
 						this.deptZyList.startDept = data.list
3338
 					}else{
3348
 					}else{
@@ -3344,7 +3354,6 @@ export class FuwutaiComponent implements OnInit {
3344
 	
3354
 	
3345
 	// 物品配送-任务类型-院区切换
3355
 	// 物品配送-任务类型-院区切换
3346
 	changeTypeQtHospital(e, type){
3356
 	changeTypeQtHospital(e, type){
3347
-		console.log(111,e)
3348
 		if(type==1){
3357
 		if(type==1){
3349
 			this.validateFormQt.controls.startDeptQt.setValue(null)
3358
 			this.validateFormQt.controls.startDeptQt.setValue(null)
3350
 		}else{
3359
 		}else{
@@ -3368,6 +3377,14 @@ export class FuwutaiComponent implements OnInit {
3368
 		  .getFetchDataList("data", "department", dataObj)
3377
 		  .getFetchDataList("data", "department", dataObj)
3369
 		  .subscribe((data) => {
3378
 		  .subscribe((data) => {
3370
 		    if (data.status == 200) {
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
 					if(type==1){
3388
 					if(type==1){
3372
 						this.deptQtList.startDept = data.list
3389
 						this.deptQtList.startDept = data.list
3373
 					}else{
3390
 					}else{
@@ -4878,11 +4895,19 @@ export class FuwutaiComponent implements OnInit {
4878
     //id院区,type起点科室'start',终点科室'end'。科室名称dept。
4895
     //id院区,type起点科室'start',终点科室'end'。科室名称dept。
4879
     let value = "";
4896
     let value = "";
4880
     if (dept) {
4897
     if (dept) {
4881
-      value = dept;
4898
+      value = dept.toUpperCase();
4882
     }
4899
     }
4883
 		if (type === "start" && this.deptZyList["startStatus"] == 202) {
4900
 		if (type === "start" && this.deptZyList["startStatus"] == 202) {
4884
 		  //固定科室范围,禁止搜索
4901
 		  //固定科室范围,禁止搜索
4885
 			this.mainService.getdeptList(this.radioValueZy).subscribe((data:any) => {
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
 				let arr = data;
4911
 				let arr = data;
4887
 				if(value!=''){
4912
 				if(value!=''){
4888
 					data = arr.startDept.filter(i=>i.dept.indexOf(value) !=-1)
4913
 					data = arr.startDept.filter(i=>i.dept.indexOf(value) !=-1)
@@ -4895,6 +4920,14 @@ export class FuwutaiComponent implements OnInit {
4895
 		} else if (type === "end" && this.deptZyList["endStatus"] == 202) {
4920
 		} else if (type === "end" && this.deptZyList["endStatus"] == 202) {
4896
 		  //固定科室范围,禁止搜索
4921
 		  //固定科室范围,禁止搜索
4897
 			this.mainService.getdeptList(this.radioValueZy).subscribe((data:any) => {
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
 				let arr = data;
4931
 				let arr = data;
4899
 				if(value!=''){
4932
 				if(value!=''){
4900
 					data = arr.endDept.filter(i=>i.dept.indexOf(value) !=-1)
4933
 					data = arr.endDept.filter(i=>i.dept.indexOf(value) !=-1)
@@ -4905,12 +4938,19 @@ export class FuwutaiComponent implements OnInit {
4905
 			})
4938
 			})
4906
 		  return;
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
     let postData = {
4948
     let postData = {
4909
       idx: 0,
4949
       idx: 0,
4910
       sum: 10,
4950
       sum: 10,
4911
       department: {
4951
       department: {
4912
         dept: value,
4952
         dept: value,
4913
-        cascadeHosId: id
4953
+        cascadeHosId: hsoId ? hsoId : id
4914
       },
4954
       },
4915
     };
4955
     };
4916
     if (type == "start" && this.deptZyList["startStatus"] == 205) {
4956
     if (type == "start" && this.deptZyList["startStatus"] == 205) {
@@ -4924,6 +4964,14 @@ export class FuwutaiComponent implements OnInit {
4924
       .subscribe((data) => {
4964
       .subscribe((data) => {
4925
         this.isLoading = false;
4965
         this.isLoading = false;
4926
         if (data["status"] == 200) {
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
           if (type === "start") {
4975
           if (type === "start") {
4928
             this.deptZyList["startDept"] = data.list;
4976
             this.deptZyList["startDept"] = data.list;
4929
           } else if (type === "end") {
4977
           } else if (type === "end") {
@@ -4945,11 +4993,19 @@ export class FuwutaiComponent implements OnInit {
4945
     //id院区,type起点科室'start',终点科室'end'。科室名称dept。
4993
     //id院区,type起点科室'start',终点科室'end'。科室名称dept。
4946
     let value = "";
4994
     let value = "";
4947
     if (dept) {
4995
     if (dept) {
4948
-      value = dept;
4996
+      value = dept.toUpperCase();
4949
     }
4997
     }
4950
     if (type === "start" && this.deptQtList["startStatus"] == 202) {
4998
     if (type === "start" && this.deptQtList["startStatus"] == 202) {
4951
       //固定科室范围,禁止搜索
4999
       //固定科室范围,禁止搜索
4952
 			this.mainService.getdeptList(this.psValue).subscribe((data:any) => {
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
 				let arr = data;
5009
 				let arr = data;
4954
 				if(value!=''){
5010
 				if(value!=''){
4955
 					data = arr.startDept.filter(i=>i.dept.indexOf(value) !=-1)
5011
 					data = arr.startDept.filter(i=>i.dept.indexOf(value) !=-1)
@@ -4962,6 +5018,14 @@ export class FuwutaiComponent implements OnInit {
4962
     } else if (type === "end" && this.deptQtList["endStatus"] == 202) {
5018
     } else if (type === "end" && this.deptQtList["endStatus"] == 202) {
4963
       //固定科室范围,禁止搜索
5019
       //固定科室范围,禁止搜索
4964
 			this.mainService.getdeptList(this.psValue).subscribe((data:any) => {
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
 				let arr = data;
5029
 				let arr = data;
4966
 				if(value!=''){
5030
 				if(value!=''){
4967
 					data = arr.endDept.filter(i=>i.dept.indexOf(value) !=-1)
5031
 					data = arr.endDept.filter(i=>i.dept.indexOf(value) !=-1)
@@ -4972,12 +5036,19 @@ export class FuwutaiComponent implements OnInit {
4972
 			})
5036
 			})
4973
       return;
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
     let postData = {
5046
     let postData = {
4976
       idx: 0,
5047
       idx: 0,
4977
       sum: 10,
5048
       sum: 10,
4978
       department: {
5049
       department: {
4979
         dept: value,
5050
         dept: value,
4980
-        cascadeHosId: id
5051
+        cascadeHosId: hsoId ? hsoId : id
4981
       },
5052
       },
4982
     };
5053
     };
4983
     if (type == "start" && this.deptQtList["startStatus"] == 205) {
5054
     if (type == "start" && this.deptQtList["startStatus"] == 205) {
@@ -4991,6 +5062,14 @@ export class FuwutaiComponent implements OnInit {
4991
       .subscribe((data) => {
5062
       .subscribe((data) => {
4992
         this.isLoading = false;
5063
         this.isLoading = false;
4993
         if (data["status"] == 200) {
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
           if (type === "start") {
5073
           if (type === "start") {
4995
             this.deptQtList["startDept"] = data.list;
5074
             this.deptQtList["startDept"] = data.list;
4996
           } else if (type === "end") {
5075
           } else if (type === "end") {
@@ -5284,7 +5363,29 @@ export class FuwutaiComponent implements OnInit {
5284
     // 返回值的status是205 则是固定科室类型,会返回科室列表
5363
     // 返回值的status是205 则是固定科室类型,会返回科室列表
5285
     // 返回值的status是206 则是默认患者所在科室,把患者所在科室作为值
5364
     // 返回值的status是206 则是默认患者所在科室,把患者所在科室作为值
5286
     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) => {
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
 			if(data.startStatus==202 || data.startStatus==204 || data.startStatus==205){
5389
 			if(data.startStatus==202 || data.startStatus==204 || data.startStatus==205){
5289
 				this.isStartFixedType = true
5390
 				this.isStartFixedType = true
5290
 			}else{
5391
 			}else{
@@ -5296,19 +5397,31 @@ export class FuwutaiComponent implements OnInit {
5296
 				this.isEndFixedType = false
5397
 				this.isEndFixedType = false
5297
 			}
5398
 			}
5298
 			if((data.startStatus==204 || data.startStatus==205) && data.startMultipleHospital==1){
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
 				this.validateFormZy.addControl(
5403
 				this.validateFormZy.addControl(
5300
 				  "startHosId",
5404
 				  "startHosId",
5301
 				  new FormControl(null, Validators.required)
5405
 				  new FormControl(null, Validators.required)
5302
 				);
5406
 				);
5303
 			}else{
5407
 			}else{
5408
+				if(this.validateFormZy.value.startHosId){
5409
+					this.validateFormZy.controls.startHosId.setValue(null)
5410
+				}
5304
 				this.validateFormZy.removeControl("startHosId");
5411
 				this.validateFormZy.removeControl("startHosId");
5305
 			}
5412
 			}
5306
 			if((data.endStatus==204 || data.endStatus==205) && data.endMultipleHospital==1){
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
 				this.validateFormZy.addControl(
5417
 				this.validateFormZy.addControl(
5308
 				  "endHosId",
5418
 				  "endHosId",
5309
 				  new FormControl(null, Validators.required)
5419
 				  new FormControl(null, Validators.required)
5310
 				);
5420
 				);
5311
 			}else{
5421
 			}else{
5422
+				if(this.validateFormZy.value.endHosId){
5423
+					this.validateFormZy.controls.endHosId.setValue(null)
5424
+				}
5312
 				this.validateFormZy.removeControl("endHosId");
5425
 				this.validateFormZy.removeControl("endHosId");
5313
 			}
5426
 			}
5314
       // 预约start
5427
       // 预约start
@@ -5340,7 +5453,7 @@ export class FuwutaiComponent implements OnInit {
5340
       }
5453
       }
5341
       // 起点科室
5454
       // 起点科室
5342
       if (data["startStatus"] == 201 || data["startStatus"] == 206) {
5455
       if (data["startStatus"] == 201 || data["startStatus"] == 206) {
5343
-        if (this.applyDept) {
5456
+        if (this.applyDept && data.startMultipleHospital!=1) {
5344
           //选择了申请科室,则起点科室就是申请科室
5457
           //选择了申请科室,则起点科室就是申请科室
5345
           this.deptZyList["startDept"] = this.applicationDepartmentList.filter(
5458
           this.deptZyList["startDept"] = this.applicationDepartmentList.filter(
5346
             (item) => item.id == this.applyDept
5459
             (item) => item.id == this.applyDept
@@ -5349,12 +5462,12 @@ export class FuwutaiComponent implements OnInit {
5349
         }
5462
         }
5350
       } else if (data["startStatus"] == 203) {
5463
       } else if (data["startStatus"] == 203) {
5351
         this.startDeptZy = data["startDept"][0]["id"];
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
         this.getHosDepartment(this.checkedHos, "start", "");
5466
         this.getHosDepartment(this.checkedHos, "start", "");
5354
       }
5467
       }
5355
       // 终点科室
5468
       // 终点科室
5356
       if (data["endStatus"] == 201 || data["endStatus"] == 206) {
5469
       if (data["endStatus"] == 201 || data["endStatus"] == 206) {
5357
-        if (this.applyDept) {
5470
+        if (this.applyDept && data.endMultipleHospital!=1) {
5358
           //选择了申请科室,则终点科室就是申请科室
5471
           //选择了申请科室,则终点科室就是申请科室
5359
           this.deptZyList["endDept"] = this.applicationDepartmentList.filter(
5472
           this.deptZyList["endDept"] = this.applicationDepartmentList.filter(
5360
             (item) => item.id == this.applyDept
5473
             (item) => item.id == this.applyDept
@@ -5363,7 +5476,7 @@ export class FuwutaiComponent implements OnInit {
5363
         }
5476
         }
5364
       } else if (data["endStatus"] == 203) {
5477
       } else if (data["endStatus"] == 203) {
5365
         this.endDeptZy = data["endDept"][0]["id"];
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
         this.getHosDepartment(this.checkedHos, "end", "");
5480
         this.getHosDepartment(this.checkedHos, "end", "");
5368
       }
5481
       }
5369
       if (this.currentTabIndex == "患者转运") {
5482
       if (this.currentTabIndex == "患者转运") {
@@ -5441,7 +5554,30 @@ export class FuwutaiComponent implements OnInit {
5441
     // 返回值的status是204 则让前端自己调用科室搜索接口
5554
     // 返回值的status是204 则让前端自己调用科室搜索接口
5442
     // 返回值的status是205 则是固定科室类型,会返回科室列表
5555
     // 返回值的status是205 则是固定科室类型,会返回科室列表
5443
     this.mainService.getdeptList(value).subscribe((data:any) => {
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
       this.deptQtList = data;
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
 			if(data.startStatus==202 || data.startStatus==204 || data.startStatus==205){
5581
 			if(data.startStatus==202 || data.startStatus==204 || data.startStatus==205){
5446
 				this.isStartFixedType = true
5582
 				this.isStartFixedType = true
5447
 			}else{
5583
 			}else{
@@ -5453,19 +5589,31 @@ export class FuwutaiComponent implements OnInit {
5453
 				this.isEndFixedType = false
5589
 				this.isEndFixedType = false
5454
 			}
5590
 			}
5455
 			if((data.startStatus==204 || data.startStatus==205) && data.startMultipleHospital==1){
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
 				this.validateFormQt.addControl(
5595
 				this.validateFormQt.addControl(
5457
 				  "startHosId",
5596
 				  "startHosId",
5458
 				  new FormControl(null, Validators.required)
5597
 				  new FormControl(null, Validators.required)
5459
 				);
5598
 				);
5460
 			}else{
5599
 			}else{
5600
+				if(this.validateFormQt.value.startHosId){
5601
+					this.validateFormQt.controls.startHosId.setValue(null)
5602
+				}
5461
 				this.validateFormQt.removeControl("startHosId");
5603
 				this.validateFormQt.removeControl("startHosId");
5462
 			}
5604
 			}
5463
 			if((data.endStatus==204 || data.endStatus==205) && data.endMultipleHospital==1){
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
 				this.validateFormQt.addControl(
5609
 				this.validateFormQt.addControl(
5465
 				  "endHosId",
5610
 				  "endHosId",
5466
 				  new FormControl(null, Validators.required)
5611
 				  new FormControl(null, Validators.required)
5467
 				);
5612
 				);
5468
 			}else{
5613
 			}else{
5614
+				if(this.validateFormQt.value.endHosId){
5615
+					this.validateFormQt.controls.endHosId.setValue(null)
5616
+				}
5469
 				this.validateFormQt.removeControl("endHosId");
5617
 				this.validateFormQt.removeControl("endHosId");
5470
 			}
5618
 			}
5471
       // 预约start
5619
       // 预约start
@@ -5487,7 +5635,7 @@ export class FuwutaiComponent implements OnInit {
5487
         }
5635
         }
5488
       } else if (data["startStatus"] == 203) {
5636
       } else if (data["startStatus"] == 203) {
5489
         this.startDeptQt = data["startDept"][0]["id"];
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
         this.getHosDepartmentQt(this.checkedHos, "start", "");
5639
         this.getHosDepartmentQt(this.checkedHos, "start", "");
5492
       }
5640
       }
5493
       // 终点科室
5641
       // 终点科室
@@ -5501,7 +5649,7 @@ export class FuwutaiComponent implements OnInit {
5501
         }
5649
         }
5502
       } else if (data["endStatus"] == 203) {
5650
       } else if (data["endStatus"] == 203) {
5503
         this.endDeptQt = data["endDept"][0]["id"];
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
         this.getHosDepartmentQt(this.checkedHos, "end", "");
5653
         this.getHosDepartmentQt(this.checkedHos, "end", "");
5506
       }
5654
       }
5507
     });
5655
     });
@@ -5541,6 +5689,14 @@ export class FuwutaiComponent implements OnInit {
5541
 		if(this.currentTabIndex!='患者转运'){
5689
 		if(this.currentTabIndex!='患者转运'){
5542
 			this.patientCode = null;
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
     if (objZy && objZy.associationTypeValue === 'patientTransport') {
5700
     if (objZy && objZy.associationTypeValue === 'patientTransport') {
5545
       //患者转运
5701
       //患者转运
5546
       go === "&go&" ? this.submitFormZy(go) : this.submitFormZy();
5702
       go === "&go&" ? this.submitFormZy(go) : this.submitFormZy();

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

@@ -321,7 +321,7 @@
321
 									<div class="col alignItemsStart">
321
 									<div class="col alignItemsStart">
322
 										<span class="name required">故障描述:</span>
322
 										<span class="name required">故障描述:</span>
323
 										<nz-input-group [nzSuffix]="suffixTemplate">
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
 										</nz-input-group>
325
 										</nz-input-group>
326
 										<span #suffixTemplate class="ant-input-clear-icon ml8" *ngIf="incidentModel.description" (click)="incidentModel.description = null">清空</span>
326
 										<span #suffixTemplate class="ant-input-clear-icon ml8" *ngIf="incidentModel.description" (click)="incidentModel.description = null">清空</span>
327
 									</div>
327
 									</div>

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

@@ -100,8 +100,8 @@ export class MainComponent implements OnInit, OnDestroy {
100
 		// 全局监听
100
 		// 全局监听
101
 		let that = this;
101
 		let that = this;
102
 		that.tool.getEventObservable().subscribe(res => {
102
 		that.tool.getEventObservable().subscribe(res => {
103
-			console.log('全局的监听触发111111', res);
104
 			that.eventData = res;
103
 			that.eventData = res;
104
+			console.log('全局的监听触发111111', that.eventData);
105
 			if(that.eventData.message == '建单'){
105
 			if(that.eventData.message == '建单'){
106
 				that.speedinessAdd()
106
 				that.speedinessAdd()
107
 			}
107
 			}
@@ -774,7 +774,7 @@ export class MainComponent implements OnInit, OnDestroy {
774
 	      this.applyDept = null;
774
 	      this.applyDept = null;
775
 	      this.countRemarkIndex = -1;
775
 	      this.countRemarkIndex = -1;
776
 	      this.incidentModel.department = isInit ? this.incidentModel.department : null;
776
 	      this.incidentModel.department = isInit ? this.incidentModel.department : null;
777
-
777
+				
778
 	      //正常初始化
778
 	      //正常初始化
779
 	      this.getAutoWorkTypes(false, isInit);
779
 	      this.getAutoWorkTypes(false, isInit);
780
 				this.newOrderShowOpen = true
780
 				this.newOrderShowOpen = true
@@ -1815,6 +1815,27 @@ export class MainComponent implements OnInit, OnDestroy {
1815
 	            this.changeApplicationDepartment(phone);
1815
 	            this.changeApplicationDepartment(phone);
1816
 	          }
1816
 	          }
1817
 	        }else if(type == 'itsm'){
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
 	          this.applicationDeptList = data.list;
1839
 	          this.applicationDeptList = data.list;
1819
 	          let ids = this.applicationDeptList.map(v => v.id);
1840
 	          let ids = this.applicationDeptList.map(v => v.id);
1820
 	          isInit && !ids.includes(this.incidentModel.department) && (this.applicationDeptList.unshift({id: this.incidentModel.department, dept: this.incidentMsg.deptName}))
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
 									break;
3971
 									break;
3951
 							}
3972
 							}
3952
 						});
3973
 						});
3953
-						if(this.publicRepair && !this.deptRepair){
3974
+						if(this.eventData){
3954
 							this.incidentModel.repairIncidentType = 'public'
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
 						if(this.hospitalModel==1){
3985
 						if(this.hospitalModel==1){
3961
 							if(this.tool.getCurrentHospital().parent){
3986
 							if(this.tool.getCurrentHospital().parent){

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

@@ -1,7 +1,7 @@
1
 <div class="incidentConfig">
1
 <div class="incidentConfig">
2
   <div class="tagsAndTemplete">
2
   <div class="tagsAndTemplete">
3
     <div class="tags">
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
       <div class="tagList">
5
       <div class="tagList">
6
         <span *ngFor="let tag of tagList" [ngClass]="{ active: activeTagLink === tag.link }" (click)="clickTag(tag)">{{ tag.title }}</span>
6
         <span *ngFor="let tag of tagList" [ngClass]="{ active: activeTagLink === tag.link }" (click)="clickTag(tag)">{{ tag.title }}</span>
7
       </div>
7
       </div>

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

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

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

@@ -116,11 +116,47 @@ export class OperationSearchComponent implements OnInit {
116
 		this.mainService.listMsgByMain('listPatient',postData).subscribe((data) => {
116
 		this.mainService.listMsgByMain('listPatient',postData).subscribe((data) => {
117
 		  this.isLoading = false;
117
 		  this.isLoading = false;
118
 		  if (data["status"] == 200) {
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
 		    this.patientList = data["list"];
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
 	applyDate:any;
161
 	applyDate:any;
126
 	onApplyChange(result: Date): void {
162
 	onApplyChange(result: Date): void {
@@ -502,7 +538,7 @@ export class OperationSearchComponent implements OnInit {
502
   // 边输边搜节流阀
538
   // 边输边搜节流阀
503
   isLoading = false;
539
   isLoading = false;
504
   deptKey = "";
540
   deptKey = "";
505
-  changeDeptInp(dept, type) {
541
+  changeDeptInp(dept, type?) {
506
     if (!dept) {
542
     if (!dept) {
507
       return;
543
       return;
508
     }
544
     }

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

@@ -91,7 +91,7 @@
91
           <nz-form-item>
91
           <nz-form-item>
92
             <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="roundRobinType">快捷建单类型</nz-form-label>
92
             <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="roundRobinType">快捷建单类型</nz-form-label>
93
             <nz-form-control nzErrorTip="请选择快捷建单类型!">
93
             <nz-form-control nzErrorTip="请选择快捷建单类型!">
94
-              <nz-select [nzDropdownMatchSelectWidth]="false" [nzDisabled]="true" formControlName="roundRobinType"
94
+              <nz-select [nzDropdownMatchSelectWidth]="false" [nzDisabled]="false" formControlName="roundRobinType"
95
                 nzShowSearch nzAllowClear nzPlaceHolder="请选择快捷建单类型">
95
                 nzShowSearch nzAllowClear nzPlaceHolder="请选择快捷建单类型">
96
                 <nz-option nzLabel="{{data.hosName}}" nzValue="{{data.id}}" *ngFor="let data of roundRobinTypes">
96
                 <nz-option nzLabel="{{data.hosName}}" nzValue="{{data.id}}" *ngFor="let data of roundRobinTypes">
97
                 </nz-option>
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
           this.roundRobinTypes = data.list.map((item) => {
92
           this.roundRobinTypes = data.list.map((item) => {
93
             return { id: item.id + "", hosName: item.taskName };
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
       endDepartmentHospital: [null, [Validators.required]],
379
       endDepartmentHospital: [null, [Validators.required]],
380
       endDepartment: [null, [Validators.required]],
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
     this.timeSelectedValue = [];
385
     this.timeSelectedValue = [];
386
   }
386
   }
387
 
387
 
@@ -405,7 +405,7 @@ export class ShortcutBuildOrdersComponent implements OnInit {
405
           title: this.validateForm.value.roundRobinName,
405
           title: this.validateForm.value.roundRobinName,
406
           hospital: this.hosId,
406
           hospital: this.hosId,
407
           startDept: this.validateForm.value.startDepartment,
407
           startDept: this.validateForm.value.startDepartment,
408
-          taskType: this.roundRobinTypes[0].id,
408
+          taskType: this.validateForm.value.roundRobinType,
409
           targetDept: this.validateForm.value.endDepartment.join(),
409
           targetDept: this.validateForm.value.endDepartment.join(),
410
         },
410
         },
411
       };
411
       };
@@ -417,7 +417,7 @@ export class ShortcutBuildOrdersComponent implements OnInit {
417
           title: this.validateForm.value.roundRobinName,
417
           title: this.validateForm.value.roundRobinName,
418
           hospital: this.hosId,
418
           hospital: this.hosId,
419
           startDept: this.validateForm.value.startDepartment,
419
           startDept: this.validateForm.value.startDepartment,
420
-          taskType: this.roundRobinTypes[0].id,
420
+          taskType: this.validateForm.value.roundRobinType,
421
           targetDept: this.validateForm.value.endDepartment.join(),
421
           targetDept: this.validateForm.value.endDepartment.join(),
422
         },
422
         },
423
       };
423
       };
@@ -503,7 +503,7 @@ export class ShortcutBuildOrdersComponent implements OnInit {
503
           return { id: item.id + "", hosName: item.taskName };
503
           return { id: item.id + "", hosName: item.taskName };
504
         });
504
         });
505
         this.validateForm.controls.roundRobinType.setValue(
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
             <label nz-radio nzValue='0'>否</label>
101
             <label nz-radio nzValue='0'>否</label>
102
           </nz-radio-group>
102
           </nz-radio-group>
103
         </div>
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
         <div class="mb8 w100" *ngIf="association.value == 'patientTransport'">
112
         <div class="mb8 w100" *ngIf="association.value == 'patientTransport'">
106
           <nz-form-label class="label" nzRequired>护士端是否允许预约建单</nz-form-label>
113
           <nz-form-label class="label" nzRequired>护士端是否允许预约建单</nz-form-label>
@@ -810,6 +817,10 @@
810
           <div class="turnoff" *ngIf="carryingCourses[indexs].actionsSwitch">
817
           <div class="turnoff" *ngIf="carryingCourses[indexs].actionsSwitch">
811
             <label nz-checkbox [(ngModel)]="carryingCourses[indexs].actionPhotoSwitch">拍照动作</label>
818
             <label nz-checkbox [(ngModel)]="carryingCourses[indexs].actionPhotoSwitch">拍照动作</label>
812
           </div>
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
           <div class="mb8 w100" *ngIf="currentChoice.associationType.value == 'other' && indexs==1">
825
           <div class="mb8 w100" *ngIf="currentChoice.associationType.value == 'other' && indexs==1">
815
             <label nz-checkbox [(ngModel)]="carryingCourses[indexs].logSwitch" (ngModelChange)="changeLogSwitch($event)">是否开通备注填写</label>
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
   allowUrgent = "1"; //是否加急
105
   allowUrgent = "1"; //是否加急
106
   urgentAudit = "0"; //加急是否审核
106
   urgentAudit = "0"; //加急是否审核
107
   autoFlag = "0"; //调度台是否可以新建工单
107
   autoFlag = "0"; //调度台是否可以新建工单
108
+	distribution = "0"; //是否配送人员可以新建工单
108
   isRemand = "0"; //是否开通自动送回
109
   isRemand = "0"; //是否开通自动送回
109
   remandTypeId = null; //开通自动送回,选择的任务类型
110
   remandTypeId = null; //开通自动送回,选择的任务类型
110
   defaultNullDeptId = null; //空单默认科室-标本配送
111
   defaultNullDeptId = null; //空单默认科室-标本配送
@@ -847,7 +848,7 @@ export class TaskTypeManagementComponent implements OnInit {
847
   //选择类型
848
   //选择类型
848
   currentChoice;
849
   currentChoice;
849
   itemChoice(data, index) {
850
   itemChoice(data, index) {
850
-    console.log(data);
851
+    console.log('点击了任务类型', data);
851
     if (data === undefined) {
852
     if (data === undefined) {
852
       return;
853
       return;
853
     }
854
     }
@@ -960,6 +961,7 @@ export class TaskTypeManagementComponent implements OnInit {
960
     this.allowUrgent = data.allowUrgent + "";
961
     this.allowUrgent = data.allowUrgent + "";
961
     this.urgentAudit = data.urgentAudit + "";
962
     this.urgentAudit = data.urgentAudit + "";
962
     this.autoFlag = data.autoFlag + "";
963
     this.autoFlag = data.autoFlag + "";
964
+		this.distribution = data.distribution ? data.distribution + "" : "0";
963
     this.isRemand = data.isRemand ? data.isRemand + "" : "0";
965
     this.isRemand = data.isRemand ? data.isRemand + "" : "0";
964
     if (data.remandTypeId) {
966
     if (data.remandTypeId) {
965
       this.remandTypeId = `${data.remandTypeId.id}__${data.remandTypeId.taskName}`;
967
       this.remandTypeId = `${data.remandTypeId.id}__${data.remandTypeId.taskName}`;
@@ -1070,6 +1072,16 @@ export class TaskTypeManagementComponent implements OnInit {
1070
       if (this.indexs == 2 && this.association.value != "inspect") {
1072
       if (this.indexs == 2 && this.association.value != "inspect") {
1071
         this.indexs = 1;
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
       this.carryingCourses = data.carryingCourses;
1085
       this.carryingCourses = data.carryingCourses;
1074
       this.ysgcData(this.carryingCourses[this.indexs]);
1086
       this.ysgcData(this.carryingCourses[this.indexs]);
1075
       this.depa(
1087
       this.depa(
@@ -1258,6 +1270,7 @@ export class TaskTypeManagementComponent implements OnInit {
1258
     this.taskData.taskType["allowUrgent"] = parseInt(this.allowUrgent);
1270
     this.taskData.taskType["allowUrgent"] = parseInt(this.allowUrgent);
1259
     this.taskData.taskType["urgentAudit"] = parseInt(this.urgentAudit);
1271
     this.taskData.taskType["urgentAudit"] = parseInt(this.urgentAudit);
1260
     this.taskData.taskType["autoFlag"] = parseInt(this.autoFlag);
1272
     this.taskData.taskType["autoFlag"] = parseInt(this.autoFlag);
1273
+		this.taskData.taskType["distribution"] = parseInt(this.distribution);
1261
     this.taskData.taskType["isRemand"] = parseInt(this.isRemand);
1274
     this.taskData.taskType["isRemand"] = parseInt(this.isRemand);
1262
     if (this.isRemand == "1") {
1275
     if (this.isRemand == "1") {
1263
       let arr = this.remandTypeId.split("__");
1276
       let arr = this.remandTypeId.split("__");
@@ -1415,6 +1428,13 @@ export class TaskTypeManagementComponent implements OnInit {
1415
         this.showPromptModal("提示", false, `【${i == 0 ? '起点科室' : '终点科室'}】是否支持多动作签到开启后,请配置确认动作或拍照动作!`);
1428
         this.showPromptModal("提示", false, `【${i == 0 ? '起点科室' : '终点科室'}】是否支持多动作签到开启后,请配置确认动作或拍照动作!`);
1416
         return;
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
       if(this.taskData.taskType.associationType.value === 'other' && this.taskData.taskType.carryingCourses[i].actionConfirmSwitch && !this.taskData.taskType.carryingCourses[i].actionRemarks){
1439
       if(this.taskData.taskType.associationType.value === 'other' && this.taskData.taskType.carryingCourses[i].actionConfirmSwitch && !this.taskData.taskType.carryingCourses[i].actionRemarks){
1420
         this.showPromptModal("提示", false, `【${i == 0 ? '起点科室' : '终点科室'}】确认动作开启后,至少配置一个动作!`);
1440
         this.showPromptModal("提示", false, `【${i == 0 ? '起点科室' : '终点科室'}】确认动作开启后,至少配置一个动作!`);
@@ -1426,16 +1446,21 @@ export class TaskTypeManagementComponent implements OnInit {
1426
         return;
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
 		}else{
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
     this.loading5 = true;
1461
     this.loading5 = true;
1437
     that.mainService
1462
     that.mainService
1438
-      .coopTypeConfig("addData", "taskType", this.taskData)
1463
+      .coopTypeConfig("addData", "taskType", newData)
1439
       .subscribe((data) => {
1464
       .subscribe((data) => {
1440
         this.loading5 = false;
1465
         this.loading5 = false;
1441
         if (data.status == 200) {
1466
         if (data.status == 200) {
@@ -1513,6 +1538,7 @@ export class TaskTypeManagementComponent implements OnInit {
1513
     this.allowUrgent = "1"; //是否加急
1538
     this.allowUrgent = "1"; //是否加急
1514
     this.urgentAudit = "0"; //加急是否审核
1539
     this.urgentAudit = "0"; //加急是否审核
1515
     this.autoFlag = "0"; //调度台是否可以新建工单
1540
     this.autoFlag = "0"; //调度台是否可以新建工单
1541
+		this.distribution = "0"; //是否配送人员可以新建工单
1516
     this.isRemand = "0"; //是否开通自动送回
1542
     this.isRemand = "0"; //是否开通自动送回
1517
     this.remandTypeId = null; //自动送回,选择任务类型
1543
     this.remandTypeId = null; //自动送回,选择任务类型
1518
     this.defaultNullDeptId = null; //标本配送空单默认值
1544
     this.defaultNullDeptId = null; //标本配送空单默认值