- Removed the "정보조회" option from the default configuration. - Refactored the ProcessWorkStandardComponent to handle work item selection independently for each phase. - Updated the WorkPhaseSection to pass phase-specific parameters for work item selection and detail management. - Enhanced the useProcessWorkStandard hook to maintain separate states for selected work items and details by phase, improving data handling and user experience.
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
/**
|
|
* 공정 작업기준 기본 설정
|
|
*/
|
|
|
|
import { ProcessWorkStandardConfig } from "./types";
|
|
|
|
export const defaultConfig: ProcessWorkStandardConfig = {
|
|
dataSource: {
|
|
itemTable: "item_info",
|
|
itemNameColumn: "item_name",
|
|
itemCodeColumn: "item_number",
|
|
routingVersionTable: "item_routing_version",
|
|
routingFkColumn: "item_code",
|
|
routingVersionNameColumn: "version_name",
|
|
routingDetailTable: "item_routing_detail",
|
|
processTable: "process_mng",
|
|
processNameColumn: "process_name",
|
|
processCodeColumn: "process_code",
|
|
},
|
|
phases: [
|
|
{ key: "PRE", label: "작업 전 (Pre-Work)", sortOrder: 1 },
|
|
{ key: "IN", label: "작업 중 (In-Work)", sortOrder: 2 },
|
|
{ key: "POST", label: "작업 후 (Post-Work)", sortOrder: 3 },
|
|
],
|
|
detailTypes: [
|
|
{ value: "check", label: "체크리스트" },
|
|
{ value: "inspect", label: "검사항목" },
|
|
{ value: "procedure", label: "작업절차" },
|
|
{ value: "input", label: "직접입력" },
|
|
],
|
|
splitRatio: 30,
|
|
leftPanelTitle: "품목 및 공정 선택",
|
|
readonly: false,
|
|
};
|