summaryrefslogtreecommitdiff
path: root/components/vendor-regular-registrations/document-status-dialog.tsx
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-09-01 09:09:15 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-09-01 09:09:15 +0000
commit089c70ffbe2303ab5e2611a152ddd3aed0e6e718 (patch)
tree1ce91012dba99495dde5eb8b414b2732197bfec4 /components/vendor-regular-registrations/document-status-dialog.tsx
parent69648a25c2ac62bbc3354b3a0e41abc932273b7c (diff)
(최겸) 구매 pq, 기본정보 수정
Diffstat (limited to 'components/vendor-regular-registrations/document-status-dialog.tsx')
-rw-r--r--components/vendor-regular-registrations/document-status-dialog.tsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/vendor-regular-registrations/document-status-dialog.tsx b/components/vendor-regular-registrations/document-status-dialog.tsx
index 848e4977..cfdd03fd 100644
--- a/components/vendor-regular-registrations/document-status-dialog.tsx
+++ b/components/vendor-regular-registrations/document-status-dialog.tsx
@@ -21,6 +21,7 @@ interface DocumentStatusDialogProps {
onOpenChange: (open: boolean) => void;
registration: VendorRegularRegistration | null;
onRefresh?: () => void;
+ isVendorUser?: boolean;
}
const StatusIcon = ({ status }: { status: string | boolean }) => {
@@ -68,6 +69,7 @@ export function DocumentStatusDialog({
onOpenChange,
registration,
onRefresh,
+ isVendorUser = false,
}: DocumentStatusDialogProps) {
if (!registration) return null;
@@ -82,6 +84,11 @@ export function DocumentStatusDialog({
registrationKeys: Object.keys(registration),
fullRegistration: registration
});
+ //isvendoruser인 경우는 실사 결과 파일 다운로드 불가능
+ if (isVendorUser && docKey === "auditResult") {
+ toast.error("실사 결과 파일은 다운로드할 수 없습니다.");
+ return;
+ }
// documentFiles가 없는 경우 처리
if (!registration.documentFiles) {