Files

50 lines
1.3 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
interface FileInfoProps {
fileInfo: {
fileName: string;
contractNumber: string;
fileSize?: string;
fileFormat?: string;
pageCount?: number;
uploadTime?: string;
uploadUser?: string;
auditStatus?: number;
path?: string;
previousRoute?: string;
};
onConfirmResults: () => void;
}
export function FileInfo({ fileInfo }: FileInfoProps) {
// const handleExportReport = () => {
// alert('导出评查报告功能');
// };
return (
<div className="mb-4 file-info-header">
<div className="flex justify-between items-center">
<div>
<h2 className="text-xl font-medium max-w-xl">
{fileInfo.fileName}
</h2>
<span className="text-xs text-gray-500">
{/* 合同编号:{fileInfo.contractNumber} */}
{fileInfo.contractNumber}
</span>
{fileInfo.fileSize && (
<span className="text-xs text-gray-500 ml-2">
| {fileInfo.fileSize} | {fileInfo.fileFormat} | {fileInfo.pageCount}
</span>
)}
{fileInfo.uploadTime && (
<div className="text-xs text-gray-500 mt-1">
{fileInfo.uploadTime} | {fileInfo.uploadUser}
</div>
)}
</div>
</div>
</div>
);
}