Enhance Item Inspection and Outbound Functionality

- Added `apply_process_name` to the item inspection controller, allowing for better clarity in process identification by joining with the `process_mng` table.
- Updated the outbound controller to include additional delivery details, such as `delivery_destination_name` and `customer_name`, with fallback logic for improved data accuracy.
- Enhanced the query logic to ensure proper handling of delivery addresses and customer information, improving the overall data retrieval process.

(TASK: ERP-XXX)
This commit is contained in:
kjs
2026-05-22 09:59:20 +09:00
parent c8994b49fc
commit 9f9be20e34
28 changed files with 781 additions and 152 deletions

View File

@@ -15,6 +15,7 @@ export interface InspectionRowApi {
inspection_item_name: string | null;
inspection_method: string | null;
apply_process: string | null;
apply_process_name?: string | null;
classification: string | null;
pass_criteria: string | null;
upper_limit?: string | number | null;

View File

@@ -31,6 +31,12 @@ export interface OutboundItem {
destination_code: string | null;
delivery_destination: string | null;
delivery_address: string | null;
// 납품처명 (TASK:ERP-097): 목록 조회 시 출고/출하지시 체인에서 해석된 납품처명
delivery_destination_name?: string | null;
// 품목 규격 (TASK:ERP-098): 유리업종 가로/세로/두께 (item_info JOIN, 미입력 시 빈문자열)
width?: string | null;
height?: string | null;
thickness?: string | null;
created_date: string;
created_by: string | null;
}

View File

@@ -93,10 +93,16 @@ export interface GenerateScheduleResponse {
new_count: number;
kept_count: number;
deleted_count: number;
skipped_count?: number;
warning_count?: number;
};
schedules: ProductionPlan[];
deletedSchedules?: ProductionPlan[];
keptSchedules?: ProductionPlan[];
/** 스케줄 대상에서 제외된 품목 (수량 0 등) */
skipped?: { item_code: string; item_name: string; reason: string }[];
/** 납기일 미설정/초과 등 경고가 붙은 품목 */
warnings?: { item_code: string; item_name: string; messages: string[] }[];
}
// ─── API 함수 ───

View File

@@ -79,6 +79,7 @@ export interface ShipmentPlanListItem {
due_date: string;
order_qty: string;
shipped_qty: string;
delivery_destination_name?: string;
}
export interface ShipmentPlanListParams {