44 lines
871 B
JavaScript
44 lines
871 B
JavaScript
/*
|
|
* @Author: Do not edit
|
|
* @Date: 2023-11-10 16:09:33
|
|
* @LastEditTime: 2023-11-23 20:29:28
|
|
* @LastEditors: DY
|
|
* @Description:
|
|
*/
|
|
import request from '@/utils/request'
|
|
|
|
//获得设备维修
|
|
export function getEqRepair(id) {
|
|
return request({
|
|
url: '/base/equipment-repair-log/get?id=' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 更新设备维修记录
|
|
export function updateEqRepair(data) {
|
|
return request({
|
|
url: '/base/equipment-repair-log/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除维修记录
|
|
export function deleteRepair(id) {
|
|
return request({
|
|
url: '/base/equipment-repair-log/delete?id=' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 导出设备维修
|
|
export function exportRepairLogExcel(query) {
|
|
return request({
|
|
url: '/base/equipment-repair-log/export-excel',
|
|
method: 'get',
|
|
params: query,
|
|
responseType: 'blob'
|
|
})
|
|
}
|