diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/[lng]/partners/pq_new/[id]/page.tsx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app/[lng]/partners/pq_new/[id]/page.tsx b/app/[lng]/partners/pq_new/[id]/page.tsx index 3c2858f2..5a8313cc 100644 --- a/app/[lng]/partners/pq_new/[id]/page.tsx +++ b/app/[lng]/partners/pq_new/[id]/page.tsx @@ -103,7 +103,7 @@ export default async function PQEditPage(props: PQEditPageProps) { const pqData = await getPQDataByVendorId(idAsNumber, pqSubmission.projectId || undefined); // 상태에 따른 읽기 전용 모드 결정 - const isReadOnly = ["SUBMITTED", "APPROVED"].includes(pqSubmission.status); + const isReadOnly = [ "APPROVED"].includes(pqSubmission.status); const statusText = pqSubmission.status === "SUBMITTED" ? "제출됨" : pqSubmission.status === "APPROVED" ? "승인됨" : pqSubmission.status === "REJECTED" ? "거부됨" : "작성 중"; @@ -140,7 +140,7 @@ export default async function PQEditPage(props: PQEditPageProps) { </h2> <p className="text-muted-foreground"> 상태: {statusText} - {pqSubmission.rejectReason && ( + {pqSubmission.status === "REJECTED" && pqSubmission.rejectReason && ( <span className="text-destructive ml-2"> (거부 사유: {pqSubmission.rejectReason}) </span> @@ -151,16 +151,15 @@ export default async function PQEditPage(props: PQEditPageProps) { </div> {/* 읽기 전용 모드 알림 */} - {isReadOnly && ( + {/* {isReadOnly && ( <Alert> <AlertDescription> - 이 PQ는 이미 제출되었습니다. 내용을 확인만 할 수 있습니다. + 이 PQ는 현재 제출된 상태입니다. SHI 코멘트를 확인 후 재제출이 가능합니다. </AlertDescription> </Alert> - )} + )} */} {/* PQ 입력 컴포넌트 */} - <div className={isReadOnly ? "opacity-60" : ""}> <PQInputTabs data={pqData} vendorId={idAsNumber} @@ -173,7 +172,6 @@ export default async function PQEditPage(props: PQEditPageProps) { type: pqSubmission.type }} /> - </div> </Shell> ); } catch (error) { |
