物料模块
This commit is contained in:
112
src/api/base/materialProductBom.js
Normal file
112
src/api/base/materialProductBom.js
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* @Author: Do not edit
|
||||
* @Date: 2023-10-21 11:50:46
|
||||
* @LastEditTime: 2023-10-26 20:06:29
|
||||
* @LastEditors: DY
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建产品Bom
|
||||
export function createMaterialPB(data) {
|
||||
return request({
|
||||
url: '/base/material-product-bom/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新产品Bom
|
||||
export function updateMaterialPB(data) {
|
||||
return request({
|
||||
url: '/base/material-product-bom/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产品Bom
|
||||
export function deleteMaterialPB(id) {
|
||||
return request({
|
||||
url: '/base/material-product-bom/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品Bom
|
||||
export function getMaterialPB(id) {
|
||||
return request({
|
||||
url: '/base/material-product-bom/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品Bomcode
|
||||
export function getCode() {
|
||||
return request({
|
||||
url: '/base/material-product-bom/getMaterialProductBomCode',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品Bom分页
|
||||
export function getMaterialPBPage(query) {
|
||||
return request({
|
||||
url: '/base/material-product-bom/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品Bom列表
|
||||
export function getMaterialPBList(query) {
|
||||
return request({
|
||||
url: '/base/material-product-bom/listbyfilter',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品列表
|
||||
export function getProList(query) {
|
||||
return request({
|
||||
url: '/base/core-product/listAll',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得产品Bom详细分页
|
||||
export function getProBomList(query) {
|
||||
return request({
|
||||
url: '/base/material-product-bom-det/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 创建产品Bom详细
|
||||
export function createMaterialPBDet(data) {
|
||||
return request({
|
||||
url: '/base/material-product-bom-det/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新产品Bom详细
|
||||
export function updateMaterialPBDet(data) {
|
||||
return request({
|
||||
url: '/base/material-product-bom-det/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产品Bom详细
|
||||
export function deleteMaterialPBDet(id) {
|
||||
return request({
|
||||
url: '/base/material-product-bom-det/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user