From 8f8ea2fc7558575ce4d6e70e7528a18832958da8 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Tue, 25 Jul 2023 09:36:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF=E7=AE=A1?= =?UTF-8?q?=E7=90=86+=E5=B7=A5=E8=89=BA=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/pro/proroute.js | 10 + .../{routeprodline.js => routeprodproduct.js} | 26 +- src/api/wms/equipment.js | 44 ++ src/api/wms/equipmentBoundMaterials.js | 44 ++ src/views/mes/pro/proroute/index.vue | 130 +++++- ...routeprodline.vue => routeprodproduct.vue} | 21 +- src/views/wms/bom/index.vue | 1 + src/views/wms/customer/index.vue | 18 +- .../wms/equipment/equipmentBoundMaterials.vue | 427 +++++++++++++++++ src/views/wms/equipment/index.vue | 428 ++++++++++++++++++ src/views/wms/machinery/index.vue | 56 ++- src/views/wms/product/index.vue | 30 +- src/views/wms/productGroups/index.vue | 83 +--- src/views/wms/supplier/index.vue | 12 +- src/views/wms/team/index.vue | 4 +- 15 files changed, 1178 insertions(+), 156 deletions(-) rename src/api/mes/pro/{routeprodline.js => routeprodproduct.js} (52%) create mode 100644 src/api/wms/equipment.js create mode 100644 src/api/wms/equipmentBoundMaterials.js rename src/views/mes/pro/proroute/{routeprodline.vue => routeprodproduct.vue} (84%) create mode 100644 src/views/wms/equipment/equipmentBoundMaterials.vue create mode 100644 src/views/wms/equipment/index.vue 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 @@