|
@@ -48,6 +48,7 @@ export class OfficeManagementComponent implements OnInit {
|
48
|
48
|
this.initForm();
|
49
|
49
|
this.getAllHospital();
|
50
|
50
|
this.getType();
|
|
51
|
+ this.getDeptHandoverType();
|
51
|
52
|
}
|
52
|
53
|
listOfData: any[] = []; //表格数据
|
53
|
54
|
promptContent: string; //操作提示框提示信息
|
|
@@ -63,6 +64,7 @@ export class OfficeManagementComponent implements OnInit {
|
63
|
64
|
num; //编码
|
64
|
65
|
deptalias; //别名
|
65
|
66
|
type; //类型
|
|
67
|
+ deptHandoverType; //类型
|
66
|
68
|
pageIndex: number = 1; //页码
|
67
|
69
|
listLength: number = 10; //总条数
|
68
|
70
|
pageSize: number = 10; //每页条数
|
|
@@ -147,6 +149,7 @@ export class OfficeManagementComponent implements OnInit {
|
147
|
149
|
this.pageIndex = 1;
|
148
|
150
|
this.hospital = this.tool.getCurrentHospital().id;
|
149
|
151
|
this.type = null;
|
|
152
|
+ this.deptHandoverType = null;
|
150
|
153
|
this.name = "";
|
151
|
154
|
this.num = "";
|
152
|
155
|
this.deptalias = "";
|
|
@@ -164,6 +167,7 @@ export class OfficeManagementComponent implements OnInit {
|
164
|
167
|
dept: that.name || "",
|
165
|
168
|
pcode: that.num || "",
|
166
|
169
|
type: { id: that.type || "" },
|
|
170
|
+ deptHandoverType: { id: that.deptHandoverType || "" },
|
167
|
171
|
deptalias: that.deptalias || "",
|
168
|
172
|
},
|
169
|
173
|
};
|
|
@@ -289,6 +293,16 @@ export class OfficeManagementComponent implements OnInit {
|
289
|
293
|
});
|
290
|
294
|
}
|
291
|
295
|
|
|
296
|
+ // 获取科室汇总交接类型
|
|
297
|
+ deptHandoverTypes: Array<any> = [];
|
|
298
|
+ getDeptHandoverType() {
|
|
299
|
+ var that = this;
|
|
300
|
+ that.mainService.getDictionary("list", "dept_handover_type").subscribe((data) => {
|
|
301
|
+ console.log(data);
|
|
302
|
+ that.deptHandoverTypes = data;
|
|
303
|
+ });
|
|
304
|
+ }
|
|
305
|
+
|
292
|
306
|
// 新增弹框
|
293
|
307
|
showModal() {
|
294
|
308
|
this.initForm();
|
|
@@ -322,6 +336,7 @@ export class OfficeManagementComponent implements OnInit {
|
322
|
336
|
floor: [null, [Validators.required]],
|
323
|
337
|
officeAddress: [null, [Validators.required]],
|
324
|
338
|
officeType: [null, [Validators.required]],
|
|
339
|
+ deptHandoverType: [null],
|
325
|
340
|
startTime1: [null],
|
326
|
341
|
endTime1: [null],
|
327
|
342
|
dynamicCode1: [null],
|
|
@@ -420,6 +435,7 @@ export class OfficeManagementComponent implements OnInit {
|
420
|
435
|
floor: { id: that.validateForm.value.floor - 0 },
|
421
|
436
|
address: that.validateForm.value.officeAddress,
|
422
|
437
|
type: { id: that.validateForm.value.officeType },
|
|
438
|
+ deptHandoverType: { id: that.validateForm.value.deptHandoverType },
|
423
|
439
|
},
|
424
|
440
|
};
|
425
|
441
|
if (this.validateForm.value.parentOfficeName) {
|
|
@@ -533,6 +549,7 @@ export class OfficeManagementComponent implements OnInit {
|
533
|
549
|
this.validateForm.controls.deptalias.setValue(data.deptalias);
|
534
|
550
|
this.validateForm.controls.officeNo.setValue(data.pcode);
|
535
|
551
|
this.validateForm.controls.officeType.setValue(data.type.id + "");
|
|
552
|
+ this.validateForm.controls.deptHandoverType.setValue(data.deptHandoverType.id + "");
|
536
|
553
|
this.changeHosp(data);
|
537
|
554
|
this.validateForm.controls.officeAddress.setValue(data.address);
|
538
|
555
|
}
|