111 lines
2.2 KiB
JavaScript
111 lines
2.2 KiB
JavaScript
/*
|
|
* @Date: 2021-01-05 15:25:38
|
|
* @LastEditors: fzq
|
|
* @LastEditTime: 2022-06-12 20:26:23
|
|
* @FilePath: \basic-admin\src\api\equipment\bom.js
|
|
* @Description: 设备管理——设备物料bom管理 接口定义
|
|
*/
|
|
import request from '@/utils/request'
|
|
|
|
// 获取物料bom列表
|
|
export function getBOMList(data) {
|
|
return request({
|
|
// url: '/equipment/equipment-bom/findAllByEQNameOrEQCodeOrMaterialNameWithPage',
|
|
// url: '/equipment/equipment-bom-detail/findAllByEQBomIdWithPage',
|
|
url: '/equipment/equipment-bom/page',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 新增物料bom
|
|
export function addBOM(data) {
|
|
return request({
|
|
url: '/equipment/equipment-bom/create',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 修改物料bom
|
|
export function editBOM(data) {
|
|
return request({
|
|
url: '/equipment/equipment-bom/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 删除物料bom
|
|
export function delBOM(data) {
|
|
return request({
|
|
url: '/equipment/equipment-bom/delete',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 根据id获取物料bom
|
|
export function getBOMInfo(data) {
|
|
return request({
|
|
url: '/equipment/equipment-bom/findById',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 获取设备物料bom列表
|
|
export function getDeviceBOMList(data) {
|
|
return request({
|
|
url: '/equipment/equipment-bom-detail/findAllByEQBomIdWithPage',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 新增设备物料bom
|
|
export function addDeviceBOM(data) {
|
|
return request({
|
|
url: '/equipment/equipment-bom-detail/create',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 修改设备物料bom
|
|
export function editDeviceBOM(data) {
|
|
return request({
|
|
url: '/equipment/equipment-bom-detail/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 删除设备物料bom
|
|
export function delDeviceBOM(data) {
|
|
return request({
|
|
url: '/equipment/equipment-bom-detail/delete',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 根据id获取设备物料bom详细
|
|
export function getDeviceBOMInfo(data) {
|
|
return request({
|
|
url: '/equipment/equipment-bom-detail/findById',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 获取基础物料
|
|
|
|
export function getMaterialList(data) {
|
|
return request({
|
|
url: '/basic/material/page',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|