feat(bx-mobile): add invoice wallet pages and bind reimburse apply to balance rules
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
522d691050
commit
a8590db98b
7 files changed
+745
-123
No files matched your search
@@ -54,7 +54,8 @@ export const reimburseApi = {
|
||||
getApprovals: (id: BxId) => bxClient.get(`/reimburses/${id}/approvals`),
|
||||
create: (data: Record<string, any>) => bxClient.post('/reimburses/', data),
|
||||
update: (id: BxId, data: Record<string, any>) => bxClient.put(`/reimburses/${id}`, data),
|
||||
submit: (id: BxId) => bxClient.post(`/reimburses/${id}/submit`),
|
||||
submit: (id: BxId, data?: Record<string, any>) =>
|
||||
bxClient.post(`/reimburses/${id}/submit`, data),
|
||||
approve: (id: BxId, data: { approvalOpinion?: string }) =>
|
||||
bxClient.post(`/reimburses/${id}/approve`, data),
|
||||
reject: (id: BxId, data: { approvalOpinion?: string }) =>
|
||||
@@ -62,6 +63,21 @@ export const reimburseApi = {
|
||||
delete: (id: BxId) => bxClient.delete(`/reimburses/${id}`),
|
||||
}
|
||||
|
||||
export const invoiceWalletApi = {
|
||||
mineSummary: (params?: { userId?: BxId }) =>
|
||||
bxClient.get('/invoice-wallets/mine/summary', { params }),
|
||||
list: (params: { page: number; pageSize: number; keyword?: string }) =>
|
||||
bxClient.get('/invoice-wallets', { params }),
|
||||
}
|
||||
|
||||
export const invoiceApi = {
|
||||
list: (params?: { page?: number; pageSize?: number; userId?: BxId }) =>
|
||||
bxClient.get('/invoices', { params }),
|
||||
upload: (formData: FormData) => bxClient.post('/invoices', formData),
|
||||
delete: (id: BxId) => bxClient.delete(`/invoices/${id}`),
|
||||
ledgers: (params?: { userId?: BxId }) => bxClient.get('/invoice-ledgers', { params }),
|
||||
}
|
||||
|
||||
export const paymentApi = {
|
||||
pending: (params?: Record<string, any>) => bxClient.get('/payments/pending', { params }),
|
||||
pay: (id: BxId, data?: { payRemark?: string; actualAmount?: number }) =>
|
||||
|
||||
Reference in new issue
Block a user