提交
This commit is contained in:
1 parent
843e13bce3
commit
7b1d4c8729
629 files changed
+74059
-7929
No files matched your search
@@ -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 })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,6 +43,8 @@ export interface OpportunityQuery {
|
||||
beginTime?: string;
|
||||
/** 结束时间 */
|
||||
endTime?: string;
|
||||
/** 关键词(简易检索) */
|
||||
keyword?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -513,6 +513,19 @@ export interface PlanArchiveBody {
|
||||
freight?: PlanArchiveFreightBlock
|
||||
}
|
||||
|
||||
export interface PlanDriverFeedbackUpdateBody {
|
||||
feedbackQty?: number | null
|
||||
feedbackRemark?: string | null
|
||||
feedbackImages?: string[]
|
||||
feedbackTime?: string | null
|
||||
}
|
||||
|
||||
export interface PlanSiteFeedbackUpdateBody {
|
||||
siteFeedbackRemark?: string | null
|
||||
siteFeedbackImages?: string[]
|
||||
siteFeedbackTime?: string | null
|
||||
}
|
||||
|
||||
export const planApi = {
|
||||
list: (params?: PlanQuery) => request.get<PlanListResponse>('/transport/plan/', { params }),
|
||||
get: (id: string) => request.get<Plan>(`/transport/plan/${id}`),
|
||||
@@ -538,6 +551,10 @@ export const planApi = {
|
||||
getArrangeInfo: (id: string) => request.get<PlanArrangeInfo>(`/transport/plan/${id}/arrange-info`),
|
||||
archive: (id: string, data?: PlanArchiveBody) =>
|
||||
request.post<Plan>(`/transport/plan/${id}/archive`, data),
|
||||
updateDriverFeedback: (id: string, data: PlanDriverFeedbackUpdateBody) =>
|
||||
request.patch<Plan>(`/transport/plan/${id}/driver-feedback`, data),
|
||||
updateSiteFeedback: (id: string, linkId: string, data: PlanSiteFeedbackUpdateBody) =>
|
||||
request.patch<Plan>(`/transport/plan/${id}/site-feedback/${linkId}`, data),
|
||||
delete: (id: string) => request.delete(`/transport/plan/${id}`),
|
||||
createFromContract: (data: { contractId: string; planDate: string; followUserId?: string; followUserName?: string }) =>
|
||||
request.post<Plan>('/transport/plan/create-from-contract', data),
|
||||
|
||||
Reference in new issue
Block a user