From 4f4f5112b5def5c4d95b76b0d88444f01cd761ff Mon Sep 17 00:00:00 2001 From: jangwoong Date: Wed, 21 Oct 2026 16:24:54 +0900 Subject: [PATCH] =?UTF-8?q?[as=20fr]=20=EC=9B=B9=EA=B8=B0=EC=95=88?= =?UTF-8?q?=EA=B8=B0=EC=97=90=EC=84=9C=20=EC=A7=80=EC=9E=90=EC=B2=B4?= =?UTF-8?q?=EB=8A=94=20SP,=20SF=20=ED=83=AD=EC=9D=84=20=EB=B3=BC=EC=88=98?= =?UTF-8?q?=EC=9E=88=EB=8A=94=20=EA=B6=8C=ED=95=9C=EC=9D=B4=20SL=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=A1=B4=EC=9E=AC=20=ED=95=9C=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/pwrk-cnsltn-doc-mng-dialog.tsx | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/apps/as/src/pages/fnrs-cnsltn/ui/components/pwrk-cnsltn-doc-mng-dialog.tsx b/apps/as/src/pages/fnrs-cnsltn/ui/components/pwrk-cnsltn-doc-mng-dialog.tsx index 46ac4d478..0513f09ce 100644 --- a/apps/as/src/pages/fnrs-cnsltn/ui/components/pwrk-cnsltn-doc-mng-dialog.tsx +++ b/apps/as/src/pages/fnrs-cnsltn/ui/components/pwrk-cnsltn-doc-mng-dialog.tsx @@ -100,7 +100,7 @@ function resolveDefaultBranchSeCd({ return "MAIN"; } - // 0-1. 지자체(ROLE_USER05, ROLE_USER04), 환경청(ROLE_USER03) 사용자인 경우: 병렬 Join 결재 시 MAIN 탭만 호출 + // 0-1. 광역지자체(ROLE_USER04), 환경청(ROLE_USER03) 사용자인 경우: 병렬 Join 결재 시 MAIN 탭만 호출 if ( userRole === "ROLE_USER04" || userRole === "ROLE_USER03" @@ -295,7 +295,7 @@ function PwrkCnsltnDocMngDialog({ }, [elaprBranchList, isForkJoin, supplementDmndBranch]); const effectiveUserRole = userRole || userInfo?.dtlInstCd; - const isLocalOrEnvUser = + const isWideLocalOrEnvUser = effectiveUserRole === "ROLE_USER04" || effectiveUserRole === "ROLE_USER03"; @@ -732,7 +732,7 @@ function PwrkCnsltnDocMngDialog({
부서별 문서 탭: {!isFinalApproverAfterMerger && - !isLocalOrEnvUser && + !isWideLocalOrEnvUser && (prgrsSttsComCd === "TE" || prgrsSttsComCd === "SL" || prgrsSttsComCd === "RK") && ( <>
- {isLocalOrEnvUser - ? effectiveUserRole === "ROLE_USER05" - ? prgrsSttsComCd === "RB" - ? "지자체 담당자: 종합 실무협의서(MAIN) 조치결과 작성 모드 (저장 가능)" - : "지자체 담당자: 종합 실무협의서(MAIN) 열람 모드" - : effectiveUserRole === "ROLE_USER03" + {effectiveUserRole === "ROLE_USER05" + ? prgrsSttsComCd === "RB" + ? "지자체 담당자: 종합 실무협의서(MAIN) 조치결과 작성 모드 (저장 가능)" + : isForkJoin && supplementBranches.size > 0 + ? supplementBranches.has(currentBranchSeCd) + ? supplementBranches.size > 1 + ? `[보완 수정 모드] 관로·시설 부서 모두 보완요청 상태이며, ${currentBranchSeCd === "SP" ? "관로" : "시설"} 초안을 수정 및 저장할 수 있습니다.` + : `[보완 수정 모드] ${supplementBranches.has("SP") ? "관로" : "시설"} 초안만 수정 및 저장 가능합니다.` + : `[읽기 전용 모드] ${currentBranchSeCd === "MAIN" ? "종합본" : currentBranchSeCd === "SP" ? "관로 초안" : "시설 초안"}은 보완 비대상으로 저장 불가합니다.` + : prgrsSttsComCd === "SL" + ? `지자체 담당자: ${currentBranchSeCd === "MAIN" ? "종합본 열람 전용" : `${currentBranchSeCd === "SP" ? "관로" : "시설"} 초안 보완 수정 모드 (저장 가능)`}` + : "지자체 사용자: 문서 열람 모드" + : isWideLocalOrEnvUser + ? effectiveUserRole === "ROLE_USER03" ? "환경청 담당자: 종합 실무협의서(MAIN) 열람 모드" - : "문서 열람 모드" - : isFinalApproverAfterMerger + : "광역지자체 담당자: 종합 실무협의서(MAIN) 열람 모드" + : isFinalApproverAfterMerger ? "최종 승인자: MAIN 종합 실무협의서 열람 모드" : isMerger || effectiveBranchSeCd === "TOTAL_AGG" ? isMergerApproved