Files
fad_oa/ruoyi-ui/src/api/hrm/reimburse.js
2026-05-31 14:19:15 +08:00

61 lines
1.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request'
// 日常报销单
export function listReimburseReq(query) {
return request({
url: '/hrm/reimburse/list',
method: 'get',
params: query
})
}
export function getReimburseReq(bizId) {
return request({
url: `/hrm/reimburse/${bizId}`,
method: 'get'
})
}
export function addReimburseReq(data) {
return request({
url: '/hrm/reimburse',
method: 'post',
data
})
}
export function editReimburseReq(data) {
return request({
url: '/hrm/reimburse',
method: 'put',
data
})
}
export function delReimburseReq(bizIds) {
return request({
url: `/hrm/reimburse/${bizIds}`,
method: 'delete'
})
}
export function allReimburseReq(query) {
return request({
url: '/hrm/reimburse/all',
method: 'get',
params: query
})
}
/**
* 通过ossId触发发票解析返回解析条目不保存
*/
export function ocrReimburseInvoice(ossId) {
return request({
url: '/hrm/reimburse/ocr-by-oss',
method: 'post',
params: { ossId }
})
}