This commit is contained in:
zlwu committed 2026-07-11 17:15:17 +08:00
1 parent 843e13bce3
commit 7b1d4c8729
629 files changed
+74059 -7929

No files matched your search

+24 -24
View File
@@ -2,6 +2,12 @@ import bxRequest from '@/utils/http/bx'
export type BxId = string | number
export type BxApplyDateFilter = {
applyDate?: string
applyDateFrom?: string
applyDateTo?: string
}
export const expenseItemApi = {
tree() {
return bxRequest.get('/expense-items/tree')
@@ -51,11 +57,10 @@ export const advanceApi = {
status?: string
keyword?: string
applicantId?: BxId
applyDate?: string
}) {
} & BxApplyDateFilter) {
return bxRequest.get('/advances/', { params })
},
my(params: { page: number; pageSize: number; status?: string; keyword?: string; applyDate?: string }) {
my(params: { page: number; pageSize: number; status?: string; keyword?: string } & BxApplyDateFilter) {
return bxRequest.get('/advances/my', { params })
},
myStats() {
@@ -69,8 +74,7 @@ export const advanceApi = {
pageSize: number
keyword?: string
applicantId?: BxId
applyDate?: string
}) {
} & BxApplyDateFilter) {
return bxRequest.get('/advances/pending-approval', { params })
},
pendingApprovalStats() {
@@ -81,8 +85,7 @@ export const advanceApi = {
pageSize: number
keyword?: string
applicantId?: BxId
applyDate?: string
}) {
} & BxApplyDateFilter) {
return bxRequest.get('/advances/approved-by-me', { params })
},
getById(id: BxId) {
@@ -128,11 +131,10 @@ export const reimburseApi = {
keyword?: string
expenseId?: BxId
applicantId?: BxId
applyDate?: string
}) {
} & BxApplyDateFilter) {
return bxRequest.get('/reimburses/', { params })
},
my(params: { page: number; pageSize: number; status?: string; keyword?: string; applyDate?: string }) {
my(params: { page: number; pageSize: number; status?: string; keyword?: string } & BxApplyDateFilter) {
return bxRequest.get('/reimburses/my', { params })
},
myStats() {
@@ -146,8 +148,7 @@ export const reimburseApi = {
pageSize: number
keyword?: string
applicantId?: BxId
applyDate?: string
}) {
} & BxApplyDateFilter) {
return bxRequest.get('/reimburses/pending-approval', { params })
},
pendingApprovalStats() {
@@ -158,8 +159,7 @@ export const reimburseApi = {
pageSize: number
keyword?: string
applicantId?: BxId
applyDate?: string
}) {
} & BxApplyDateFilter) {
return bxRequest.get('/reimburses/approved-by-me', { params })
},
getById(id: BxId) {
@@ -204,8 +204,7 @@ export const paymentApi = {
bizType?: string
keyword?: string
applicantId?: BxId
applyDate?: string
}) {
} & BxApplyDateFilter) {
return bxRequest.get('/payments/pending', { params })
},
pay(id: BxId, data?: { payRemark?: string; actualAmount?: number }) {
@@ -226,8 +225,7 @@ export const paymentApi = {
issueStatus?: string
keyword?: string
applicantId?: BxId
applyDate?: string
}) {
} & BxApplyDateFilter) {
return bxRequest.get('/payments/advance-issues', {
params: {
page: params.page,
@@ -235,7 +233,9 @@ export const paymentApi = {
issue_status: params.issueStatus,
keyword: params.keyword,
applicantId: params.applicantId,
applyDate: params.applyDate
applyDate: params.applyDate,
applyDateFrom: params.applyDateFrom,
applyDateTo: params.applyDateTo
}
})
},
@@ -243,14 +243,15 @@ export const paymentApi = {
issueStatus?: string
keyword?: string
applicantId?: BxId
applyDate?: string
}) {
} & BxApplyDateFilter) {
return bxRequest.get('/payments/advance-issues/export', {
params: {
issue_status: params.issueStatus,
keyword: params.keyword,
applicantId: params.applicantId,
applyDate: params.applyDate
applyDate: params.applyDate,
applyDateFrom: params.applyDateFrom,
applyDateTo: params.applyDateTo
},
responseType: 'blob'
})
@@ -270,8 +271,7 @@ export const paymentApi = {
bizType?: string
keyword?: string
applicantId?: BxId
applyDate?: string
}) {
} & BxApplyDateFilter) {
return bxRequest.get('/payments/processed', { params })
}
}