Files
sam-react-prod/src/components/quotes/quoteConfig.ts

97 lines
2.6 KiB
TypeScript
Raw Normal View History

import { FileText } from 'lucide-react';
import type { DetailConfig } from '@/components/templates/IntegratedDetailTemplate/types';
/**
* Config (V2 )
*
* 참고: config는 /
* QuoteRegistrationV2의 renderContent에서
* ( , QuoteFooterBar )
*
* :
* - view/edit/create
* - (//) - QuoteFooterBar에서
* - IntegratedDetailTemplate이
*/
export const quoteConfig: DetailConfig = {
title: '견적',
description: '견적 정보를 조회하고 관리합니다',
icon: FileText,
basePath: '/sales/quote-management',
fields: [], // renderView/renderForm 사용으로 필드 정의 불필요
gridColumns: 2,
actions: {
showBack: false, // QuoteFooterBar에서 처리
showDelete: false, // QuoteFooterBar에서 처리
showEdit: false, // QuoteFooterBar에서 처리
showSave: false, // QuoteFooterBar에서 처리
},
};
/**
* Config
*/
export const quoteCreateConfig: DetailConfig = {
title: '견적',
description: '새 견적을 등록합니다',
icon: FileText,
basePath: '/sales/quote-management',
fields: [],
actions: {
showBack: true,
showSave: false, // QuoteFooterBar에서 처리
backLabel: '목록',
},
};
/**
* Config
*/
export const quoteEditConfig: DetailConfig = {
title: '견적',
description: '견적 정보를 수정합니다',
icon: FileText,
basePath: '/sales/quote-management',
fields: [],
actions: {
showBack: true,
showSave: false, // QuoteFooterBar에서 처리
backLabel: '목록',
},
};
/**
* Config ( QuoteRegistration용)
* - / IntegratedDetailTemplate에서
*/
export const quoteRegistrationCreateConfig: DetailConfig = {
title: '견적',
description: '새 견적을 등록합니다',
icon: FileText,
basePath: '/sales/quote-management',
fields: [],
actions: {
showBack: true,
showSave: true,
submitLabel: '저장',
backLabel: '취소',
},
};
/**
* Config ( QuoteRegistration용)
*/
export const quoteRegistrationEditConfig: DetailConfig = {
title: '견적',
description: '견적 정보를 수정합니다',
icon: FileText,
basePath: '/sales/quote-management',
fields: [],
actions: {
showBack: true,
showSave: true,
submitLabel: '저장',
backLabel: '취소',
},
};