mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat: create Daily Checklist Report type
This commit is contained in:
@@ -2,6 +2,9 @@ import { BaseMetadata } from '@/types/api/api-general';
|
||||
import { BaseKandang } from '@/types/api/master-data/kandang';
|
||||
import { Phase } from '@/types/api/daily-checklist/phase';
|
||||
import { PhaseActivity } from '@/types/api/daily-checklist/phase-activity';
|
||||
import { BaseArea } from '@/types/api/master-data/area';
|
||||
import { BaseLocation } from '@/types/api/master-data/location';
|
||||
import { BaseEmployee } from '@/types/api/master-data/employee';
|
||||
|
||||
export type BaseDailyChecklist = {
|
||||
id: number;
|
||||
@@ -80,3 +83,23 @@ export type DailyChecklistSummary = {
|
||||
performance_overview: PerformanceOverviewItem[];
|
||||
tracking_abk: TrackingAbkItem[];
|
||||
};
|
||||
|
||||
export type DailyChecklistReport = {
|
||||
area: Pick<BaseArea, 'id' | 'name'>;
|
||||
farm: Pick<BaseLocation, 'id' | 'name'>;
|
||||
kandang: Pick<BaseKandang, 'id' | 'name'>;
|
||||
abk: Pick<BaseEmployee, 'id' | 'name'>;
|
||||
phase: string;
|
||||
daily_activities: Record<string, number>;
|
||||
summary: {
|
||||
total_checklist: number;
|
||||
jumlah_hari_efektif: number;
|
||||
abk_percentage: number;
|
||||
kandang_percentage: number;
|
||||
kategori: {
|
||||
kurang: number;
|
||||
cukup: number;
|
||||
baik: number;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user