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
@@ -93,6 +93,15 @@ bxAxios.interceptors.request.use(async (config: InternalAxiosRequestConfig) => {
|
||||
if (config.url) {
|
||||
config.url = normalizeBxUrl(config.url)
|
||||
}
|
||||
if (config.data instanceof FormData) {
|
||||
// 让浏览器自动带 multipart boundary;覆盖实例默认 application/json
|
||||
if (typeof config.headers.set === 'function') {
|
||||
config.headers.set('Content-Type', false as unknown as string)
|
||||
} else {
|
||||
delete (config.headers as any)['Content-Type']
|
||||
delete (config.headers as any)['content-type']
|
||||
}
|
||||
}
|
||||
const store = useUserStore()
|
||||
let token = store.accessToken as unknown as string
|
||||
if (!token) {
|
||||
|
||||
Reference in new issue
Block a user