feat(bx): 报销可代选申请人,并放宽主数据选项的数据权限过滤
支持具备 changeApplicant 权限时代填申请人及发票/余额联动;系统/CRM/BX/PL 主数据与下拉选项改为仅租户隔离,避免「仅本人」导致空选项。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
6c2121d7fc
commit
31b0db6840
36 files changed
+36351
-37915
No files matched your search
@@ -118,10 +118,11 @@ export const advanceApi = {
|
||||
}
|
||||
|
||||
export const reimburseApi = {
|
||||
generateTitle(reimburseDate?: string, excludeApplyId?: BxId) {
|
||||
generateTitle(reimburseDate?: string, excludeApplyId?: BxId, applicantId?: BxId) {
|
||||
const params: Record<string, string> = {}
|
||||
if (reimburseDate) params.reimburseDate = reimburseDate
|
||||
if (excludeApplyId) params.excludeApplyId = String(excludeApplyId)
|
||||
if (applicantId) params.applicantId = String(applicantId)
|
||||
return bxRequest.get('/reimburses/generate-title', { params })
|
||||
},
|
||||
list(params: {
|
||||
@@ -283,8 +284,8 @@ export const paymentApi = {
|
||||
}
|
||||
|
||||
export const invoiceWalletApi = {
|
||||
mineSummary() {
|
||||
return bxRequest.get('/invoice-wallets/mine/summary')
|
||||
mineSummary(params?: { userId?: BxId }) {
|
||||
return bxRequest.get('/invoice-wallets/mine/summary', { params })
|
||||
},
|
||||
list(params: { page: number; pageSize: number; keyword?: string }) {
|
||||
return bxRequest.get('/invoice-wallets', { params })
|
||||
|
||||
Reference in new issue
Block a user