|
@@ -61,7 +61,15 @@ export class BusinessDataDetailModalComponent implements OnInit {
|
61
|
61
|
// 切换标本类型下拉框
|
62
|
62
|
selectStype(e){
|
63
|
63
|
console.log(e);
|
64
|
|
- this.getSpecimen(1)
|
|
64
|
+ this.searchCriteria.specimenDesc = 0;
|
|
65
|
+ this.getSpecimenDesc();
|
|
66
|
+ this.getSpecimen(1);
|
|
67
|
+ }
|
|
68
|
+
|
|
69
|
+ // 切换标本类型下拉框
|
|
70
|
+ selectDesc(e){
|
|
71
|
+ console.log(e);
|
|
72
|
+ this.getSpecimen(1);
|
65
|
73
|
}
|
66
|
74
|
|
67
|
75
|
// 分页获取数据
|
|
@@ -112,12 +120,13 @@ export class BusinessDataDetailModalComponent implements OnInit {
|
112
|
120
|
let postData = {
|
113
|
121
|
"hosId": this.hosId,
|
114
|
122
|
"gdId": this.orderId,
|
|
123
|
+ "stype": this.searchCriteria.stype || undefined,
|
115
|
124
|
};
|
116
|
125
|
this.mainService.specimenCount(postData).subscribe((data:any) => {
|
117
|
126
|
data.data = data.data || [];
|
118
|
127
|
let specimenDescList:any = [{ id: 0, name: '全部', nameNum: '全部' }];
|
119
|
128
|
specimenDescList[0].nameNum = `全部(${data.total})`;
|
120
|
|
- this.specimenDescList = specimenDescList.concat( data.data.map(v => ({id: --this.id, name: v[0] || '', nameNum: (v[0] || '') + `(${v[1]})`})));
|
|
129
|
+ this.specimenDescList = specimenDescList.concat( data.data.map(v => ({id: --this.id, name: v[0] || '', nameNum: (v[0] ? v[0].slice(0, 15) + (v[0].length >= 15 ? '...' : '') : '') + `(${v[1]})`})));
|
121
|
130
|
})
|
122
|
131
|
}
|
123
|
132
|
|