xnzt/xnzt-h5/api/expend/expend.js
2024-11-11 10:27:27 +08:00

55 lines
891 B
JavaScript

import request from '@/utils/request'
// 查询支出记录列表
export function listExpend(query) {
return request({
url: '/expend/list',
method: 'get',
params: query
})
}
// 查询支出记录详细
export function getExpend(id) {
return request({
url: '/expend/' + id,
method: 'get'
})
}
// 新增支出记录
export function addExpend(data) {
return request({
url: '/expend',
method: 'post',
data: data
})
}
// 修改支出记录
export function updateExpend(data) {
return request({
url: '/expend',
method: 'put',
data: data
})
}
// 删除支出记录
export function delExpend(id) {
return request({
url: '/expend/' + id,
method: 'delete'
})
}
// 查询支出记录列表
export function getListExpend(query) {
return request({
url: '/expend/expendList',
method: 'get',
params: query
})
}