|
@@ -1,304 +1,304 @@
|
1
|
|
-import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
2
|
|
-import { ToolService } from 'src/app/services/tool.service';
|
3
|
|
-import { format, startOfDay, endOfDay } from 'date-fns';
|
4
|
|
-import { MainService } from 'src/app/services/main.service';
|
5
|
|
-@Component({
|
6
|
|
- selector: 'app-businessData-detail-modal',
|
7
|
|
- templateUrl: './businessData-detail-modal.component.html',
|
8
|
|
- styleUrls: ['./businessData-detail-modal.component.less']
|
9
|
|
-})
|
10
|
|
-export class BusinessDataDetailModalComponent implements OnInit {
|
11
|
|
- // 切换科室,切换弹窗
|
12
|
|
- hosId;
|
13
|
|
- hsLoading = false;
|
14
|
|
- bloodList: any = [];// 血制品列表
|
15
|
|
- washingExceptionList: any = [];// 被服洗涤异常列表
|
16
|
|
- specimenList: any = [];// 标本列表
|
17
|
|
- inspectionRateStatisticsList: any = [];// 科室检查率统计列表
|
18
|
|
- pageIndex: number = 1;//表格当前页码
|
19
|
|
- pageSize: number = 10;//表格每页展示条数
|
20
|
|
- total: number = 0;//表格总数据量
|
21
|
|
- searchCriteria:any = {
|
22
|
|
- stype: 0,
|
23
|
|
- specimenDesc: 0,
|
24
|
|
- }
|
25
|
|
- @Input() show: Boolean;
|
26
|
|
- @Input() orderId: String;
|
27
|
|
- @Input() type: String = '';
|
28
|
|
- @Input() dataInfo: any;
|
|
1
|
+// import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
+// import { ToolService } from 'src/app/services/tool.service';
|
|
3
|
+// import { format, startOfDay, endOfDay } from 'date-fns';
|
|
4
|
+// import { MainService } from 'src/app/services/main.service';
|
|
5
|
+// @Component({
|
|
6
|
+// selector: 'app-businessData-detail-modal',
|
|
7
|
+// templateUrl: './businessData-detail-modal.component.html',
|
|
8
|
+// styleUrls: ['./businessData-detail-modal.component.less']
|
|
9
|
+// })
|
|
10
|
+// export class BusinessDataDetailModalComponent implements OnInit {
|
|
11
|
+// // 切换科室,切换弹窗
|
|
12
|
+// hosId;
|
|
13
|
+// hsLoading = false;
|
|
14
|
+// bloodList: any = [];// 血制品列表
|
|
15
|
+// washingExceptionList: any = [];// 被服洗涤异常列表
|
|
16
|
+// specimenList: any = [];// 标本列表
|
|
17
|
+// inspectionRateStatisticsList: any = [];// 科室检查率统计列表
|
|
18
|
+// pageIndex: number = 1;//表格当前页码
|
|
19
|
+// pageSize: number = 10;//表格每页展示条数
|
|
20
|
+// total: number = 0;//表格总数据量
|
|
21
|
+// searchCriteria:any = {
|
|
22
|
+// stype: 0,
|
|
23
|
+// specimenDesc: 0,
|
|
24
|
+// }
|
|
25
|
+// @Input() show: Boolean;
|
|
26
|
+// @Input() orderId: String;
|
|
27
|
+// @Input() type: String = '';
|
|
28
|
+// @Input() dataInfo: any;
|
29
|
29
|
|
30
|
|
- @Output() closeModelHs = new EventEmitter<any>();//1.组件暴露一个 EventEmitter 属性,当事件发生时,子组件利用该属性 emits(向上弹射)事件
|
|
30
|
+// @Output() closeModelHs = new EventEmitter<any>();//1.组件暴露一个 EventEmitter 属性,当事件发生时,子组件利用该属性 emits(向上弹射)事件
|
31
|
31
|
|
32
|
|
- constructor(private mainService: MainService, private tool: ToolService) { }
|
|
32
|
+// constructor(private mainService: MainService, private tool: ToolService) { }
|
33
|
33
|
|
34
|
|
- ngOnInit() {
|
35
|
|
- this.hosId = this.tool.getCurrentHospital().id;
|
36
|
|
- this.tabType = 1;
|
37
|
|
- switch(this.type){
|
38
|
|
- case 'blood':
|
39
|
|
- this.getBlood(1);
|
40
|
|
- break;
|
41
|
|
- case 'specimen':
|
42
|
|
- this.getSpecimen(1);
|
43
|
|
- this.getSpecimenType();
|
44
|
|
- this.getSpecimenDesc();
|
45
|
|
- break;
|
46
|
|
- case 'deptInspectionRateStatistics':
|
47
|
|
- this.getDeptInspectionRateStatistics(1);
|
48
|
|
- break;
|
49
|
|
- case 'deptInspectionStatistics':
|
50
|
|
- this.getDeptInspectionStatistics(1);
|
51
|
|
- break;
|
52
|
|
- case 'washingException':
|
53
|
|
- this.getWashingException(1);
|
54
|
|
- break;
|
55
|
|
- }
|
56
|
|
- }
|
57
|
|
- // 关闭弹窗
|
58
|
|
- hideModal() {
|
59
|
|
- this.closeModelHs.emit(JSON.stringify({ show: false }));//emits(向上弹射)事件
|
60
|
|
- }
|
|
34
|
+// ngOnInit() {
|
|
35
|
+// this.hosId = this.tool.getCurrentHospital().id;
|
|
36
|
+// this.tabType = 1;
|
|
37
|
+// switch(this.type){
|
|
38
|
+// case 'blood':
|
|
39
|
+// this.getBlood(1);
|
|
40
|
+// break;
|
|
41
|
+// case 'specimen':
|
|
42
|
+// this.getSpecimen(1);
|
|
43
|
+// this.getSpecimenType();
|
|
44
|
+// this.getSpecimenDesc();
|
|
45
|
+// break;
|
|
46
|
+// case 'deptInspectionRateStatistics':
|
|
47
|
+// this.getDeptInspectionRateStatistics(1);
|
|
48
|
+// break;
|
|
49
|
+// case 'deptInspectionStatistics':
|
|
50
|
+// this.getDeptInspectionStatistics(1);
|
|
51
|
+// break;
|
|
52
|
+// case 'washingException':
|
|
53
|
+// this.getWashingException(1);
|
|
54
|
+// break;
|
|
55
|
+// }
|
|
56
|
+// }
|
|
57
|
+// // 关闭弹窗
|
|
58
|
+// hideModal() {
|
|
59
|
+// this.closeModelHs.emit(JSON.stringify({ show: false }));//emits(向上弹射)事件
|
|
60
|
+// }
|
61
|
61
|
|
62
|
|
- // 切换tab栏
|
63
|
|
- tabType: number = 1; //tab栏
|
64
|
|
- checkTab(type) {
|
65
|
|
- this.tabType = type;
|
66
|
|
- }
|
|
62
|
+// // 切换tab栏
|
|
63
|
+// tabType: number = 1; //tab栏
|
|
64
|
+// checkTab(type) {
|
|
65
|
+// this.tabType = type;
|
|
66
|
+// }
|
67
|
67
|
|
68
|
|
- // 切换标本类型下拉框
|
69
|
|
- selectStype(e){
|
70
|
|
- console.log(e);
|
71
|
|
- this.searchCriteria.specimenDesc = 0;
|
72
|
|
- this.getSpecimenDesc();
|
73
|
|
- this.getSpecimen(1);
|
74
|
|
- }
|
|
68
|
+// // 切换标本类型下拉框
|
|
69
|
+// selectStype(e){
|
|
70
|
+// console.log(e);
|
|
71
|
+// this.searchCriteria.specimenDesc = 0;
|
|
72
|
+// this.getSpecimenDesc();
|
|
73
|
+// this.getSpecimen(1);
|
|
74
|
+// }
|
75
|
75
|
|
76
|
|
- // 切换标本类型下拉框
|
77
|
|
- selectDesc(e){
|
78
|
|
- console.log(e);
|
79
|
|
- this.getSpecimen(1);
|
80
|
|
- }
|
|
76
|
+// // 切换标本类型下拉框
|
|
77
|
+// selectDesc(e){
|
|
78
|
+// console.log(e);
|
|
79
|
+// this.getSpecimen(1);
|
|
80
|
+// }
|
81
|
81
|
|
82
|
|
- // 分页获取数据
|
83
|
|
- getList(){
|
84
|
|
- switch(this.type){
|
85
|
|
- case 'blood':
|
86
|
|
- this.getBlood();
|
87
|
|
- break;
|
88
|
|
- case 'specimen':
|
89
|
|
- this.getSpecimen();
|
90
|
|
- break;
|
91
|
|
- case 'deptInspectionRateStatistics':
|
92
|
|
- this.getDeptInspectionRateStatistics();
|
93
|
|
- break;
|
94
|
|
- case 'deptInspectionStatistics':
|
95
|
|
- this.getDeptInspectionStatistics();
|
96
|
|
- break;
|
97
|
|
- case 'washingException':
|
98
|
|
- this.getWashingException();
|
99
|
|
- break;
|
100
|
|
- }
|
101
|
|
- }
|
|
82
|
+// // 分页获取数据
|
|
83
|
+// getList(){
|
|
84
|
+// switch(this.type){
|
|
85
|
+// case 'blood':
|
|
86
|
+// this.getBlood();
|
|
87
|
+// break;
|
|
88
|
+// case 'specimen':
|
|
89
|
+// this.getSpecimen();
|
|
90
|
+// break;
|
|
91
|
+// case 'deptInspectionRateStatistics':
|
|
92
|
+// this.getDeptInspectionRateStatistics();
|
|
93
|
+// break;
|
|
94
|
+// case 'deptInspectionStatistics':
|
|
95
|
+// this.getDeptInspectionStatistics();
|
|
96
|
+// break;
|
|
97
|
+// case 'washingException':
|
|
98
|
+// this.getWashingException();
|
|
99
|
+// break;
|
|
100
|
+// }
|
|
101
|
+// }
|
102
|
102
|
|
103
|
|
- // 获取列表数据
|
104
|
|
- getBlood(idx?) {
|
105
|
|
- if (idx) {
|
106
|
|
- this.pageIndex = 1;
|
107
|
|
- }
|
108
|
|
- let postData = {
|
109
|
|
- "type": "blood",
|
110
|
|
- "orderId": this.orderId
|
111
|
|
- }
|
112
|
|
- this.hsLoading = true;
|
113
|
|
- this.mainService.checkData(postData).subscribe((data:any) => {
|
114
|
|
- this.hsLoading = false;
|
115
|
|
- this.bloodList = data.data ? data.data.all : [];
|
116
|
|
- this.pageSize = this.total = data.data ? data.data.all.length : 0;
|
117
|
|
- })
|
118
|
|
- }
|
|
103
|
+// // 获取列表数据
|
|
104
|
+// getBlood(idx?) {
|
|
105
|
+// if (idx) {
|
|
106
|
+// this.pageIndex = 1;
|
|
107
|
+// }
|
|
108
|
+// let postData = {
|
|
109
|
+// "type": "blood",
|
|
110
|
+// "orderId": this.orderId
|
|
111
|
+// }
|
|
112
|
+// this.hsLoading = true;
|
|
113
|
+// this.mainService.checkData(postData).subscribe((data:any) => {
|
|
114
|
+// this.hsLoading = false;
|
|
115
|
+// this.bloodList = data.data ? data.data.all : [];
|
|
116
|
+// this.pageSize = this.total = data.data ? data.data.all.length : 0;
|
|
117
|
+// })
|
|
118
|
+// }
|
119
|
119
|
|
120
|
|
- // 获取标本类型
|
121
|
|
- specimentTypeList: any[] = [{ id: 0, name: '全部' }];
|
122
|
|
- getSpecimenType() {
|
123
|
|
- this.mainService.getDictionary("list", "specimen_type").subscribe((data:any) => {
|
124
|
|
- let specimentTypeList = [{ id: 0, name: '全部' }];
|
125
|
|
- this.specimentTypeList = specimentTypeList.concat(data);
|
126
|
|
- })
|
127
|
|
- }
|
|
120
|
+// // 获取标本类型
|
|
121
|
+// specimentTypeList: any[] = [{ id: 0, name: '全部' }];
|
|
122
|
+// getSpecimenType() {
|
|
123
|
+// this.mainService.getDictionary("list", "specimen_type").subscribe((data:any) => {
|
|
124
|
+// let specimentTypeList = [{ id: 0, name: '全部' }];
|
|
125
|
+// this.specimentTypeList = specimentTypeList.concat(data);
|
|
126
|
+// })
|
|
127
|
+// }
|
128
|
128
|
|
129
|
|
- // 获取检验项目
|
130
|
|
- specimenDescList: any[] = [{ id: 0, name: '', nameNum: '全部' }];
|
131
|
|
- id:number = 0;
|
132
|
|
- getSpecimenDesc() {
|
133
|
|
- let postData = {
|
134
|
|
- "hosId": this.hosId,
|
135
|
|
- "gdId": this.orderId,
|
136
|
|
- "stype": this.searchCriteria.stype || undefined,
|
137
|
|
- };
|
138
|
|
- this.mainService.specimenCount(postData).subscribe((data:any) => {
|
139
|
|
- data.data = data.data || [];
|
140
|
|
- let specimenDescList:any = [{ id: 0, name: '全部', nameNum: '全部' }];
|
141
|
|
- specimenDescList[0].nameNum = `全部(${data.total})`;
|
142
|
|
- 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]})`})));
|
143
|
|
- })
|
144
|
|
- }
|
|
129
|
+// // 获取检验项目
|
|
130
|
+// specimenDescList: any[] = [{ id: 0, name: '', nameNum: '全部' }];
|
|
131
|
+// id:number = 0;
|
|
132
|
+// getSpecimenDesc() {
|
|
133
|
+// let postData = {
|
|
134
|
+// "hosId": this.hosId,
|
|
135
|
+// "gdId": this.orderId,
|
|
136
|
+// "stype": this.searchCriteria.stype || undefined,
|
|
137
|
+// };
|
|
138
|
+// this.mainService.specimenCount(postData).subscribe((data:any) => {
|
|
139
|
+// data.data = data.data || [];
|
|
140
|
+// let specimenDescList:any = [{ id: 0, name: '全部', nameNum: '全部' }];
|
|
141
|
+// specimenDescList[0].nameNum = `全部(${data.total})`;
|
|
142
|
+// 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]})`})));
|
|
143
|
+// })
|
|
144
|
+// }
|
145
|
145
|
|
146
|
|
- // 获取标本列表
|
147
|
|
- getSpecimen(idx?) {
|
148
|
|
- if (idx) {
|
149
|
|
- this.pageIndex = 1;
|
150
|
|
- }
|
151
|
|
- let postData = {
|
152
|
|
- idx: this.pageIndex - 1,
|
153
|
|
- sum: this.pageSize,
|
154
|
|
- specimen: {
|
155
|
|
- orderBy: 'arrive_time desc',
|
156
|
|
- hosId: this.hosId,
|
157
|
|
- gdid: this.orderId,
|
158
|
|
- stype: this.searchCriteria.stype ? { id: this.searchCriteria.stype } : undefined,
|
159
|
|
- specimenDesc: this.searchCriteria.specimenDesc ? this.specimenDescList.find(v => v.id == this.searchCriteria.specimenDesc).name: undefined,
|
160
|
|
- }
|
161
|
|
- }
|
162
|
|
- this.hsLoading = true;
|
163
|
|
- this.mainService.getFetchDataList('simple/data','specimen',postData).subscribe(data => {
|
164
|
|
- this.hsLoading = false;
|
165
|
|
- this.specimenList = data.list || [];
|
166
|
|
- this.total = data.totalNum || 0;
|
167
|
|
- })
|
168
|
|
- }
|
|
146
|
+// // 获取标本列表
|
|
147
|
+// getSpecimen(idx?) {
|
|
148
|
+// if (idx) {
|
|
149
|
+// this.pageIndex = 1;
|
|
150
|
+// }
|
|
151
|
+// let postData = {
|
|
152
|
+// idx: this.pageIndex - 1,
|
|
153
|
+// sum: this.pageSize,
|
|
154
|
+// specimen: {
|
|
155
|
+// orderBy: 'arrive_time desc',
|
|
156
|
+// hosId: this.hosId,
|
|
157
|
+// gdid: this.orderId,
|
|
158
|
+// stype: this.searchCriteria.stype ? { id: this.searchCriteria.stype } : undefined,
|
|
159
|
+// specimenDesc: this.searchCriteria.specimenDesc ? this.specimenDescList.find(v => v.id == this.searchCriteria.specimenDesc).name: undefined,
|
|
160
|
+// }
|
|
161
|
+// }
|
|
162
|
+// this.hsLoading = true;
|
|
163
|
+// this.mainService.getFetchDataList('simple/data','specimen',postData).subscribe(data => {
|
|
164
|
+// this.hsLoading = false;
|
|
165
|
+// this.specimenList = data.list || [];
|
|
166
|
+// this.total = data.totalNum || 0;
|
|
167
|
+// })
|
|
168
|
+// }
|
169
|
169
|
|
170
|
|
- // 获取被服洗涤异常列表
|
171
|
|
- getWashingException(idx?) {
|
172
|
|
- if (idx) {
|
173
|
|
- this.pageIndex = 1;
|
174
|
|
- }
|
175
|
|
- let postData = {
|
176
|
|
- idx: this.pageIndex - 1,
|
177
|
|
- sum: this.pageSize,
|
178
|
|
- clothesException: {
|
179
|
|
- hosId: this.hosId,
|
180
|
|
- batchId: this.orderId,
|
181
|
|
- }
|
182
|
|
- }
|
183
|
|
- this.hsLoading = true;
|
184
|
|
- this.mainService.getFetchDataList('simple/data','clothesException',postData).subscribe(data => {
|
185
|
|
- this.hsLoading = false;
|
186
|
|
- this.washingExceptionList = data.list || [];
|
187
|
|
- this.total = data.totalNum || 0;
|
188
|
|
- })
|
189
|
|
- }
|
|
170
|
+// // 获取被服洗涤异常列表
|
|
171
|
+// getWashingException(idx?) {
|
|
172
|
+// if (idx) {
|
|
173
|
+// this.pageIndex = 1;
|
|
174
|
+// }
|
|
175
|
+// let postData = {
|
|
176
|
+// idx: this.pageIndex - 1,
|
|
177
|
+// sum: this.pageSize,
|
|
178
|
+// clothesException: {
|
|
179
|
+// hosId: this.hosId,
|
|
180
|
+// batchId: this.orderId,
|
|
181
|
+// }
|
|
182
|
+// }
|
|
183
|
+// this.hsLoading = true;
|
|
184
|
+// this.mainService.getFetchDataList('simple/data','clothesException',postData).subscribe(data => {
|
|
185
|
+// this.hsLoading = false;
|
|
186
|
+// this.washingExceptionList = data.list || [];
|
|
187
|
+// this.total = data.totalNum || 0;
|
|
188
|
+// })
|
|
189
|
+// }
|
190
|
190
|
|
191
|
|
- // 获取科室检查率统计-详情列表
|
192
|
|
- getDeptInspectionRateStatistics(idx?) {
|
193
|
|
- if (idx) {
|
194
|
|
- this.pageIndex = 1;
|
195
|
|
- }
|
196
|
|
- let postData:any = {
|
197
|
|
- idx: this.pageIndex - 1,
|
198
|
|
- sum: this.pageSize,
|
199
|
|
- canceled: this.dataInfo.canceled ? true : undefined,
|
200
|
|
- priority: this.dataInfo.priority ? 0 : undefined,
|
201
|
|
- }
|
202
|
|
- switch(this.dataInfo.type){
|
203
|
|
- case 'total':
|
204
|
|
- postData.deptId = this.dataInfo.data.id;
|
205
|
|
- postData.hosId = this.hosId;
|
206
|
|
- postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
207
|
|
- postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
208
|
|
- break;
|
209
|
|
- case 'noCheckCount':
|
210
|
|
- postData.deptId = this.dataInfo.data.id;
|
211
|
|
- postData.hosId = this.hosId;
|
212
|
|
- postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
213
|
|
- postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
214
|
|
- postData.reportInsState = 'noCheck';
|
215
|
|
- break;
|
216
|
|
- case 'checkCount':
|
217
|
|
- postData.deptId = this.dataInfo.data.id;
|
218
|
|
- postData.hosId = this.hosId;
|
219
|
|
- postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
220
|
|
- postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
221
|
|
- postData.reportInsState = 'check';
|
222
|
|
- break;
|
223
|
|
- case 'insCount':
|
224
|
|
- postData.deptId = this.dataInfo.data.id;
|
225
|
|
- postData.hosId = this.hosId;
|
226
|
|
- postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
227
|
|
- postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
228
|
|
- postData.reportInsState = 'inspect';
|
229
|
|
- break;
|
230
|
|
- }
|
231
|
|
- this.hsLoading = true;
|
232
|
|
- this.mainService.listMsgByMain("listInspect", postData).subscribe((data: any) => {
|
233
|
|
- this.hsLoading = false;
|
234
|
|
- this.inspectionRateStatisticsList = data.list || [];
|
235
|
|
- this.total = data.totalNum || 0;
|
236
|
|
- })
|
|
191
|
+// // 获取科室检查率统计-详情列表
|
|
192
|
+// getDeptInspectionRateStatistics(idx?) {
|
|
193
|
+// if (idx) {
|
|
194
|
+// this.pageIndex = 1;
|
|
195
|
+// }
|
|
196
|
+// let postData:any = {
|
|
197
|
+// idx: this.pageIndex - 1,
|
|
198
|
+// sum: this.pageSize,
|
|
199
|
+// canceled: this.dataInfo.canceled ? true : undefined,
|
|
200
|
+// priority: this.dataInfo.priority ? 0 : undefined,
|
|
201
|
+// }
|
|
202
|
+// switch(this.dataInfo.type){
|
|
203
|
+// case 'total':
|
|
204
|
+// postData.deptId = this.dataInfo.data.id;
|
|
205
|
+// postData.hosId = this.hosId;
|
|
206
|
+// postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
207
|
+// postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
208
|
+// break;
|
|
209
|
+// case 'noCheckCount':
|
|
210
|
+// postData.deptId = this.dataInfo.data.id;
|
|
211
|
+// postData.hosId = this.hosId;
|
|
212
|
+// postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
213
|
+// postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
214
|
+// postData.reportInsState = 'noCheck';
|
|
215
|
+// break;
|
|
216
|
+// case 'checkCount':
|
|
217
|
+// postData.deptId = this.dataInfo.data.id;
|
|
218
|
+// postData.hosId = this.hosId;
|
|
219
|
+// postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
220
|
+// postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
221
|
+// postData.reportInsState = 'check';
|
|
222
|
+// break;
|
|
223
|
+// case 'insCount':
|
|
224
|
+// postData.deptId = this.dataInfo.data.id;
|
|
225
|
+// postData.hosId = this.hosId;
|
|
226
|
+// postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
227
|
+// postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
228
|
+// postData.reportInsState = 'inspect';
|
|
229
|
+// break;
|
|
230
|
+// }
|
|
231
|
+// this.hsLoading = true;
|
|
232
|
+// this.mainService.listMsgByMain("listInspect", postData).subscribe((data: any) => {
|
|
233
|
+// this.hsLoading = false;
|
|
234
|
+// this.inspectionRateStatisticsList = data.list || [];
|
|
235
|
+// this.total = data.totalNum || 0;
|
|
236
|
+// })
|
237
|
237
|
|
238
|
|
- }
|
|
238
|
+// }
|
239
|
239
|
|
240
|
|
- // 获取科室检查统计-详情列表
|
241
|
|
- getDeptInspectionStatistics(idx?) {
|
242
|
|
- if (idx) {
|
243
|
|
- this.pageIndex = 1;
|
244
|
|
- }
|
245
|
|
- let postData:any = {
|
246
|
|
- idx: this.pageIndex - 1,
|
247
|
|
- sum: this.pageSize,
|
248
|
|
- znDeptInspect: true,
|
249
|
|
- }
|
250
|
|
- switch(this.dataInfo.type){
|
251
|
|
- case 'total':
|
252
|
|
- postData.deptId = this.dataInfo.data[10];
|
253
|
|
- postData.hosId = this.hosId;
|
254
|
|
- postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
255
|
|
- postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
256
|
|
- break;
|
257
|
|
- case 'cancel':
|
258
|
|
- postData.deptId = this.dataInfo.data[10];
|
259
|
|
- postData.hosId = this.hosId;
|
260
|
|
- postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
261
|
|
- postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
262
|
|
- postData.cancel = true;
|
263
|
|
- break;
|
264
|
|
- case 'priority':
|
265
|
|
- postData.deptId = this.dataInfo.data[10];
|
266
|
|
- postData.hosId = this.hosId;
|
267
|
|
- postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
268
|
|
- postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
269
|
|
- postData.priority = 1;
|
270
|
|
- break;
|
271
|
|
- case 'noneYY':
|
272
|
|
- postData.deptId = this.dataInfo.data[10];
|
273
|
|
- postData.hosId = this.hosId;
|
274
|
|
- postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
275
|
|
- postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
276
|
|
- postData.noneYY = true;
|
277
|
|
- break;
|
278
|
|
- case 'waitCheck':
|
279
|
|
- postData.deptId = this.dataInfo.data[10];
|
280
|
|
- postData.hosId = this.hosId;
|
281
|
|
- postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
282
|
|
- postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
283
|
|
- postData.waitCheck = true;
|
284
|
|
- break;
|
285
|
|
- case 'doCheck':
|
286
|
|
- postData.deptId = this.dataInfo.data[10];
|
287
|
|
- postData.hosId = this.hosId;
|
288
|
|
- postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
289
|
|
- postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
290
|
|
- postData.doCheck = true;
|
291
|
|
- break;
|
292
|
|
- }
|
293
|
|
- this.hsLoading = true;
|
294
|
|
- this.mainService.listMsgByMain("listInspect", postData).subscribe((data: any) => {
|
295
|
|
- this.hsLoading = false;
|
296
|
|
- this.inspectionRateStatisticsList = data.list || [];
|
297
|
|
- this.total = data.totalNum || 0;
|
298
|
|
- })
|
|
240
|
+// // 获取科室检查统计-详情列表
|
|
241
|
+// getDeptInspectionStatistics(idx?) {
|
|
242
|
+// if (idx) {
|
|
243
|
+// this.pageIndex = 1;
|
|
244
|
+// }
|
|
245
|
+// let postData:any = {
|
|
246
|
+// idx: this.pageIndex - 1,
|
|
247
|
+// sum: this.pageSize,
|
|
248
|
+// znDeptInspect: true,
|
|
249
|
+// }
|
|
250
|
+// switch(this.dataInfo.type){
|
|
251
|
+// case 'total':
|
|
252
|
+// postData.deptId = this.dataInfo.data[10];
|
|
253
|
+// postData.hosId = this.hosId;
|
|
254
|
+// postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
255
|
+// postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
256
|
+// break;
|
|
257
|
+// case 'cancel':
|
|
258
|
+// postData.deptId = this.dataInfo.data[10];
|
|
259
|
+// postData.hosId = this.hosId;
|
|
260
|
+// postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
261
|
+// postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
262
|
+// postData.cancel = true;
|
|
263
|
+// break;
|
|
264
|
+// case 'priority':
|
|
265
|
+// postData.deptId = this.dataInfo.data[10];
|
|
266
|
+// postData.hosId = this.hosId;
|
|
267
|
+// postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
268
|
+// postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
269
|
+// postData.priority = 1;
|
|
270
|
+// break;
|
|
271
|
+// case 'noneYY':
|
|
272
|
+// postData.deptId = this.dataInfo.data[10];
|
|
273
|
+// postData.hosId = this.hosId;
|
|
274
|
+// postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
275
|
+// postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
276
|
+// postData.noneYY = true;
|
|
277
|
+// break;
|
|
278
|
+// case 'waitCheck':
|
|
279
|
+// postData.deptId = this.dataInfo.data[10];
|
|
280
|
+// postData.hosId = this.hosId;
|
|
281
|
+// postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
282
|
+// postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
283
|
+// postData.waitCheck = true;
|
|
284
|
+// break;
|
|
285
|
+// case 'doCheck':
|
|
286
|
+// postData.deptId = this.dataInfo.data[10];
|
|
287
|
+// postData.hosId = this.hosId;
|
|
288
|
+// postData.startTime = this.dataInfo.searchDto.dateRange[0] ? format(startOfDay(this.dataInfo.searchDto.dateRange[0]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
289
|
+// postData.endTime = this.dataInfo.searchDto.dateRange[1] ? format(endOfDay(this.dataInfo.searchDto.dateRange[1]), 'yyyy-MM-dd HH:mm:ss') : undefined;
|
|
290
|
+// postData.doCheck = true;
|
|
291
|
+// break;
|
|
292
|
+// }
|
|
293
|
+// this.hsLoading = true;
|
|
294
|
+// this.mainService.listMsgByMain("listInspect", postData).subscribe((data: any) => {
|
|
295
|
+// this.hsLoading = false;
|
|
296
|
+// this.inspectionRateStatisticsList = data.list || [];
|
|
297
|
+// this.total = data.totalNum || 0;
|
|
298
|
+// })
|
299
|
299
|
|
300
|
|
- }
|
301
|
|
-}
|
|
300
|
+// }
|
|
301
|
+// }
|
302
|
302
|
|
303
|
303
|
|
304
|
304
|
|