✨ feat: 目录结构和所需api文件创建
This commit is contained in:
44
klp-ui/src/api/mes/eqp/inspectionRecord.js
Normal file
44
klp-ui/src/api/mes/eqp/inspectionRecord.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询检修记录列表
|
||||
export function listInspectionRecord(query) {
|
||||
return request({
|
||||
url: '/eqp/inspectionRecord/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询检修记录详细
|
||||
export function getInspectionRecord(recordId) {
|
||||
return request({
|
||||
url: '/eqp/inspectionRecord/' + recordId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增检修记录
|
||||
export function addInspectionRecord(data) {
|
||||
return request({
|
||||
url: '/eqp/inspectionRecord',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改检修记录
|
||||
export function updateInspectionRecord(data) {
|
||||
return request({
|
||||
url: '/eqp/inspectionRecord',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除检修记录
|
||||
export function delInspectionRecord(recordId) {
|
||||
return request({
|
||||
url: '/eqp/inspectionRecord/' + recordId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user