[as fr] 웹기안기에서 지자체는 SP, SF 탭을 볼수있는 권한이 SL에서 존재 한다.

This commit is contained in:
2026-10-21 16:24:54 +09:00
parent 6d9db4389d
commit 4f4f5112b5
@@ -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({
<div className="flex items-center gap-2">
<span className="text-sm font-semibold text-muted-foreground">부서별 문서 탭:</span>
{!isFinalApproverAfterMerger &&
!isLocalOrEnvUser &&
!isWideLocalOrEnvUser &&
(prgrsSttsComCd === "TE" || prgrsSttsComCd === "SL" || prgrsSttsComCd === "RK") && (
<>
<Button
@@ -772,15 +772,23 @@ function PwrkCnsltnDocMngDialog({
</Button>
</div>
<span className="text-xs text-muted-foreground">
{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