|
@@ -135,72 +135,41 @@ export class BusinessDataDetailModalComponent implements OnInit {
|
135
|
135
|
idx: this.pageIndex - 1,
|
136
|
136
|
sum: this.pageSize,
|
137
|
137
|
}
|
138
|
|
- let type = '';
|
139
|
138
|
switch(this.dataInfo.type){
|
140
|
139
|
case 'total':
|
141
|
|
- postData.deptId = this.dataInfo.data.deptId,
|
142
|
|
- postData.hosId = this.hosId,
|
143
|
|
- postData.startTime = this.dataInfo.searchDto.startTime,
|
144
|
|
- postData.endTime = this.dataInfo.searchDto.endTime,
|
145
|
|
- type = 'inspect';
|
|
140
|
+ postData.deptId = this.dataInfo.data.deptId;
|
|
141
|
+ postData.hosId = this.hosId;
|
|
142
|
+ postData.startTime = this.dataInfo.searchDto.startTime;
|
|
143
|
+ postData.endTime = this.dataInfo.searchDto.endTime;
|
146
|
144
|
break;
|
147
|
145
|
case 'noCheckCount':
|
148
|
|
- postData.deptId = this.dataInfo.data.deptId,
|
149
|
|
- postData.hosId = this.hosId,
|
150
|
|
- postData.startTime = this.dataInfo.searchDto.startTime,
|
151
|
|
- postData.endTime = this.dataInfo.searchDto.endTime,
|
152
|
|
- postData.reportInsState = 'noCheck',
|
153
|
|
- type = 'inspect';
|
|
146
|
+ postData.deptId = this.dataInfo.data.deptId;
|
|
147
|
+ postData.hosId = this.hosId;
|
|
148
|
+ postData.startTime = this.dataInfo.searchDto.startTime;
|
|
149
|
+ postData.endTime = this.dataInfo.searchDto.endTime;
|
|
150
|
+ postData.reportInsState = 'noCheck';
|
154
|
151
|
break;
|
155
|
152
|
case 'checkCount':
|
156
|
|
- postData.deptId = this.dataInfo.data.deptId,
|
157
|
|
- postData.hosId = this.hosId,
|
158
|
|
- postData.startTime = this.dataInfo.searchDto.startTime,
|
159
|
|
- postData.endTime = this.dataInfo.searchDto.endTime,
|
160
|
|
- postData.reportInsState = 'check',
|
161
|
|
- type = 'inspect';
|
|
153
|
+ postData.deptId = this.dataInfo.data.deptId;
|
|
154
|
+ postData.hosId = this.hosId;
|
|
155
|
+ postData.startTime = this.dataInfo.searchDto.startTime;
|
|
156
|
+ postData.endTime = this.dataInfo.searchDto.endTime;
|
|
157
|
+ postData.reportInsState = 'check';
|
162
|
158
|
break;
|
163
|
159
|
case 'insCount':
|
164
|
|
- postData.deptId = this.dataInfo.data.deptId,
|
165
|
|
- postData.hosId = this.hosId,
|
166
|
|
- postData.startTime = this.dataInfo.searchDto.startTime,
|
167
|
|
- postData.endTime = this.dataInfo.searchDto.endTime,
|
168
|
|
- postData.reportInsState = 'inspect',
|
169
|
|
- type = 'inspect';
|
170
|
|
- break;
|
171
|
|
- case 'workOrderCount':
|
172
|
|
- postData.workOrder = {
|
173
|
|
- "model": "report",
|
174
|
|
- "createDept": this.dataInfo.data.deptId,
|
175
|
|
- "hosId": this.hosId,
|
176
|
|
- "timeOut": 0,
|
177
|
|
- "taskType": {
|
178
|
|
- "associationType": {
|
179
|
|
- "key": 'association_types',
|
180
|
|
- "value": 'inspect',
|
181
|
|
- }
|
182
|
|
- },
|
183
|
|
- startTime1: this.dataInfo.searchDto.startTime,
|
184
|
|
- endTime1: this.dataInfo.searchDto.endTime,
|
185
|
|
- }
|
186
|
|
- type = 'workOrder';
|
|
160
|
+ postData.deptId = this.dataInfo.data.deptId;
|
|
161
|
+ postData.hosId = this.hosId;
|
|
162
|
+ postData.startTime = this.dataInfo.searchDto.startTime;
|
|
163
|
+ postData.endTime = this.dataInfo.searchDto.endTime;
|
|
164
|
+ postData.reportInsState = 'inspect';
|
187
|
165
|
break;
|
188
|
166
|
}
|
189
|
|
-
|
190
|
167
|
this.hsLoading = true;
|
191
|
|
- if(type == 'inspect'){
|
192
|
|
- this.mainService.listMsgByMain("listInspect", postData).subscribe((data: any) => {
|
193
|
|
- this.hsLoading = false;
|
194
|
|
- this.inspectionRateStatisticsList = data.list || [];
|
195
|
|
- this.total = data.totalNum || 0;
|
196
|
|
- })
|
197
|
|
- }else{
|
198
|
|
- this.mainService.getFetchDataList('data', type, postData).subscribe((data: any) => {
|
199
|
|
- this.hsLoading = false;
|
200
|
|
- this.inspectionRateStatisticsList = data.list || [];
|
201
|
|
- this.total = data.totalNum || 0;
|
202
|
|
- })
|
203
|
|
- }
|
|
168
|
+ this.mainService.listMsgByMain("listInspect", postData).subscribe((data: any) => {
|
|
169
|
+ this.hsLoading = false;
|
|
170
|
+ this.inspectionRateStatisticsList = data.list || [];
|
|
171
|
+ this.total = data.totalNum || 0;
|
|
172
|
+ })
|
204
|
173
|
|
205
|
174
|
}
|
206
|
175
|
}
|