9decf13068
- Added shipping plan routes and controller to handle aggregate and batch save operations. - Introduced a new shipping plan editor component for bulk registration of shipping plans based on selected orders. - Enhanced API client functions for fetching aggregated shipping plan data and saving plans in bulk. - Updated the registry to include the new shipping plan editor component, improving the overall shipping management workflow. These changes aim to streamline the shipping plan process, allowing for efficient management and registration of shipping plans in the application.
28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
"use client";
|
|
|
|
import { createComponentDefinition } from "../../utils/createComponentDefinition";
|
|
import { ComponentCategory } from "@/types/component";
|
|
import { ShippingPlanEditorWrapper } from "./ShippingPlanEditorComponent";
|
|
import { ShippingPlanEditorConfigPanel } from "./ShippingPlanEditorConfigPanel";
|
|
|
|
export const V2ShippingPlanEditorDefinition = createComponentDefinition({
|
|
id: "v2-shipping-plan-editor",
|
|
name: "출하계획 동시등록",
|
|
nameEng: "Shipping Plan Editor",
|
|
description: "수주 선택 후 품목별 그룹핑하여 출하계획을 일괄 등록하는 컴포넌트",
|
|
category: ComponentCategory.DISPLAY,
|
|
webType: "text",
|
|
component: ShippingPlanEditorWrapper,
|
|
configPanel: ShippingPlanEditorConfigPanel,
|
|
defaultConfig: {
|
|
title: "출하계획 등록",
|
|
},
|
|
defaultSize: { width: 900, height: 600 },
|
|
icon: "Truck",
|
|
tags: ["출하", "계획", "수주", "일괄등록", "v2"],
|
|
version: "1.0.0",
|
|
author: "개발팀",
|
|
});
|
|
|
|
export type { ShippingPlanEditorConfig, ItemGroup, PlanDetailRow } from "./types";
|