This commit is contained in:
hero920103 committed 2026-10-17 11:52:02 +08:00
1 parent 184d5b0403
commit a758966fae
18 files changed
+2002 -19

No files matched your search

+15
View File
@@ -253,6 +253,21 @@ export function resolveImageUrl(url) {
return `${getBaseURL().replace(/\/$/, '')}${value.startsWith('/') ? '' : '/'}${value}`
}
/** 查我的待审批任务(审批人视角):返回 {task_id,node_name},无待办返回 null */
export function fetchMyApproveTask(id) {
return request({ url: `/api/oa/expense/my-approve-task/${id}` })
}
/** 通过当前审批节点(body: {comment}),返回引擎提示(会签等待/流转/完成) */
export function approveExpense(id, comment = '') {
return request({ url: `/api/oa/expense/approve/${id}`, method: 'POST', data: { comment } })
}
/** 驳回报销单(body: {comment}) */
export function rejectExpense(id, comment = '') {
return request({ url: `/api/oa/expense/reject/${id}`, method: 'POST', data: { comment } })
}
/**
* 发票引用是否为 PDF 文件:PDF 不能用 image 组件渲染(会被 ORB 拦截不显示),
* 需要走 openDocument 打开。