소스 검색

拉取代码

maotao 2 달 전
부모
커밋
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
 	  	idx: 0,
92
 	  	idx: 0,
93
 	  	sum: 99999,
93
 	  	sum: 99999,
94
 			taskType:{
94
 			taskType:{
95
+				simpleQuery:true,
95
 				hosIds: this.validatePriorityForm.value.hosId
96
 				hosIds: this.validatePriorityForm.value.hosId
96
 			}
97
 			}
97
 	  };
98
 	  };
98
 	  this.mainService
99
 	  this.mainService
99
 	  	.getFetchDataList("configuration", "taskType", query)
100
 	  	.getFetchDataList("configuration", "taskType", query)
100
 	  	.subscribe((data) => {
101
 	  	.subscribe((data) => {
101
-	  		this.taskTypeList = data.list || [];
102
+	  		this.taskTypeList = data.list.filter(i=>i.associationType.value == 'other');
102
 				if(type=='edit'){
103
 				if(type=='edit'){
103
 					this.validatePriorityForm.controls.taskType.setValue(obj.taskType);
104
 					this.validatePriorityForm.controls.taskType.setValue(obj.taskType);
104
 				}
105
 				}
@@ -127,6 +128,13 @@ export class ConfigurationCustomBusinessComponent implements OnInit {
127
 				this.isLoading = false;
128
 				this.isLoading = false;
128
 	  		this.deptData = data.list || [];
129
 	  		this.deptData = data.list || [];
129
 				if(type == 'edit'){
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
 					this.validatePriorityForm.controls.associationDept.setValue(obj.associationDeptDTO.id);
138
 					this.validatePriorityForm.controls.associationDept.setValue(obj.associationDeptDTO.id);
131
 				}
139
 				}
132
 	  	});
140
 	  	});
@@ -255,9 +263,9 @@ export class ConfigurationCustomBusinessComponent implements OnInit {
255
     let data = {
263
     let data = {
256
 			idx: 0,
264
 			idx: 0,
257
 			sum: 99999,
265
 			sum: 99999,
258
-			businessHandoverConfig: {
259
-				hosId: this.hosId
260
-			},
266
+			// businessHandoverConfig: {
267
+			// 	hosId: this.hosId
268
+			// },
261
 		};
269
 		};
262
 		this.loading1 = true;
270
 		this.loading1 = true;
263
 		this.mainService
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
 	  	idx: 0,
346
 	  	idx: 0,
347
 	  	sum: 99999,
347
 	  	sum: 99999,
348
 			taskType:{
348
 			taskType:{
349
+				simpleQuery:true,
349
 				hosIds: this.validatePriorityForm.value.hosId
350
 				hosIds: this.validatePriorityForm.value.hosId
350
 			}
351
 			}
351
 	  };
352
 	  };
