+ {/* 헤더 */}
+
+
+
+ DEV MODE
+
+ {detectedPage && (
+
+ 현재: {detectedPage.label}
+
+ )}
+ {hasFlowData && (
+
+ {flowData.quoteId && `견적#${flowData.quoteId}`}
+ {flowData.orderId && ` → 수주#${flowData.orderId}`}
+ {flowData.workOrderId && ` → 작업#${flowData.workOrderId}`}
+
+ )}
+
+
+ {hasFlowData && (
+
+ )}
+
+
+
+
+
+ {/* 버튼 영역 */}
+ {isExpanded && (
+
+ {FLOW_STEPS.map((step, index) => {
+ const Icon = step.icon;
+ const isActive = activePage === step.type;
+ const isRegistered = hasRegisteredForm(step.type);
+ const isCurrentLoading = isLoading === step.type;
+
+ // 완료 버튼은 상세 페이지에서만 활성화
+ if (step.type === 'workOrderComplete' && !isActive) {
+ return (
+
+ {index > 0 && →}
+
+
+ );
+ }
+
+ return (
+
+ {index > 0 && →}
+
+
+ );
+ })}
+
+ )}
+
+ {/* 안내 메시지 */}
+ {isExpanded && !activePage && (
+
+
+ 견적/수주/작업지시/출하 페이지에서 활성화됩니다
+
+
+ )}
+