diff --git a/src/api/mes/pro/proroute.js b/src/api/mes/pro/proroute.js index d587e25..42dd29f 100644 --- a/src/api/mes/pro/proroute.js +++ b/src/api/mes/pro/proroute.js @@ -42,3 +42,13 @@ export function delProroute(routeId) { method: 'delete' }) } + +// 批量新增附件 +export function importProroute(data) { + return request({ + url: '/mes/pro/proroute/import', + method: 'post', + data: data + }) + +} diff --git a/src/api/mes/pro/routeprodline.js b/src/api/mes/pro/routeprodproduct.js similarity index 52% rename from src/api/mes/pro/routeprodline.js rename to src/api/mes/pro/routeprodproduct.js index df747f8..7a8f60a 100644 --- a/src/api/mes/pro/routeprodline.js +++ b/src/api/mes/pro/routeprodproduct.js @@ -1,53 +1,53 @@ import request from '@/utils/request' // 查询工艺线体关联列表 -export function listLine(query) { +export function listProduct(query) { return request({ - url: '/mes/pro/routeprodline/list', + url: '/mes/pro/routeprodproduct/list', method: 'get', params: query }); } // 查询工艺线体关联详细 -export function getLine(recordId) { +export function getProduct(recordId) { return request({ - url: '/mes/pro/routeprodline/' + recordId, + url: '/mes/pro/routeprodproduct/' + recordId, method: 'get' }); } // 新增工艺线体关联 -export function addLine(data) { +export function addProduct(data) { return request({ - url: '/mes/pro/routeprodline', + url: '/mes/pro/routeprodproduct', method: 'post', data: data }); } // 修改工艺线体关联 -export function updateLine(data) { +export function updateProduct(data) { return request({ - url: '/mes/pro/routeprodline', + url: '/mes/pro/routeprodproduct', method: 'put', data: data }); } // 删除工艺线体关联 -export function delLine(recordId) { +export function delProduct(recordId) { return request({ - url: '/mes/pro/routeprodline/' + recordId, + url: '/mes/pro/routeprodproduct/' + recordId, method: 'delete' }); } // 查询工艺线体关联列表 -export function getListLine(query) { +export function getListProduct(query) { return request({ - url: '/mes/pro/routeprodline/getList', + url: '/mes/pro/routeprodproduct/getList', method: 'get', params: query }); -} \ No newline at end of file +} diff --git a/src/api/wms/equipment.js b/src/api/wms/equipment.js new file mode 100644 index 0000000..05aa299 --- /dev/null +++ b/src/api/wms/equipment.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询设备管理列表 +export function listEquipment(query) { + return request({ + url: '/wms/equipment/list', + method: 'get', + params: query + }); +} + +// 查询设备管理详细 +export function getEquipment(equipmentId) { + return request({ + url: '/wms/equipment/' + equipmentId, + method: 'get' + }); +} + +// 新增设备管理 +export function addEquipment(data) { + return request({ + url: '/wms/equipment', + method: 'post', + data: data + }); +} + +// 修改设备管理 +export function updateEquipment(data) { + return request({ + url: '/wms/equipment', + method: 'put', + data: data + }); +} + +// 删除设备管理 +export function delEquipment(equipmentId) { + return request({ + url: '/wms/equipment/' + equipmentId, + method: 'delete' + }); +} diff --git a/src/api/wms/equipmentBoundMaterials.js b/src/api/wms/equipmentBoundMaterials.js new file mode 100644 index 0000000..e4d0381 --- /dev/null +++ b/src/api/wms/equipmentBoundMaterials.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询设备绑定产品列表 +export function listEquipmentBoundMaterials(query) { + return request({ + url: '/wms/equipmentBoundMaterials/list', + method: 'get', + params: query + }); +} + +// 查询设备绑定产品详细 +export function getEquipmentBoundMaterials(equipmentId) { + return request({ + url: '/wms/equipmentBoundMaterials/' + equipmentId, + method: 'get' + }); +} + +// 新增设备绑定产品 +export function addEquipmentBoundMaterials(data) { + return request({ + url: '/wms/equipmentBoundMaterials', + method: 'post', + data: data + }); +} + +// 修改设备绑定产品 +export function updateEquipmentBoundMaterials(data) { + return request({ + url: '/wms/equipmentBoundMaterials', + method: 'put', + data: data + }); +} + +// 删除设备绑定产品 +export function delEquipmentBoundMaterials(equipmentId) { + return request({ + url: '/wms/equipmentBoundMaterials/' + equipmentId, + method: 'delete' + }); +} diff --git a/src/views/mes/pro/proroute/index.vue b/src/views/mes/pro/proroute/index.vue index ea0da45..29ee231 100644 --- a/src/views/mes/pro/proroute/index.vue +++ b/src/views/mes/pro/proroute/index.vue @@ -73,7 +73,7 @@ @click="handleExport" v-hasPermi="['mes:pro:proroute:export']" >导出 - + SAP同步 + + 上传附件 + @@ -106,6 +116,14 @@ + + + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/wms/equipment/index.vue b/src/views/wms/equipment/index.vue new file mode 100644 index 0000000..17e96a4 --- /dev/null +++ b/src/views/wms/equipment/index.vue @@ -0,0 +1,428 @@ + + + diff --git a/src/views/wms/machinery/index.vue b/src/views/wms/machinery/index.vue index 9bb1d87..90b8375 100644 --- a/src/views/wms/machinery/index.vue +++ b/src/views/wms/machinery/index.vue @@ -1,18 +1,18 @@