You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.2 KiB
JavaScript
63 lines
1.2 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询设备台账列表
|
|
export function listDeviceLedger(query) {
|
|
return request({
|
|
url: '/base/deviceLedger/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询设备台账详细
|
|
export function getDeviceLedger(objId) {
|
|
return request({
|
|
url: '/base/deviceLedger/' + objId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增设备台账
|
|
export function addDeviceLedger(data) {
|
|
return request({
|
|
url: '/base/deviceLedger',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改设备台账
|
|
export function updateDeviceLedger(data) {
|
|
return request({
|
|
url: '/base/deviceLedger',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除设备台账
|
|
export function delDeviceLedger(objId) {
|
|
return request({
|
|
url: '/base/deviceLedger/' + objId,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 查询设备台账列表
|
|
export function getDeviceCode(query) {
|
|
return request({
|
|
url: '/base/deviceLedger/getDeviceCode',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询设备台账列表
|
|
export function getDeviceLedgerList(query) {
|
|
return request({
|
|
url: '/base/deviceLedger/getDeviceLedgerList',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|