feat(FE-316): Add filter modal and query params for Uniformity

This commit is contained in:
rstubryan
2025-12-30 10:11:51 +07:00
parent 4e5f9c710c
commit 02dc624036
2 changed files with 280 additions and 6 deletions
+19 -2
View File
@@ -17,8 +17,25 @@ export class UniformityApiService extends BaseApiService<
super(basePath);
}
async getUniformity(): Promise<BaseApiResponse<Uniformity> | undefined> {
return await this.customRequest<BaseApiResponse<Uniformity>>('');
async getUniformity(
location_id?: number,
project_flock_id?: number,
kandang_id?: number,
project_flock_kandang_id?: number,
start_date?: string,
end_date?: string
): Promise<BaseApiResponse<Uniformity> | undefined> {
return await this.customRequest<BaseApiResponse<Uniformity>>('', {
method: 'GET',
params: {
location_id: location_id,
project_flock_id: project_flock_id,
kandang_id: kandang_id,
project_flock_kandang_id: project_flock_kandang_id,
start_date: start_date,
end_date: end_date,
},
});
}
async getUniformityDetail(