✨ feat: 财务中心增加其他收支
This commit is contained in:
44
klp-ui/src/api/finance/otherIncome.js
Normal file
44
klp-ui/src/api/finance/otherIncome.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询其他收入列表
|
||||
export function listOtherIncome(query) {
|
||||
return request({
|
||||
url: '/klp/otherIncome/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询其他收入详细
|
||||
export function getOtherIncome(otherIncomeId) {
|
||||
return request({
|
||||
url: '/klp/otherIncome/' + otherIncomeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增其他收入
|
||||
export function addOtherIncome(data) {
|
||||
return request({
|
||||
url: '/klp/otherIncome',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改其他收入
|
||||
export function updateOtherIncome(data) {
|
||||
return request({
|
||||
url: '/klp/otherIncome',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除其他收入
|
||||
export function delOtherIncome(otherIncomeId) {
|
||||
return request({
|
||||
url: '/klp/otherIncome/' + otherIncomeId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user