65 lines
1.1 KiB
JavaScript
65 lines
1.1 KiB
JavaScript
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询收入记录列表
|
||
|
export function listIncome(query) {
|
||
|
return request({
|
||
|
url: '/income/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询收入记录详细
|
||
|
export function getIncome(id) {
|
||
|
return request({
|
||
|
url: '/income/' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增收入记录
|
||
|
export function addIncome(data) {
|
||
|
return request({
|
||
|
url: '/income',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改收入记录
|
||
|
export function updateIncome(data) {
|
||
|
return request({
|
||
|
url: '/income',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除收入记录
|
||
|
export function delIncome(id) {
|
||
|
return request({
|
||
|
url: '/income/' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询收入记录列表
|
||
|
export function getListIncome(query) {
|
||
|
return request({
|
||
|
url: '/income/incomeList',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// // 导出收入记录列表
|
||
|
// export function download(query) {
|
||
|
// return request({
|
||
|
// responseType:'blob',
|
||
|
// url: '/income/download',
|
||
|
// method: 'get',
|
||
|
// params: query
|
||
|
// })
|
||
|
// }
|
||
|
|