工艺模块:页面完全完善

This commit is contained in:
tzy1042411602 2024-12-02 17:31:21 +08:00
parent 852fda1ac2
commit 000af662ee
3 changed files with 924 additions and 311 deletions

7
src/api/system/index.js Normal file
View File

@ -0,0 +1,7 @@
import request from '@/utils/request'
export function indexUrl() {
return request({
url: '/system/jeecg/getReport',
method: 'get'
})
}

View File

@ -114,3 +114,58 @@ export function generatePDFs(rooteProdet) {
});
}
// 获取物料BOM信息后端返回物料BOM信息集合
export function getBomInfo(materialCode, materialName, productionOrderNo) {
return request({
url: '/system/route/getBomInfo',
method: 'post',
params: {
materialCode,
materialName,
productionOrderNo // 添加生产订单号参数
}
})
}
// 新增BOM
export function addBom(data) {
return request({
url: '/system/bom',
method: 'post',
data: data
})
}
// 修改BOM
export function updateBom(data) {
return request({
url: '/system/bom',
method: 'put',
data: data
})
}
// 删除BOM
export function deleteBom(id) {
return request({
url: '/system/bom/' + id,
method: 'delete'
})
}
// 搜索物料
export function searchMaterial(params) {
return request({
url: '/system/material/search',
method: 'get',
params: params
})
}
// 查询物料列表
export function listMaterial(query) {
return request({
url: '/system/material/list',
method: 'get',
params: query
})
}

File diff suppressed because it is too large Load Diff