This commit is contained in:
zlwu committed 2026-10-15 23:21:07 +08:00
1 parent ecde2ba07d
commit 06d021807b
61 files changed
+14874 -8772

No files matched your search

+7 -2
View File
@@ -35,6 +35,7 @@ export function fetchCollectionProtocolDetail(id: string) {
samples: Array<Record<string, unknown>> | null
payment: Record<string, unknown> | null
paymentDetails: Array<Record<string, unknown>> | null
samplePayments?: Array<Record<string, unknown>> | null
attachments?: Array<Record<string, unknown>>
storageCert?: Record<string, unknown> | null
}>({
@@ -175,11 +176,15 @@ export function fetchUpdatePaymentDetailDraft(
})
}
export function fetchSubmitReceiptFinance(detailId: string, data?: PaymentDetailDraftPayload) {
export function fetchSubmitReceiptFinance(
detailId: string,
data?: PaymentDetailDraftPayload,
options?: { showSuccessMessage?: boolean }
) {
return request.post({
url: `/web/admin/protocol-payment-details/${detailId}/submit-receipt-finance`,
data: data || {},
showSuccessMessage: true
showSuccessMessage: options?.showSuccessMessage !== false
})
}
+5 -2
View File
@@ -41,10 +41,13 @@ export function fetchUpdatePaymentTransfer(transferId: string, data: Record<stri
})
}
export function fetchSubmitPaymentTransferFinance(transferId: string) {
export function fetchSubmitPaymentTransferFinance(
transferId: string,
options?: { showSuccessMessage?: boolean }
) {
return request.post({
url: `/web/admin/payment-transfers/${transferId}/submit-receipt-finance`,
showSuccessMessage: true
showSuccessMessage: options?.showSuccessMessage !== false
})
}