|
@@ -46,8 +46,8 @@ export class OrderManagementComponent implements OnInit {
|
46
|
46
|
coopId: string;
|
47
|
47
|
hospital: string;
|
48
|
48
|
gdcode: string = "";
|
49
|
|
- association: number;
|
50
|
|
- allAssociation: any = [];
|
|
49
|
+ statisticsDateType: number;
|
|
50
|
+ statisticsDateTypeList: any = [];
|
51
|
51
|
department: any;
|
52
|
52
|
alldepart: any = [];
|
53
|
53
|
worker: number;
|
|
@@ -95,7 +95,7 @@ export class OrderManagementComponent implements OnInit {
|
95
|
95
|
|
96
|
96
|
reset() {
|
97
|
97
|
this.pageIndex = 1;
|
98
|
|
- this.association = null;
|
|
98
|
+ this.statisticsDateType = null;
|
99
|
99
|
this.tasktype = null;
|
100
|
100
|
if (!(this.coopBtns.currentDept && !this.coopBtns.allOrders)) {
|
101
|
101
|
this.department = null;
|
|
@@ -122,7 +122,7 @@ export class OrderManagementComponent implements OnInit {
|
122
|
122
|
this.department = null;
|
123
|
123
|
this.worker = null;
|
124
|
124
|
this.tasktype = null;
|
125
|
|
- this.association = null;
|
|
125
|
+ this.statisticsDateType = null;
|
126
|
126
|
this.getDeparts();
|
127
|
127
|
this.getAssociation();
|
128
|
128
|
this.getAllWorker();
|
|
@@ -132,11 +132,10 @@ export class OrderManagementComponent implements OnInit {
|
132
|
132
|
|
133
|
133
|
getAssociation() {
|
134
|
134
|
let that = this;
|
135
|
|
- console.log(that.mainService.getDictionary("list", "association_types"));
|
136
|
135
|
that.mainService
|
137
|
|
- .getDictionary("list", "association_types")
|
|
136
|
+ .getDictionary("list", "statistics_date_type")
|
138
|
137
|
.subscribe((data) => {
|
139
|
|
- that.allAssociation = data;
|
|
138
|
+ that.statisticsDateTypeList = data;
|
140
|
139
|
});
|
141
|
140
|
}
|
142
|
141
|
|
|
@@ -172,8 +171,8 @@ export class OrderManagementComponent implements OnInit {
|
172
|
171
|
simpleQuery: true,
|
173
|
172
|
},
|
174
|
173
|
};
|
175
|
|
- if (that.association) {
|
176
|
|
- postData.taskType.associationType = { id: that.association };
|
|
174
|
+ if (that.statisticsDateType) {
|
|
175
|
+ postData.taskType.statisticsDateType = { id: that.statisticsDateType };
|
177
|
176
|
}
|
178
|
177
|
that.isLoading = true;
|
179
|
178
|
that.mainService
|
|
@@ -183,9 +182,9 @@ export class OrderManagementComponent implements OnInit {
|
183
|
182
|
that.isLoading = false;
|
184
|
183
|
});
|
185
|
184
|
}
|
186
|
|
-
|
187
|
|
- selectAssociation(e) {
|
188
|
|
- this.association = e;
|
|
185
|
+
|
|
186
|
+ selectStatisticsDateType(e) {
|
|
187
|
+ this.statisticsDateType = e;
|
189
|
188
|
this.changeTasktype("");
|
190
|
189
|
this.tasktype = null;
|
191
|
190
|
}
|
|
@@ -232,9 +231,9 @@ export class OrderManagementComponent implements OnInit {
|
232
|
231
|
delete data.workOrder.deleteFlag;
|
233
|
232
|
}
|
234
|
233
|
}
|
235
|
|
- if (that.association) {
|
|
234
|
+ if (that.statisticsDateType) {
|
236
|
235
|
data.workOrder.taskType = {
|
237
|
|
- associationType: { id: that.association },
|
|
236
|
+ statisticsDateType: { id: that.statisticsDateType },
|
238
|
237
|
};
|
239
|
238
|
}
|
240
|
239
|
if (that.tasktype) {
|
|
@@ -438,9 +437,9 @@ export class OrderManagementComponent implements OnInit {
|
438
|
437
|
delete postData.workOrder.deleteFlag;
|
439
|
438
|
}
|
440
|
439
|
}
|
441
|
|
- if (that.association) {
|
|
440
|
+ if (that.statisticsDateType) {
|
442
|
441
|
postData.workOrder.taskType = {
|
443
|
|
- associationType: { id: that.association },
|
|
442
|
+ statisticsDateType: { id: that.statisticsDateType },
|
444
|
443
|
};
|
445
|
444
|
}
|
446
|
445
|
if (that.tasktype) {
|