import { Button, Modal, Space, Typography, message } from 'antd' import { CopyOutlined, DownloadOutlined, SafetyCertificateOutlined } from '@ant-design/icons' import { copyVoucherDataUrlToClipboard } from '../../utils/voucher' const { Text } = Typography export interface VoucherPreviewModalProps { open: boolean previewVoucherUrl: string onClose: () => void } export function VoucherPreviewModal({ open, previewVoucherUrl, onClose, }: VoucherPreviewModalProps) { return ( 发货到账存证凭据 (高清预览) } open={open} onCancel={onClose} footer={[ , , , ]} width={420} destroyOnClose centered >
{previewVoucherUrl ? ( 发货凭证大图 ) : (
正在生成高清凭据图...
)}
💡 提示:点击「复制图片到剪贴板」后,可直接在微信/QQ等客服聊天窗口按 Ctrl + V 发送。
) }