feat(FE-85-87-88): slicing ui and integrate api for search and edit

This commit is contained in:
randy-ar
2025-10-18 10:46:47 +07:00
parent da92874a40
commit a573551110
18 changed files with 281 additions and 112 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { Product } from '@/types/api/master-data/product';
import { Warehouse } from '../master-data/warehouse';
import { Warehouse } from '@/types/api/master-data/warehouse';
export type BaseInventoryAdjustment = {
id: number;
+1 -1
View File
@@ -1,4 +1,4 @@
import { BaseMetadata } from "../api-general";
import { BaseMetadata } from "@/types/api/api-general";
export type BaseFlock = {
id: number;
+1
View File
@@ -5,6 +5,7 @@ import { BaseUser } from '@/types/api/user';
export type BaseKandang = {
id: number;
name: string;
status: string;
location: BaseLocation;
pic: BaseUser;
};
+12 -7
View File
@@ -1,9 +1,9 @@
import { Area } from "../master-data/area";
import { Fcr } from "../master-data/fcr";
import { Flock } from "../master-data/flock";
import { Kandang } from "../master-data/kandang";
import { Location } from "../master-data/location";
import { ProductCategory } from "../master-data/product-category";
import { Area } from "@/types/api/master-data/area";
import { Fcr } from "@/types/api/master-data/fcr";
import { Flock } from "@/types/api/master-data/flock";
import { Kandang } from "@/types/api/master-data/kandang";
import { Location } from "@/types/api/master-data/location";
import { ProductCategory } from "@/types/api/master-data/product-category";
export type BaseProjectFlock = {
name: string;
@@ -22,10 +22,15 @@ export type BaseProjectFlock = {
kandangs: Kandang[];
}
export type PeriodFlock = {
flock: Flock;
next_period: number;
}
export type ProjectFlock = BaseMetadata & BaseProjectFlock
export type CreateProjectFlockPayload = {
name: string;
flock_id: number;
area_id: number;
product_category_id: number;