45 lines
837 B
JavaScript
45 lines
837 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询其他收入列表
|
|
export function listOtherIncome(query) {
|
|
return request({
|
|
url: '/oa/otherIncome/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询其他收入详细
|
|
export function getOtherIncome(otherIncomeId) {
|
|
return request({
|
|
url: '/oa/otherIncome/' + otherIncomeId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增其他收入
|
|
export function addOtherIncome(data) {
|
|
return request({
|
|
url: '/oa/otherIncome',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改其他收入
|
|
export function updateOtherIncome(data) {
|
|
return request({
|
|
url: '/oa/otherIncome',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除其他收入
|
|
export function delOtherIncome(otherIncomeId) {
|
|
return request({
|
|
url: '/oa/otherIncome/' + otherIncomeId,
|
|
method: 'delete'
|
|
})
|
|
}
|