|
@@ -19,6 +19,7 @@ export class BusinessDataDetailModalComponent implements OnInit {
|
19
|
19
|
total: number = 0;//表格总数据量
|
20
|
20
|
searchCriteria:any = {
|
21
|
21
|
stype: 0,
|
|
22
|
+ specimenDesc: 0,
|
22
|
23
|
}
|
23
|
24
|
@Input() show: Boolean;
|
24
|
25
|
@Input() orderId: String;
|
|
@@ -39,6 +40,7 @@ export class BusinessDataDetailModalComponent implements OnInit {
|
39
|
40
|
case 'specimen':
|
40
|
41
|
this.getSpecimen(1);
|
41
|
42
|
this.getSpecimenType();
|
|
43
|
+ this.getSpecimenDesc();
|
42
|
44
|
break;
|
43
|
45
|
case 'deptInspectionRateStatistics':
|
44
|
46
|
this.getDeptInspectionRateStatistics(1);
|
|
@@ -103,6 +105,21 @@ export class BusinessDataDetailModalComponent implements OnInit {
|
103
|
105
|
})
|
104
|
106
|
}
|
105
|
107
|
|
|
108
|
+ // 获取检验项目
|
|
109
|
+ specimenDescList: any[] = [{ id: 0, name: '', nameNum: '全部' }];
|
|
110
|
+ id:number = 0;
|
|
111
|
+ getSpecimenDesc() {
|
|
112
|
+ let postData = {
|
|
113
|
+ "hosId": this.hosId,
|
|
114
|
+ "gdId": this.orderId,
|
|
115
|
+ };
|
|
116
|
+ this.mainService.specimenCount(postData).subscribe((data:any) => {
|
|
117
|
+ data.data = data.data || [];
|
|
118
|
+ let specimenDescList = [{ id: 0, name: '全部', nameNum: '全部' }];
|
|
119
|
+ this.specimenDescList = specimenDescList.concat( data.data.map(v => ({id: --this.id, name: v[0] || '', nameNum: (v[0] || '') + `(${v[1]})`})));
|
|
120
|
+ })
|
|
121
|
+ }
|
|
122
|
+
|
106
|
123
|
// 获取标本列表
|
107
|
124
|
getSpecimen(idx?) {
|
108
|
125
|
if (idx) {
|
|
@@ -116,6 +133,7 @@ export class BusinessDataDetailModalComponent implements OnInit {
|
116
|
133
|
hosId: this.hosId,
|
117
|
134
|
gdid: this.orderId,
|
118
|
135
|
stype: this.searchCriteria.stype ? { id: this.searchCriteria.stype } : undefined,
|
|
136
|
+ specimenDesc: this.searchCriteria.specimenDesc ? this.specimenDescList.find(v => v.id == this.searchCriteria.specimenDesc).name: undefined,
|
119
|
137
|
}
|
120
|
138
|
}
|
121
|
139
|
this.hsLoading = true;
|