工艺模块:页面完全完善
This commit is contained in:
parent
852fda1ac2
commit
000af662ee
7
src/api/system/index.js
Normal file
7
src/api/system/index.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
export function indexUrl() {
|
||||||
|
return request({
|
||||||
|
url: '/system/jeecg/getReport',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -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
Loading…
Reference in New Issue
Block a user