- 출고증/납품확인서 목업 데이터 → API 실데이터 전환 - 출고 등록(수동) 기능 제거 (자동생성만 유지) - 출고로트/수주로트 분리 표시, 로트번호 폴백 처리 - 출고 목록 카드뷰 불일치 수정
55 lines
1.6 KiB
TypeScript
55 lines
1.6 KiB
TypeScript
'use client';
|
|
|
|
import { Truck } from 'lucide-react';
|
|
import type { DetailConfig } from '@/components/templates/IntegratedDetailTemplate/types';
|
|
|
|
/**
|
|
* 출고관리 상세 페이지 Config
|
|
*
|
|
* 참고: 이 config는 타이틀/버튼 영역만 정의
|
|
* 폼 내용은 기존 ShipmentDetail의 renderView에서 처리
|
|
* (문서 미리보기 모달, 상태에 따른 수정/삭제 가능 여부 등 특수 기능 유지)
|
|
*
|
|
* 특이사항:
|
|
* - view 모드만 지원 (수정은 별도 /edit 페이지로 이동)
|
|
* - 삭제 기능 있음 (scheduled, ready 상태에서만)
|
|
* - 문서 미리보기: 출고증, 거래명세서, 납품확인서
|
|
*/
|
|
export const shipmentConfig: DetailConfig = {
|
|
title: '출고 상세',
|
|
description: '출고 정보를 조회하고 관리합니다',
|
|
icon: Truck,
|
|
basePath: '/outbound/shipments',
|
|
fields: [], // renderView 사용으로 필드 정의 불필요
|
|
gridColumns: 2,
|
|
actions: {
|
|
showBack: true,
|
|
showDelete: true, // 상태에 따라 동적으로 처리
|
|
showEdit: true,
|
|
backLabel: '목록',
|
|
deleteLabel: '삭제',
|
|
editLabel: '수정',
|
|
deleteConfirmMessage: {
|
|
title: '출고 정보 삭제',
|
|
description: '이 출고 정보를 삭제하시겠습니까? 이 작업은 되돌릴 수 없습니다.',
|
|
},
|
|
},
|
|
};
|
|
|
|
/**
|
|
* 출고 수정 페이지 Config
|
|
*/
|
|
export const shipmentEditConfig: DetailConfig = {
|
|
title: '출고',
|
|
description: '출고 정보를 수정합니다',
|
|
icon: Truck,
|
|
basePath: '/outbound/shipments',
|
|
fields: [],
|
|
actions: {
|
|
showBack: true,
|
|
showEdit: false,
|
|
showDelete: false,
|
|
showSave: true,
|
|
submitLabel: '저장',
|
|
},
|
|
}; |