feat: implement production plan management functionality

- Added production plan management routes and controller to handle various operations including order summary retrieval, stock shortage checks, and CRUD operations for production plans.
- Introduced service layer for production plan management, encapsulating business logic for handling production-related data.
- Created API client for production plan management, enabling frontend interaction with the new backend endpoints.
- Enhanced button actions to support API calls for production scheduling and management tasks.

These changes aim to improve the management of production plans, enhancing usability and functionality within the ERP system.

Made-with: Cursor
This commit is contained in:
kjs
2026-03-16 09:28:22 +09:00
parent 28b7f196e0
commit 17a5d2ff9b
8 changed files with 1197 additions and 2 deletions

View File

@@ -124,10 +124,16 @@ export function useTimelineData(
sourceKeys: currentSourceKeys,
});
const searchParams: Record<string, any> = {};
if (!isScheduleMng && config.staticFilters) {
Object.assign(searchParams, config.staticFilters);
}
const response = await apiClient.post(`/table-management/tables/${tableName}/data`, {
page: 1,
size: 10000,
autoFilter: true,
...(Object.keys(searchParams).length > 0 ? { search: searchParams } : {}),
});
const responseData = response.data?.data?.data || response.data?.data || [];
@@ -195,7 +201,8 @@ export function useTimelineData(
setIsLoading(false);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [tableName, externalSchedules, fieldMappingKey, config.scheduleType]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [tableName, externalSchedules, fieldMappingKey, config.scheduleType, JSON.stringify(config.staticFilters)]);
// 리소스 데이터 로드
const fetchResources = useCallback(async () => {