|
|
@ -209,7 +209,7 @@ export class StationWeeklyPlanComponent implements OnInit { |
|
|
|
let selectedTime = this.selectedYear + '-' + this.selectedMonth + '-' + '01' |
|
|
|
let selectedTime = this.selectedYear + '-' + this.selectedMonth + '-' + '01' |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
Month: selectedTime, |
|
|
|
Month: selectedTime, |
|
|
|
approvalStatuses: "通过", |
|
|
|
approvalStatuses: ['通过', '待检查', '已检查'], |
|
|
|
SupervisorId: this.userId, |
|
|
|
SupervisorId: this.userId, |
|
|
|
PageNumber: this.PageNumber, |
|
|
|
PageNumber: this.PageNumber, |
|
|
|
PageSize: this.PageSize |
|
|
|
PageSize: this.PageSize |
|
|
@ -403,7 +403,7 @@ export class StationWeeklyPlanComponent implements OnInit { |
|
|
|
Month: selectedTime, |
|
|
|
Month: selectedTime, |
|
|
|
CompanyOrganizationId: item.id, |
|
|
|
CompanyOrganizationId: item.id, |
|
|
|
PageNumber: this.PageNumber, |
|
|
|
PageNumber: this.PageNumber, |
|
|
|
approvalStatuses: '通过', |
|
|
|
approvalStatuses: ['通过', '待检查', '已检查'], |
|
|
|
PageSize: this.PageSize |
|
|
|
PageSize: this.PageSize |
|
|
|
} |
|
|
|
} |
|
|
|
item.isLoading = true |
|
|
|
item.isLoading = true |
|
|
@ -517,4 +517,27 @@ export class StationWeeklyPlanComponent implements OnInit { |
|
|
|
modal.afterOpen.subscribe(() => console.log('[afterOpen] emitted!')); |
|
|
|
modal.afterOpen.subscribe(() => console.log('[afterOpen] emitted!')); |
|
|
|
modal.afterClose.subscribe(result => console.log('[afterClose] The result is:', result)); |
|
|
|
modal.afterClose.subscribe(result => console.log('[afterClose] The result is:', result)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createTask(element) { |
|
|
|
|
|
|
|
console.log(element) |
|
|
|
|
|
|
|
let taskIds = [] |
|
|
|
|
|
|
|
element.data.forEach(item => { |
|
|
|
|
|
|
|
item.data.forEach(i => { |
|
|
|
|
|
|
|
i.checkTime ? taskIds.push(i.id) : null |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
let params = { |
|
|
|
|
|
|
|
ids: taskIds, |
|
|
|
|
|
|
|
approvalStatus: '待检查' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.http.post('/api/PlanTasks/ApprovalMany', null, { params: params }).subscribe({ |
|
|
|
|
|
|
|
next: (data: any) => { |
|
|
|
|
|
|
|
this.message.create('success', '发布成功'); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
error: (err) => { |
|
|
|
|
|
|
|
this.message.create('warning', '发布失败'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|