maotao vor 1 Monat
Ursprung
Commit
047b9b6172

+ 12 - 4
src/app/components/configurationCenter/configuration-custom-business/configuration-custom-business.component.ts

@@ -92,13 +92,14 @@ export class ConfigurationCustomBusinessComponent implements OnInit {
92 92
 	  	idx: 0,
93 93
 	  	sum: 99999,
94 94
 			taskType:{
95
+				simpleQuery:true,
95 96
 				hosIds: this.validatePriorityForm.value.hosId
96 97
 			}
97 98
 	  };
98 99
 	  this.mainService
99 100
 	  	.getFetchDataList("configuration", "taskType", query)
100 101
 	  	.subscribe((data) => {
101
-	  		this.taskTypeList = data.list || [];
102
+	  		this.taskTypeList = data.list.filter(i=>i.associationType.value == 'other');
102 103
 				if(type=='edit'){
103 104
 					this.validatePriorityForm.controls.taskType.setValue(obj.taskType);
104 105
 				}
@@ -127,6 +128,13 @@ export class ConfigurationCustomBusinessComponent implements OnInit {
127 128
 				this.isLoading = false;
128 129
 	  		this.deptData = data.list || [];
129 130
 				if(type == 'edit'){
131
+					let item = this.deptData.find(i=>i.id == obj.associationDeptDTO.id)
132
+					if(!item){
133
+						this.deptData.push({
134
+							dept: obj.associationDeptDTO.dept,
135
+							id: obj.associationDeptDTO.id
136
+						})
137
+					}
130 138
 					this.validatePriorityForm.controls.associationDept.setValue(obj.associationDeptDTO.id);
131 139
 				}
132 140
 	  	});
@@ -255,9 +263,9 @@ export class ConfigurationCustomBusinessComponent implements OnInit {
255 263
     let data = {
256 264
 			idx: 0,
257 265
 			sum: 99999,
258
-			businessHandoverConfig: {
259
-				hosId: this.hosId
260
-			},
266
+			// businessHandoverConfig: {
267
+			// 	hosId: this.hosId
268
+			// },
261 269
 		};
262 270
 		this.loading1 = true;
263 271
 		this.mainService

+ 7 - 5
src/app/components/configurationCenter/configuration-dictionary/configuration-dictionary.component.ts

@@ -346,6 +346,7 @@ export class ConfigurationDictionaryComponent implements OnInit {
346 346
 	  	idx: 0,
347 347
 	  	sum: 99999,
348 348
 			taskType:{
349
+				simpleQuery:true,
349 350
 				hosIds: this.validatePriorityForm.value.hosId
350 351
 			}
351 352
 	  };
@@ -464,9 +465,9 @@ export class ConfigurationDictionaryComponent implements OnInit {
464 465
 	  let data = {
465 466
 			idx: 0,
466 467
 			sum: 99999,
467
-			businessTaskType: {
468
-				hosId: this.hosId
469
-			},
468
+			// businessTaskType: {
469
+			// 	hosId: this.hosId
470
+			// },
470 471
 		};
471 472
 		this.loading1 = true;
472 473
 		this.mainService
@@ -483,8 +484,9 @@ export class ConfigurationDictionaryComponent implements OnInit {
483 484
 	}
484 485
 	
485 486
 	// 删除业务类型
486
-	showBusinessModal(){
487
-		 this.delBusinessModal = true;
487
+	showBusinessModal(data){
488
+		this.coopData = data
489
+		this.delBusinessModal = true;
488 490
 	}
489 491
 	
490 492
 	// 隐藏删除框

+ 21 - 15
src/app/views/common-info/common-info.component.html

@@ -39,31 +39,37 @@
39 39
         [nzLoading]="loading1">
40 40
         <thead>
41 41
           <tr class="thead">
42
-            <th nzWidth="10%">业务类型</th>
42
+            <th nzWidth="9%">业务类型</th>
43 43
             <th nzWidth="10%">创建时间|单号</th>
44
-            <th nzWidth="15%">申请科室|终点科室</th>
45
-            <th nzWidth="10%">收取信息</th>
46
-            <th nzWidth="15%">中转信息</th>
47
-            <th nzWidth="15%">送达信息</th>
48
-            <th nzWidth="10%">交接数量</th>
44
+            <th nzWidth="13%">申请科室|终点科室</th>
45
+            <th nzWidth="13%">收取信息</th>
46
+            <th nzWidth="13%">中转信息</th>
47
+            <th nzWidth="13%">送达信息</th>
48
+            <th nzWidth="9%">交接数量</th>
49
+						<th nzWidth="8%">业务状态</th>
49 50
             <th nzWidth="15%">工单信息</th>
50 51
           </tr>
51 52
         </thead>
52 53
         <tbody>
53 54
           <tr *ngFor="let data of listOfData;let i = index">
54
-            <td>{{data.businessTaskTypeDTO?.name}}</td>
55
-            <td>{{ data.createTime | date: 'yyyy-MM-dd HH:mm:ss'}}<br>{{ data.businessNo }}</td>
56
-            <td>{{ data.applyDeptDT0?.dept }}<br>{{ data.endDeptDT0?.dept }}</td>
55
+            <td>{{data.businessTaskTypeDTO?.businessName}}</td>
56
+            <td>{{ data.createTime | date: 'yyyy-MM-dd HH:mm'}}<br>{{ data.businessNo }}</td>
57
+            <td>{{ data.applyDeptDTO?.dept }}<br>{{ data.endDeptDTO?.dept }}</td>
57 58
             <td>
58
-							<div>{{data.collectionUserDTO?.name}} {{data.collectionHandoverUserDTO?.name}}</div>
59
-							<div>{{data.collectionTime | date: 'yyyy-MM-dd HH:mm:ss'}}</div>
59
+							<div>{{data.collectionUserDTO?.name}} <span *ngIf="data.collectionUserDTO && data.collectionHandoverUserDTO">|</span> {{data.collectionHandoverUserDTO?.name}}</div>
60
+							<div>{{data.collectionTime | date: 'yyyy-MM-dd HH:mm'}}</div>
60 61
 						</td>
61
-            <td>{{ data.transferTime | date: 'yyyy-MM-dd HH:mm:ss'}}<br>{{ data.transferUserDTO?.name }}</td>
62
-            <td>{{ data.deliveryUserDTO?.name }}|{{ data.deliveryHandoverUserDTO?.name }}<br>{{ data.deliveryTime | date: 'yyyy-MM-dd HH:mm:ss'}}</td>
62
+            <td>
63
+							{{ data.transferTime | date: 'yyyy-MM-dd HH:mm' }}<br>
64
+							{{ data.transferStartTime | date: 'yyyy-MM-dd HH:mm' }}<br>
65
+							{{ data.transferUserDTO?.name }}
66
+						</td>
67
+            <td>{{ data.deliveryUserDTO?.name }} <span *ngIf="data.deliveryUserDTO && data.deliveryHandoverUserDTO">|</span>	 {{ data.deliveryHandoverUserDTO?.name }}<br>{{ data.deliveryTime | date: 'yyyy-MM-dd HH:mm'}}</td>
63 68
 						<td>{{ data.handoverNum1}}</td>
69
+						<td>{{ data.businessStatus?.name}}</td>
64 70
             <td>
65
-							<div>收:<span class="clickable" (click)="detail($event, data.gdid)">{{ data.gdCode }}</span></div>
66
-							<div>中转:<span class="clickable" (click)="detail($event, data.gdid)">{{ data.transferGdCode }}</span></div>
71
+							<div *ngIf="data.gdCode">收:<span class="clickable" (click)="detail($event, data.gdId)">{{ data.gdCode }}</span></div>
72
+							<div *ngIf="data.transferGdCode">中转:<span class="clickable" (click)="detail($event, data.transferGdId)">{{ data.transferGdCode }}</span></div>
67 73
 						</td>
68 74
           </tr>
69 75
         </tbody>

+ 1 - 1
src/app/views/common-info/common-info.component.ts

@@ -225,6 +225,6 @@ export class CommonInfoComponent implements OnInit {
225 225
   // 查看
226 226
   detail(e, id) {
227 227
     e.stopPropagation();
228
-    this.router.navigateByUrl(`/main/specimenPackage/orderDetail/${id}`);
228
+    this.router.navigateByUrl(`/main/commonInfo/orderDetail/${id}`);
229 229
   }
230 230
 }

+ 0 - 1
src/app/views/incident-config/incident-config.component.ts

@@ -32,7 +32,6 @@ export class IncidentConfigComponent implements OnInit, AfterViewInit {
32 32
     { id: 6, name: '维修记录', key: "repair_type"},
33 33
     { id: 7, name: '满意度评价', key: "incident_degree"},
34 34
 		{ id: 8, name: '告警紧急度', key: "alarm_urgency"},
35
-		{ id: 9, name: '业务类型', key: "business_type"},
36 35
   ]
37 36
 
38 37
   // 院区配置

+ 1 - 0
src/app/views/nurse-config/nurse-config.component.ts

@@ -19,6 +19,7 @@ export class NurseConfigComponent implements OnInit, AfterViewInit {
19 19
   // 数据字典
20 20
   dictionaryKeyList:any[] = [
21 21
     { id: 1, name: '携带设备', key: "goods"},
22
+		{ id: 2, name: '业务类型', key: "business_type"},
22 23
   ]
23 24
 
24 25
   // 院区配置

+ 1 - 0
src/app/views/questionnaire-answer/questionnaire-answer.component.html

@@ -38,6 +38,7 @@
38 38
 						<td *ngIf="data.data">{{ data.data.patientName }}</td>
39 39
 						<td *ngIf="data.data">{{ data.data.residenceNo }}</td>
40 40
 						<td *ngIf="data.data">{{data.data.gdCode}}/{{data.data.taskTypeName}}</td>
41
+						<td *ngIf="data.data">{{data.data.userName}}</td>
41 42
 						<td *ngFor="let item of data">
42 43
 							{{ item.answer }}
43 44
 						</td>

+ 1 - 0
src/app/views/questionnaire-answer/questionnaire-answer.component.ts

@@ -156,6 +156,7 @@ export class QuestionnaireAnswerComponent implements OnInit {
156 156
 							{describe:'患者姓名'},
157 157
 							{describe:'住院号'},
158 158
 							{describe:'工单编号/任务类型'},
159
+							{describe:'执行人员'},
159 160
 						]
160 161
 						for(let i in this.listBaseInfos){
161 162
 							this.listOfData[i].data = this.listBaseInfos[i]

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

@@ -194,6 +194,11 @@ export class ShortcutBuildOrdersComponent implements OnInit {
194 194
       idx: 0,
195 195
       sum: 20,
196 196
     };
197
+		if(this.deptDicId){
198
+			delete data2.department.type
199
+		}else{
200
+			data2.department.type.id = 282
201
+		}
197 202
     this.mainService
198 203
       .getFetchDataList("data", "department", data2)
199 204
       .subscribe((data) => {
@@ -278,8 +283,13 @@ export class ShortcutBuildOrdersComponent implements OnInit {
278 283
     }
279 284
     // 终点科室的科室类型为检验科
280 285
     if (type === "formEnd") {
281
-			delete data.department.deptHandoverType
282
-      data.department.type.id = 282;
286
+			if(this.deptDicId){
287
+				delete data.department.deptHandoverType
288
+				delete data.department.type
289
+			}else{
290
+				data.department.type.id = 282
291
+				delete data.department.deptHandoverType
292
+			}
283 293
       if(this.validateForm.value.endDepartmentHospital){
284 294
         data.department.hospital.id = this.validateForm.value.endDepartmentHospital;
285 295
       }else{
@@ -369,6 +379,11 @@ export class ShortcutBuildOrdersComponent implements OnInit {
369 379
 	// 选择任务类型
370 380
 	isOrther:any = 'multiple';
371 381
 	changeType(e){
382
+		this.validateForm.controls.startDepartmentHospital.setValue(null);
383
+		this.validateForm.controls.startDepartment.setValue(null);
384
+		this.validateForm.controls.endDepartmentHospital.setValue(null);
385
+		this.department1 = [];
386
+		this.validateForm.controls.endDepartment.setValue(null);
372 387
 		let item = this.roundRobinTypes.find(i=>i.id == e)
373 388
 		if(item){
374 389
 			if(item.associationType.value == 'other'){
@@ -390,9 +405,17 @@ export class ShortcutBuildOrdersComponent implements OnInit {
390 405
 			this.isOrther = 'multiple'
391 406
 			this.deptDicId = null
392 407
 		}
408
+		
409
+		setTimeout(_=>{
410
+			this.validateForm.controls.startDepartmentHospital.setValue(null);
411
+			this.validateForm.controls.startDepartment.setValue(null);
412
+			this.validateForm.controls.endDepartmentHospital.setValue(null);
413
+			this.department1 = [];
414
+			this.validateForm.controls.endDepartment.setValue(null);
415
+		},100)
393 416
 	}
394 417
 	
395
-	deptDicId:any;;
418
+	deptDicId:any;
396 419
   // 新增/编辑弹框
397 420
   addModal() {
398 421
     this.add = true; //新增