mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 06:45:46 +00:00
feat(FE): add master data production standard, slicing form and index table
This commit is contained in:
@@ -0,0 +1,294 @@
|
||||
[
|
||||
{
|
||||
"id": 3,
|
||||
"name": "Standard Growing 2024",
|
||||
"project_category": "GROWING",
|
||||
"created_at": "Fri May 10 2024 19:22:41 GMT+0700 (Western Indonesia Time)",
|
||||
"updated_at": "2025-12-26T23:13:21Z",
|
||||
"created_user": {
|
||||
"id": 1,
|
||||
"name": "Super Admin",
|
||||
"email": "superadmin@mbugroup.id"
|
||||
},
|
||||
"details": [
|
||||
{
|
||||
"week": 13,
|
||||
"production_standard_uniformity_details": {
|
||||
"target_mean_bw": 1608,
|
||||
"max_depletion": 2.217125905431294,
|
||||
"min_uniformity": 82.53307938674605,
|
||||
"max_cv": 10.755001233777175,
|
||||
"week": 10,
|
||||
"feed_intake": 106
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Standard Laying 2024",
|
||||
"project_category": "LAYING",
|
||||
"created_at": "Thu Jan 18 2024 05:55:37 GMT+0700 (Western Indonesia Time)",
|
||||
"updated_at": "2025-12-26T23:13:21Z",
|
||||
"created_user": {
|
||||
"id": 1,
|
||||
"name": "Super Admin",
|
||||
"email": "superadmin@mbugroup.id"
|
||||
},
|
||||
"details": [
|
||||
{
|
||||
"week": 7,
|
||||
"production_standard_details": {
|
||||
"target_hen_day_production": 88.75664879714013,
|
||||
"target_hen_house_production": 88.14547241912292,
|
||||
"target_egg_weight": 56.500738261325466,
|
||||
"target_egg_mass": 51.3608296108157
|
||||
},
|
||||
"standard_growth_details": {
|
||||
"target_mean_bw": 1630,
|
||||
"max_depletion": 1.4984809075731345,
|
||||
"min_uniformity": 89.58032440497733,
|
||||
"max_cv": 10.088686692512729,
|
||||
"week": 2,
|
||||
"feed_intake": 109
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"name": "Standard Laying 2024",
|
||||
"project_category": "LAYING",
|
||||
"created_at": "Mon Mar 04 2024 08:29:01 GMT+0700 (Western Indonesia Time)",
|
||||
"updated_at": "2025-12-26T23:13:21Z",
|
||||
"created_user": {
|
||||
"id": 1,
|
||||
"name": "Super Admin",
|
||||
"email": "superadmin@mbugroup.id"
|
||||
},
|
||||
"details": [
|
||||
{
|
||||
"week": 5,
|
||||
"production_standard_details": {
|
||||
"target_hen_day_production": 96.61629851755295,
|
||||
"target_hen_house_production": 92.28797293699245,
|
||||
"target_egg_weight": 56.58098085770421,
|
||||
"target_egg_mass": 52.43691607207049
|
||||
},
|
||||
"production_standard_uniformity_details": {
|
||||
"target_mean_bw": 1879,
|
||||
"max_depletion": 2.627489091697176,
|
||||
"min_uniformity": 82.66289615405532,
|
||||
"max_cv": 10.820852039399298,
|
||||
"week": 20,
|
||||
"feed_intake": 102
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"name": "Standard Laying 2024",
|
||||
"project_category": "LAYING",
|
||||
"created_at": "Wed Aug 21 2024 16:53:00 GMT+0700 (Western Indonesia Time)",
|
||||
"updated_at": "2025-12-26T23:13:21Z",
|
||||
"created_user": {
|
||||
"id": 1,
|
||||
"name": "Super Admin",
|
||||
"email": "superadmin@mbugroup.id"
|
||||
},
|
||||
"details": [
|
||||
{
|
||||
"week": 19,
|
||||
"production_standard_details": {
|
||||
"target_hen_day_production": 90.64987149673148,
|
||||
"target_hen_house_production": 84.72381158749832,
|
||||
"target_egg_weight": 52.66407930502588,
|
||||
"target_egg_mass": 48.67508874158
|
||||
},
|
||||
"production_standard_uniformity_details": {
|
||||
"target_mean_bw": 1640,
|
||||
"max_depletion": 1.0327075188137618,
|
||||
"min_uniformity": 81.06885977450052,
|
||||
"max_cv": 10.554487690853291,
|
||||
"week": 17,
|
||||
"feed_intake": 103
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"name": "Standard Laying 2025",
|
||||
"project_category": "LAYING",
|
||||
"created_at": "Wed Jun 19 2024 22:53:30 GMT+0700 (Western Indonesia Time)",
|
||||
"updated_at": "2025-12-26T23:13:21Z",
|
||||
"created_user": {
|
||||
"id": 1,
|
||||
"name": "Super Admin",
|
||||
"email": "superadmin@mbugroup.id"
|
||||
},
|
||||
"details": [
|
||||
{
|
||||
"week": 18,
|
||||
"production_standard_details": {
|
||||
"target_hen_day_production": 93.92688146007806,
|
||||
"target_hen_house_production": 88.99021279347687,
|
||||
"target_egg_weight": 52.34548967695446,
|
||||
"target_egg_mass": 47.022424468842786
|
||||
},
|
||||
"production_standard_uniformity_details": {
|
||||
"target_mean_bw": 1613,
|
||||
"max_depletion": 1.4131114163932998,
|
||||
"min_uniformity": 87.70472314168066,
|
||||
"max_cv": 10.854404697694157,
|
||||
"week": 19,
|
||||
"feed_intake": 113
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "Standard Growing 2025",
|
||||
"project_category": "GROWING",
|
||||
"created_at": "Fri Aug 02 2024 20:01:03 GMT+0700 (Western Indonesia Time)",
|
||||
"updated_at": "2025-12-26T23:13:21Z",
|
||||
"created_user": {
|
||||
"id": 1,
|
||||
"name": "Super Admin",
|
||||
"email": "superadmin@mbugroup.id"
|
||||
},
|
||||
"details": [
|
||||
{
|
||||
"week": 10,
|
||||
"production_standard_uniformity_details": {
|
||||
"target_mean_bw": 1679,
|
||||
"max_depletion": 1.6915361117048733,
|
||||
"min_uniformity": 86.90679412785661,
|
||||
"max_cv": 9.332617207000094,
|
||||
"week": 17,
|
||||
"feed_intake": 103
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "Standard Laying 2024",
|
||||
"project_category": "LAYING",
|
||||
"created_at": "Wed Jun 12 2024 11:17:31 GMT+0700 (Western Indonesia Time)",
|
||||
"updated_at": "2025-12-26T23:13:21Z",
|
||||
"created_user": {
|
||||
"id": 1,
|
||||
"name": "Super Admin",
|
||||
"email": "superadmin@mbugroup.id"
|
||||
},
|
||||
"details": [
|
||||
{
|
||||
"week": 17,
|
||||
"production_standard_details": {
|
||||
"target_hen_day_production": 80.64302567936814,
|
||||
"target_hen_house_production": 89.82086172466285,
|
||||
"target_egg_weight": 55.226688911717915,
|
||||
"target_egg_mass": 53.11072600271201
|
||||
},
|
||||
"production_standard_uniformity_details": {
|
||||
"target_mean_bw": 1874,
|
||||
"max_depletion": 2.438323895989795,
|
||||
"min_uniformity": 84.30289784580617,
|
||||
"max_cv": 8.222592209557122,
|
||||
"week": 12,
|
||||
"feed_intake": 105
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"name": "Standard Laying 2025",
|
||||
"project_category": "LAYING",
|
||||
"created_at": "Mon Mar 18 2024 10:48:49 GMT+0700 (Western Indonesia Time)",
|
||||
"updated_at": "2025-12-26T23:13:21Z",
|
||||
"created_user": {
|
||||
"id": 1,
|
||||
"name": "Super Admin",
|
||||
"email": "superadmin@mbugroup.id"
|
||||
},
|
||||
"details": [
|
||||
{
|
||||
"week": 13,
|
||||
"production_standard_details": {
|
||||
"target_hen_day_production": 82.2346989800578,
|
||||
"target_hen_house_production": 90.75391628121226,
|
||||
"target_egg_weight": 57.499497168597166,
|
||||
"target_egg_mass": 47.20514521984387
|
||||
},
|
||||
"production_standard_uniformity_details": {
|
||||
"target_mean_bw": 1831,
|
||||
"max_depletion": 1.074492532699157,
|
||||
"min_uniformity": 85.74444671505677,
|
||||
"max_cv": 10.858199896316137,
|
||||
"week": 7,
|
||||
"feed_intake": 112
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"name": "Standard Laying 2024",
|
||||
"project_category": "LAYING",
|
||||
"created_at": "Sat Mar 30 2024 14:29:22 GMT+0700 (Western Indonesia Time)",
|
||||
"updated_at": "2025-12-26T23:13:21Z",
|
||||
"created_user": {
|
||||
"id": 1,
|
||||
"name": "Super Admin",
|
||||
"email": "superadmin@mbugroup.id"
|
||||
},
|
||||
"details": [
|
||||
{
|
||||
"week": 2,
|
||||
"production_standard_details": {
|
||||
"target_hen_day_production": 90.49925722287992,
|
||||
"target_hen_house_production": 89.55923007437376,
|
||||
"target_egg_weight": 58.22187327861563,
|
||||
"target_egg_mass": 54.45919757347778
|
||||
},
|
||||
"production_standard_uniformity_details": {
|
||||
"target_mean_bw": 1809,
|
||||
"max_depletion": 2.2870196905499673,
|
||||
"min_uniformity": 83.61968975899043,
|
||||
"max_cv": 10.012889742382296,
|
||||
"week": 6,
|
||||
"feed_intake": 115
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"name": "Standard Growing 2024",
|
||||
"project_category": "GROWING",
|
||||
"created_at": "Fri Jan 19 2024 06:05:53 GMT+0700 (Western Indonesia Time)",
|
||||
"updated_at": "2025-12-26T23:13:21Z",
|
||||
"created_user": {
|
||||
"id": 1,
|
||||
"name": "Super Admin",
|
||||
"email": "superadmin@mbugroup.id"
|
||||
},
|
||||
"details": [
|
||||
{
|
||||
"week": 17,
|
||||
"production_standard_uniformity_details": {
|
||||
"target_mean_bw": 1803,
|
||||
"max_depletion": 2.3862272943774725,
|
||||
"min_uniformity": 88.37012562585544,
|
||||
"max_cv": 9.948053043223062,
|
||||
"week": 16,
|
||||
"feed_intake": 114
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* Dummy data for ProductionStandard[]
|
||||
* Generated from: master-data-standar-produksi.json
|
||||
*
|
||||
* This file is auto-generated. Do not edit manually.
|
||||
*/
|
||||
|
||||
import { ProductionStandard } from '../../types/api/master-data/production-standard';
|
||||
import { BaseApiResponse } from '@/types/api/api-general';
|
||||
import dummyData from './production-standard.dummy.json';
|
||||
|
||||
/**
|
||||
* Get dummy ProductionStandard[] data
|
||||
* @returns Promise with BaseApiResponse containing ProductionStandard[]
|
||||
*/
|
||||
export async function getDummyAllFetcher(): Promise<
|
||||
BaseApiResponse<ProductionStandard[]>
|
||||
> {
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve({
|
||||
code: 200,
|
||||
status: 'success',
|
||||
message: 'Data retrieved successfully',
|
||||
data: dummyData as unknown as ProductionStandard[],
|
||||
});
|
||||
}, 500);
|
||||
});
|
||||
}
|
||||
|
||||
export async function getDummySingleFetcher(
|
||||
id: number
|
||||
): Promise<BaseApiResponse<ProductionStandard>> {
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve({
|
||||
code: 200,
|
||||
status: 'success',
|
||||
message: 'Data retrieved successfully',
|
||||
data: dummyData.find(
|
||||
(item) => item.id === id
|
||||
) as unknown as ProductionStandard,
|
||||
});
|
||||
}, 500);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user