56 lines
1002 B
JavaScript
56 lines
1002 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询挂账信息列表
|
|
export function listCreditUnit(query) {
|
|
return request({
|
|
url: '/business/creditUnit/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
// 查询挂账信息列表
|
|
export function creditUnits(query) {
|
|
return request({
|
|
url: '/business/creditUnit/selectList',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 新增挂账记录
|
|
export function addCreditUnit(data) {
|
|
return request({
|
|
url: '/business/creditUnit',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改挂账记录
|
|
export function editCreditUnit(data) {
|
|
return request({
|
|
url: '/business/creditUnit',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|
|
// 根据id查询挂账记录
|
|
export function creditUnitInfo(id) {
|
|
return request({
|
|
url: '/business/creditUnit/' + id,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
|
|
// 根据id删除挂账记录
|
|
export function deleteCreditUnit(id) {
|
|
return request({
|
|
url: '/business/creditUnit/' + id,
|
|
method: 'delete',
|
|
})
|
|
}
|
|
|