31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
|
|
import { ComponentCategory } from "@/types/component";
|
||
|
|
import { createComponentDefinition } from "../../utils/createComponentDefinition";
|
||
|
|
import { BomItemEditorComponent } from "./BomItemEditorComponent";
|
||
|
|
|
||
|
|
export const V2BomItemEditorDefinition = createComponentDefinition({
|
||
|
|
id: "v2-bom-item-editor",
|
||
|
|
name: "BOM 하위품목 편집기",
|
||
|
|
nameEng: "BOM Item Editor",
|
||
|
|
description: "BOM 하위 품목을 트리 구조로 추가/편집/삭제하는 컴포넌트",
|
||
|
|
category: ComponentCategory.V2,
|
||
|
|
webType: "text",
|
||
|
|
component: BomItemEditorComponent,
|
||
|
|
defaultConfig: {
|
||
|
|
detailTable: "bom_detail",
|
||
|
|
sourceTable: "item_info",
|
||
|
|
foreignKey: "bom_id",
|
||
|
|
parentKey: "parent_detail_id",
|
||
|
|
itemCodeField: "item_number",
|
||
|
|
itemNameField: "item_name",
|
||
|
|
itemTypeField: "type",
|
||
|
|
itemUnitField: "unit",
|
||
|
|
},
|
||
|
|
defaultSize: { width: 900, height: 400 },
|
||
|
|
icon: "ListTree",
|
||
|
|
tags: ["BOM", "트리", "편집", "하위품목", "제조"],
|
||
|
|
version: "1.0.0",
|
||
|
|
author: "개발팀",
|
||
|
|
});
|
||
|
|
|
||
|
|
export default V2BomItemEditorDefinition;
|