Files
shanxia2.0/web-admin/src/components/business/protocol-finance-confirm-fields/finance-attachments.ts
T
2026-05-17 12:31:11 +08:00

15 lines
320 B
TypeScript

export type FinanceAttachmentItem = {
id: string
fileName: string
fileUrl: string
fileType?: string
_uploading?: boolean
}
export function financeAttachmentsToUrlString(items: FinanceAttachmentItem[]) {
return items
.filter((f) => f.fileUrl && !f._uploading)
.map((f) => f.fileUrl)
.join(',')
}