|
|
@@ -623,3 +623,33 @@ export function fetchOaRelatedSummaries(ids: string[], mode: 'picker' | 'view' =
|
|
|
params: { ids: ids.filter(Boolean).join(','), mode }
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+export type OaBankReceiptItem = {
|
|
|
+ id?: string
|
|
|
+ fileName: string
|
|
|
+ fileUrl: string
|
|
|
+ fileType?: string
|
|
|
+ fileSize?: number | null
|
|
|
+ createTime?: string
|
|
|
+}
|
|
|
+
|
|
|
+export function fetchOaBankReceipts(instanceId: string) {
|
|
|
+ return request.get<{ items: OaBankReceiptItem[] }>({
|
|
|
+ url: `${BASE}/instances/${instanceId}/bank-receipts`
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+export function fetchReplaceOaBankReceipts(
|
|
|
+ instanceId: string,
|
|
|
+ items: Array<{
|
|
|
+ fileUrl: string
|
|
|
+ fileName?: string
|
|
|
+ fileType?: string
|
|
|
+ fileSize?: number | null
|
|
|
+ }>
|
|
|
+) {
|
|
|
+ return request.put<{ items: OaBankReceiptItem[] }>({
|
|
|
+ url: `${BASE}/instances/${instanceId}/bank-receipts`,
|
|
|
+ data: { items }
|
|
|
+ })
|
|
|
+}
|