60 lines
1.1 KiB
JavaScript
60 lines
1.1 KiB
JavaScript
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询支出分类表列表
|
||
|
export function listExpendCategory(query) {
|
||
|
return request({
|
||
|
url: '/expendCategory/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询支出分类表详细
|
||
|
export function getExpendCategory(id) {
|
||
|
return request({
|
||
|
url: '/expendCategory/' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增支出分类表
|
||
|
export function addExpendCategory(data) {
|
||
|
return request({
|
||
|
url: '/expendCategory',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改支出分类表
|
||
|
export function updateExpendCategory(data) {
|
||
|
return request({
|
||
|
url: '/expendCategory',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除支出分类表
|
||
|
export function delExpendCategory(id) {
|
||
|
return request({
|
||
|
url: '/expendCategory/' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询支出分类表列表
|
||
|
export function queryExpendCategory() {
|
||
|
return request({
|
||
|
url: '/expendCategory/queryList',
|
||
|
method: 'get',
|
||
|
})
|
||
|
}
|
||
|
|
||
|
|
||
|
export function queryExpendByPid(id) {
|
||
|
return request({
|
||
|
url: '/expendCategory/queryByPidList/' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|