69 lines
1.7 KiB
TypeScript
69 lines
1.7 KiB
TypeScript
|
|
/**
|
||
|
|
* 수주등록 모달 컴포넌트
|
||
|
|
* 거래처 검색, 품목 선택, 수주 정보 입력을 한 번에 처리하는 모달
|
||
|
|
*/
|
||
|
|
|
||
|
|
import { ComponentDefinition, ComponentCategory } from "@/types/component";
|
||
|
|
|
||
|
|
export const OrderRegistrationModalDefinition: Omit<ComponentDefinition, "renderer" | "configPanel" | "component"> = {
|
||
|
|
id: "order-registration-modal",
|
||
|
|
name: "수주등록 모달",
|
||
|
|
category: ComponentCategory.ACTION,
|
||
|
|
webType: "button" as const,
|
||
|
|
description: "거래처, 품목을 선택하여 수주를 등록하는 모달",
|
||
|
|
icon: "FileText",
|
||
|
|
version: "1.0.0",
|
||
|
|
author: "WACE",
|
||
|
|
tags: ["수주", "주문", "영업", "모달"],
|
||
|
|
|
||
|
|
defaultSize: {
|
||
|
|
width: 200,
|
||
|
|
height: 40,
|
||
|
|
},
|
||
|
|
|
||
|
|
defaultConfig: {
|
||
|
|
buttonText: "수주 등록",
|
||
|
|
buttonVariant: "default",
|
||
|
|
buttonSize: "default",
|
||
|
|
},
|
||
|
|
|
||
|
|
defaultProps: {
|
||
|
|
style: {
|
||
|
|
width: "200px",
|
||
|
|
height: "40px",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
|
||
|
|
configSchema: {
|
||
|
|
buttonText: {
|
||
|
|
type: "string",
|
||
|
|
label: "버튼 텍스트",
|
||
|
|
defaultValue: "수주 등록",
|
||
|
|
},
|
||
|
|
buttonVariant: {
|
||
|
|
type: "select",
|
||
|
|
label: "버튼 스타일",
|
||
|
|
options: [
|
||
|
|
{ label: "기본", value: "default" },
|
||
|
|
{ label: "보조", value: "secondary" },
|
||
|
|
{ label: "외곽선", value: "outline" },
|
||
|
|
{ label: "고스트", value: "ghost" },
|
||
|
|
],
|
||
|
|
defaultValue: "default",
|
||
|
|
},
|
||
|
|
buttonSize: {
|
||
|
|
type: "select",
|
||
|
|
label: "버튼 크기",
|
||
|
|
options: [
|
||
|
|
{ label: "작게", value: "sm" },
|
||
|
|
{ label: "기본", value: "default" },
|
||
|
|
{ label: "크게", value: "lg" },
|
||
|
|
],
|
||
|
|
defaultValue: "default",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
export default OrderRegistrationModalDefinition;
|
||
|
|
|