pnkx-admin-mongo/pnkx-uniapp/api/px/life/bookkeeping/record.js

54 lines
1.0 KiB
JavaScript
Raw Normal View History

2024-01-13 13:29:20 +08:00
import request from '@/utils/request'
// 查询账本记录列表
export function listRecord(query) {
return request({
url: '/bookkeeping/record/list',
method: 'get',
params: query
})
}
// 查询账本记录详细
export function getRecord(id) {
return request({
url: '/bookkeeping/record/' + id,
method: 'get'
})
}
// 新增账本记录
export function addRecord(data) {
return request({
url: '/bookkeeping/record',
method: 'post',
data: data
})
}
// 修改账本记录
export function updateRecord(data) {
return request({
url: '/bookkeeping/record',
method: 'put',
data: data
})
}
// 删除账本记录
export function delRecord(id) {
return request({
url: '/bookkeeping/record/' + id,
method: 'delete'
})
}
// 导出账本记录
export function exportRecord(query) {
return request({
url: '/bookkeeping/record/export',
method: 'get',
params: query
})
}