11-wms/src/api/equipment/spare.js

153 lines
3.0 KiB
JavaScript

/*
* @Date: 2021-01-05 15:25:38
* @LastEditors: fzq
* @LastEditTime: 2022-09-15 11:06:15
* @FilePath: \basic-admin\src\api\equipment\spare.js
* @Description: 设备管理——备品备件管理
*/
import request from '@/utils/request'
// // 获取备品备件列表
// export function getSpareList(data) {
// return request({
// url: '/equipment/spare-parts/page',
// method: 'post',
// data
// })
// }
// // 新增备品备件
// export function addSapre(data) {
// return request({
// url: '/equipment/spare-parts/create',
// method: 'post',
// data
// })
// }
// // 修改备品备件
// export function editSpare(data) {
// return request({
// url: '/equipment/spare-parts/update',
// method: 'post',
// data
// })
// }
// // 删除备品备件
// export function delSpare(data) {
// return request({
// url: '/equipment/spare-parts/delete',
// method: 'post',
// data
// })
// }
// // 获取备品备件详情
// export function getSpareInfo(data) {
// return request({
// url: '/equipment/spare-parts/findById',
// method: 'post',
// data
// })
// }
// // 获取备件型号
// export function getSpareModel(data) {
// return request({
// url: '/basic/tool-spare-part/list',
// method: 'post',
// data
// })
// }
// 获取备品备件记录列表
export function getSpareList(data) {
return request({
url: '/equipment/spare-part-log/page',
method: 'post',
data
})
}
// 新增备品备件记录
export function addSpare(data) {
return request({
url: '/equipment/spare-part-log/add',
method: 'post',
data
})
}
// 修改备品备件记录
export function editSpare(data) {
return request({
url: '/equipment/spare-part-log/update',
method: 'post',
data
})
}
// 删除备品备件记录
export function delSpare(data) {
return request({
url: '/equipment/spare-part-log/delete',
method: 'post',
data
})
}
// id获取备品备件记录
export function getSpareInfo(data) {
return request({
url: '/equipment/spare-part-log/get',
method: 'post',
data
})
}
// 获取备品备件详情分页记录
export function getSpareDetail(data) {
return request({
url: '/equipment/spare-part-log/pageDet',
method: 'post',
data
})
}
// 根据ID获取备品备件详情记录
export function getSpareDetailById(data) {
return request({
url: '/equipment/spare-part-log/getDet',
method: 'post',
data
})
}
// 新增备品备件详情
export function spareDetailAdd(data) {
return request({
url: '/equipment/spare-part-log/addDet',
method: 'post',
data
})
}
// 删除备品备件详情
export function spareDetailDel(data) {
return request({
url: '/equipment/spare-part-log/deleteDet',
method: 'post',
data
})
}
// 编辑备品备件详情
export function spareDetailUpdate(data) {
return request({
url: '/equipment/spare-part-log/updateDet',
method: 'post',
data
})
}