@@ -464,9 +465,9 @@ export class ConfigurationDictionaryComponent implements OnInit {
464
 	  let data = {
465
 	  let data = {
465
 			idx: 0,
466
 			idx: 0,
466
 			sum: 99999,
467
 			sum: 99999,
467
-			businessTaskType: {
468
-				hosId: this.hosId
469
-			},
468
+			// businessTaskType: {
469
+			// 	hosId: this.hosId
470
+			// },
470
 		};
471
 		};
471
 		this.loading1 = true;
472
 		this.loading1 = true;
472
 		this.mainService
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
         [nzLoading]="loading1">
39
         [nzLoading]="loading1">
40
         <thead>
40
         <thead>
41
           <tr class="thead">
41
           <tr class="thead">
42
-            <th nzWidth="10%">业务类型</th>
42
+            <th nzWidth="9%">业务类型</th>
43
             <th nzWidth="10%">创建时间|单号</th>
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
             <th nzWidth="15%">工单信息</th>
50
             <th nzWidth="15%">工单信息</th>
50
           </tr>
51
           </tr>
51
         </thead>
52
         </thead>
52
         <tbody>
53
         <tbody>
53
           <tr *ngFor="let data of listOfData;let i = index">
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
             <td>
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
 						</td>
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
 						<td>{{ data.handoverNum1}}</td>
68
 						<td>{{ data.handoverNum1}}</td>
69
+						<td>{{ data.businessStatus?.name}}</td>
64
             <td>
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
 						</td>
73
 						</td>
68
           </tr>
74
           </tr>
69
         </tbody>
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
   detail(e, id) {
226
   detail(e, id) {
227
     e.stopPropagation();
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
     { id: 6, name: '维修记录', key: "repair_type"},
32
     { id: 6, name: '维修记录', key: "repair_type"},
33
     { id: 7, name: '满意度评价', key: "incident_degree"},
33
     { id: 7, name: '满意度评价', key: "incident_degree"},
34
 		{ id: 8, name: '告警紧急度', key: "alarm_urgency"},
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
   dictionaryKeyList:any[] = [
20
   dictionaryKeyList:any[] = [
21
     { id: 1, name: '携带设备', key: "goods"},
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
 						<td *ngIf="data.data">{{ data.data.patientName }}</td>
38
 						<td *ngIf="data.data">{{ data.data.patientName }}</td>
39
 						<td *ngIf="data.data">{{ data.data.residenceNo }}</td>
39
 						<td *ngIf="data.data">{{ data.data.residenceNo }}</td>
40
 						<td *ngIf="data.data">{{data.data.gdCode}}/{{data.data.taskTypeName}}</td>
40
 						<td *ngIf="data.data">{{data.data.gdCode}}/{{data.data.taskTypeName}}</td>
41
+						<td *ngIf="data.data">{{data.data.userName}}</td>
41
 						<td *ngFor="let item of data">
42
 						<td *ngFor="let item of data">
42
 							{{ item.answer }}
43
 							{{ item.answer }}
43
 						</td>
44
 						</td>

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

@@ -156,6 +156,7 @@ export class QuestionnaireAnswerComponent implements OnInit {
156
 							{describe:'患者姓名'},
156
 							{describe:'患者姓名'},
157
 							{describe:'住院号'},
157
 							{describe:'住院号'},
158
 							{describe:'工单编号/任务类型'},
158
 							{describe:'工单编号/任务类型'},
159
+							{describe:'执行人员'},
159
 						]
160
 						]
160
 						for(let i in this.listBaseInfos){
161
 						for(let i in this.listBaseInfos){
161
 							this.listOfData[i].data = this.listBaseInfos[i]
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
       idx: 0,
194
       idx: 0,
195
       sum: 20,
195
       sum: 20,
196
     };
196
     };
197
+		if(this.deptDicId){
198
+			delete data2.department.type
199
+		}else{
200
+			data2.department.type.id = 282
201
+		}
197
     this.mainService
202
     this.mainService
198
       .getFetchDataList("data", "department", data2)
203
       .getFetchDataList("data", "department", data2)
199
       .subscribe((data) => {
204
       .subscribe((data) => {
@@ -278,8 +283,13 @@ export class ShortcutBuildOrdersComponent implements OnInit {
278
     }
283
     }
279
     // 终点科室的科室类型为检验科
284
     // 终点科室的科室类型为检验科
280
     if (type === "formEnd") {
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
       if(this.validateForm.value.endDepartmentHospital){
293
       if(this.validateForm.value.endDepartmentHospital){
284
         data.department.hospital.id = this.validateForm.value.endDepartmentHospital;
294
         data.department.hospital.id = this.validateForm.value.endDepartmentHospital;
285
       }else{
295
       }else{
@@ -369,6 +379,11 @@ export class ShortcutBuildOrdersComponent implements OnInit {
369
 	// 选择任务类型
379
 	// 选择任务类型
370
 	isOrther:any = 'multiple';
380
 	isOrther:any = 'multiple';
371
 	changeType(e){
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
 		let item = this.roundRobinTypes.find(i=>i.id == e)
387
 		let item = this.roundRobinTypes.find(i=>i.id == e)
373
 		if(item){
388
 		if(item){
374
 			if(item.associationType.value == 'other'){
389
 			if(item.associationType.value == 'other'){
@@ -390,9 +405,17 @@ export class ShortcutBuildOrdersComponent implements OnInit {
390
 			this.isOrther = 'multiple'
405
 			this.isOrther = 'multiple'
391
 			this.deptDicId = null
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
   addModal() {
420
   addModal() {
398
     this.add = true; //新增
421
     this.add = true; //新增