diff --git a/src/api/system/index.js b/src/api/system/index.js new file mode 100644 index 0000000..c6967c6 --- /dev/null +++ b/src/api/system/index.js @@ -0,0 +1,7 @@ +import request from '@/utils/request' +export function indexUrl() { + return request({ + url: '/system/jeecg/getReport', + method: 'get' + }) +} diff --git a/src/api/system/route.js b/src/api/system/route.js index cbc79d2..748e6fe 100644 --- a/src/api/system/route.js +++ b/src/api/system/route.js @@ -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 + }) +} \ No newline at end of file diff --git a/src/views/system/route/index.vue b/src/views/system/route/index.vue index 746e568..27f4dd1 100644 --- a/src/views/system/route/index.vue +++ b/src/views/system/route/index.vue @@ -1,102 +1,7 @@