feat: 目录结构和所需api文件创建

This commit is contained in:
砂糖
2025-10-17 16:11:01 +08:00
parent 28881d787c
commit ec24ec4f5d
14 changed files with 352 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询备品备件列表
export function listSparePart(query) {
return request({
url: '/eqp/sparePart/list',
method: 'get',
params: query
})
}
// 查询备品备件详细
export function getSparePart(partId) {
return request({
url: '/eqp/sparePart/' + partId,
method: 'get'
})
}
// 新增备品备件
export function addSparePart(data) {
return request({
url: '/eqp/sparePart',
method: 'post',
data: data
})
}
// 修改备品备件
export function updateSparePart(data) {
return request({
url: '/eqp/sparePart',
method: 'put',
data: data
})
}
// 删除备品备件
export function delSparePart(partId) {
return request({
url: '/eqp/sparePart/' + partId,
method: 'delete'
})
}