提交
This commit is contained in:
1 parent
3f56586b02
commit
6bfabac50d
64 files changed
+39417
-28668
No files matched your search
@@ -221,3 +221,64 @@ export function fetchDeleteCollectionProtocol(id: string) {
|
||||
showSuccessMessage: true
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchInvoiceEligiblePayments(protocolId: string) {
|
||||
return request.get<{ list: Record<string, unknown>[]; total: number }>({
|
||||
url: `/web/admin/collection-protocols/${protocolId}/invoice-eligible-payments`
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchProtocolInvoiceRequests(protocolId: string) {
|
||||
return request.get<{ list: Record<string, unknown>[]; total: number }>({
|
||||
url: `/web/admin/collection-protocols/${protocolId}/invoice-requests`
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchCreateProtocolInvoiceRequest(
|
||||
protocolId: string,
|
||||
data: {
|
||||
paymentDetailIds: string[]
|
||||
invoiceTitle?: string
|
||||
taxNo?: string
|
||||
companyAddress?: string
|
||||
companyPhone?: string
|
||||
bankName?: string
|
||||
bankAccount?: string
|
||||
applyRemark?: string
|
||||
}
|
||||
) {
|
||||
return request.post({
|
||||
url: `/web/admin/collection-protocols/${protocolId}/invoice-requests`,
|
||||
data,
|
||||
showSuccessMessage: true
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchProtocolInvoiceRequestList(params: {
|
||||
status: 'dkp' | 'ykp'
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
}) {
|
||||
return request.get<PageList<Record<string, unknown>>>({
|
||||
url: '/web/admin/protocol-invoice-requests',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchProtocolInvoicePendingCount() {
|
||||
return request.get<{ count: number }>({
|
||||
url: '/web/admin/protocol-invoice-requests/pending-count'
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchCompleteProtocolInvoiceRequest(
|
||||
requestId: string,
|
||||
data: { invoiceAttachments: string; financeRemark?: string }
|
||||
) {
|
||||
return request.put({
|
||||
url: `/web/admin/protocol-invoice-requests/${requestId}/complete`,
|
||||
data,
|
||||
showSuccessMessage: true
|
||||
})
|
||||
}
|
||||
@@ -44,6 +44,7 @@ export type QcMaterialBatch = {
|
||||
amount: number
|
||||
inQty: number
|
||||
remainingQty: number
|
||||
qcAttachmentUrls?: string
|
||||
stockQty: number
|
||||
warningQty: number
|
||||
status: string
|
||||
|
||||
Reference in new issue
Block a user