mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 13:55:45 +00:00
feat(FE-92-94): Slicing UI detail chickin & refactor number input chickin form
This commit is contained in:
+9
-2
@@ -1,4 +1,4 @@
|
||||
import { BaseMetadata } from "@/types/api/api-general";
|
||||
import { BaseApproval, BaseMetadata } from "@/types/api/api-general";
|
||||
import { ProjectFlockKandang } from "@/types/api/production/project-flock-kandang";
|
||||
|
||||
export type BaseChickin = {
|
||||
@@ -7,6 +7,7 @@ export type BaseChickin = {
|
||||
quantity?: number;
|
||||
note?: string;
|
||||
project_flock_kandang?: ProjectFlockKandang;
|
||||
approval: BaseApproval;
|
||||
}
|
||||
|
||||
export type Chickin = BaseMetadata & BaseChickin;
|
||||
@@ -18,5 +19,11 @@ export type CreateChickinPayload = {
|
||||
quantity?: number;
|
||||
}
|
||||
|
||||
export type UpdateChickinPayload = CreateChickinPayload;
|
||||
export type UpdateChickinPayload = CreateChickinPayload & {
|
||||
id: number;
|
||||
};
|
||||
|
||||
export type ChickinApprovalPayload = {
|
||||
action: 'APPROVED' | 'REJECTED';
|
||||
approvable_ids: number[];
|
||||
};
|
||||
Reference in New Issue
Block a user