From cba2b651186684dc478efc9f68331c3384652aef Mon Sep 17 00:00:00 2001 From: A0010407 Date: Wed, 19 Jul 2023 11:08:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=85=AD=E4=B8=AA=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/pro/baseFile.js | 44 ++ src/api/wms/bom.js | 44 ++ src/api/wms/customer.js | 44 ++ src/api/wms/machinery.js | 44 ++ src/api/wms/product.js | 44 ++ src/api/wms/productGroups.js | 44 ++ src/api/wms/supplier.js | 44 ++ src/views/mes/pro/baseFile/index.vue | 293 +++++++++++++ src/views/mes/pro/process/content.vue | 4 +- src/views/wms/area/index.vue | 8 +- src/views/wms/bom/index.vue | 342 +++++++++++++++ src/views/wms/customer/index.vue | 444 ++++++++++++++++++++ src/views/wms/factory/index.vue | 6 +- src/views/wms/machinery/index.vue | 355 ++++++++++++++++ src/views/wms/product/index.vue | 489 +++++++++++++++++++++ src/views/wms/productGroups/index.vue | 391 +++++++++++++++++ src/views/wms/shifts/index.vue | 10 +- src/views/wms/supplier/index.vue | 584 ++++++++++++++++++++++++++ src/views/wms/warehouse/index.vue | 6 +- 19 files changed, 3224 insertions(+), 16 deletions(-) create mode 100644 src/api/mes/pro/baseFile.js create mode 100644 src/api/wms/bom.js create mode 100644 src/api/wms/customer.js create mode 100644 src/api/wms/machinery.js create mode 100644 src/api/wms/product.js create mode 100644 src/api/wms/productGroups.js create mode 100644 src/api/wms/supplier.js create mode 100644 src/views/mes/pro/baseFile/index.vue create mode 100644 src/views/wms/bom/index.vue create mode 100644 src/views/wms/customer/index.vue create mode 100644 src/views/wms/machinery/index.vue create mode 100644 src/views/wms/product/index.vue create mode 100644 src/views/wms/productGroups/index.vue create mode 100644 src/views/wms/supplier/index.vue diff --git a/src/api/mes/pro/baseFile.js b/src/api/mes/pro/baseFile.js new file mode 100644 index 00000000..400497be --- /dev/null +++ b/src/api/mes/pro/baseFile.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询工艺附件管理列表 +export function listBaseFile(query) { + return request({ + url: '/mes/pro/baseFile/list', + method: 'get', + params: query + }); +} + +// 查询工艺附件管理详细 +export function getBaseFile(fileId) { + return request({ + url: '/mes/pro/baseFile/' + fileId, + method: 'get' + }); +} + +// 新增工艺附件管理 +export function addBaseFile(data) { + return request({ + url: '/mes/pro/baseFile', + method: 'post', + data: data + }); +} + +// 修改工艺附件管理 +export function updateBaseFile(data) { + return request({ + url: '/mes/pro/baseFile', + method: 'put', + data: data + }); +} + +// 删除工艺附件管理 +export function delBaseFile(fileId) { + return request({ + url: '/mes/pro/baseFile/' + fileId, + method: 'delete' + }); +} diff --git a/src/api/wms/bom.js b/src/api/wms/bom.js new file mode 100644 index 00000000..9486d016 --- /dev/null +++ b/src/api/wms/bom.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询物料BOM管理列表 +export function listBom(query) { + return request({ + url: '/wms/bom/list', + method: 'get', + params: query + }); +} + +// 查询物料BOM管理详细 +export function getBom(bomItemId) { + return request({ + url: '/wms/bom/' + bomItemId, + method: 'get' + }); +} + +// 新增物料BOM管理 +export function addBom(data) { + return request({ + url: '/wms/bom', + method: 'post', + data: data + }); +} + +// 修改物料BOM管理 +export function updateBom(data) { + return request({ + url: '/wms/bom', + method: 'put', + data: data + }); +} + +// 删除物料BOM管理 +export function delBom(bomItemId) { + return request({ + url: '/wms/bom/' + bomItemId, + method: 'delete' + }); +} diff --git a/src/api/wms/customer.js b/src/api/wms/customer.js new file mode 100644 index 00000000..5fcb5b64 --- /dev/null +++ b/src/api/wms/customer.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询客户管理列表 +export function listCustomer(query) { + return request({ + url: '/wms/customer/list', + method: 'get', + params: query + }); +} + +// 查询客户管理详细 +export function getCustomer(clientId) { + return request({ + url: '/wms/customer/' + clientId, + method: 'get' + }); +} + +// 新增客户管理 +export function addCustomer(data) { + return request({ + url: '/wms/customer', + method: 'post', + data: data + }); +} + +// 修改客户管理 +export function updateCustomer(data) { + return request({ + url: '/wms/customer', + method: 'put', + data: data + }); +} + +// 删除客户管理 +export function delCustomer(clientId) { + return request({ + url: '/wms/customer/' + clientId, + method: 'delete' + }); +} diff --git a/src/api/wms/machinery.js b/src/api/wms/machinery.js new file mode 100644 index 00000000..939f61f4 --- /dev/null +++ b/src/api/wms/machinery.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询机台管理列表 +export function listMachinery(query) { + return request({ + url: '/wms/machinery/list', + method: 'get', + params: query + }); +} + +// 查询机台管理详细 +export function getMachinery(machineryId) { + return request({ + url: '/wms/machinery/' + machineryId, + method: 'get' + }); +} + +// 新增机台管理 +export function addMachinery(data) { + return request({ + url: '/wms/machinery', + method: 'post', + data: data + }); +} + +// 修改机台管理 +export function updateMachinery(data) { + return request({ + url: '/wms/machinery', + method: 'put', + data: data + }); +} + +// 删除机台管理 +export function delMachinery(machineryId) { + return request({ + url: '/wms/machinery/' + machineryId, + method: 'delete' + }); +} diff --git a/src/api/wms/product.js b/src/api/wms/product.js new file mode 100644 index 00000000..7bd9b87d --- /dev/null +++ b/src/api/wms/product.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询物料信息列表 +export function listProduct(query) { + return request({ + url: '/wms/product/list', + method: 'get', + params: query + }); +} + +// 查询物料信息详细 +export function getProduct(productId) { + return request({ + url: '/wms/product/' + productId, + method: 'get' + }); +} + +// 新增物料信息 +export function addProduct(data) { + return request({ + url: '/wms/product', + method: 'post', + data: data + }); +} + +// 修改物料信息 +export function updateProduct(data) { + return request({ + url: '/wms/product', + method: 'put', + data: data + }); +} + +// 删除物料信息 +export function delProduct(productId) { + return request({ + url: '/wms/product/' + productId, + method: 'delete' + }); +} diff --git a/src/api/wms/productGroups.js b/src/api/wms/productGroups.js new file mode 100644 index 00000000..06c2b0f8 --- /dev/null +++ b/src/api/wms/productGroups.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询物料分组列表 +export function listProductGroups(query) { + return request({ + url: '/wms/productGroups/list', + method: 'get', + params: query + }); +} + +// 查询物料分组详细 +export function getProductGroups(pgId) { + return request({ + url: '/wms/productGroups/' + pgId, + method: 'get' + }); +} + +// 新增物料分组 +export function addProductGroups(data) { + return request({ + url: '/wms/productGroups', + method: 'post', + data: data + }); +} + +// 修改物料分组 +export function updateProductGroups(data) { + return request({ + url: '/wms/productGroups', + method: 'put', + data: data + }); +} + +// 删除物料分组 +export function delProductGroups(pgId) { + return request({ + url: '/wms/productGroups/' + pgId, + method: 'delete' + }); +} diff --git a/src/api/wms/supplier.js b/src/api/wms/supplier.js new file mode 100644 index 00000000..5ac103c0 --- /dev/null +++ b/src/api/wms/supplier.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询供应商管理列表 +export function listSupplier(query) { + return request({ + url: '/wms/supplier/list', + method: 'get', + params: query + }); +} + +// 查询供应商管理详细 +export function getSupplier(supplierId) { + return request({ + url: '/wms/supplier/' + supplierId, + method: 'get' + }); +} + +// 新增供应商管理 +export function addSupplier(data) { + return request({ + url: '/wms/supplier', + method: 'post', + data: data + }); +} + +// 修改供应商管理 +export function updateSupplier(data) { + return request({ + url: '/wms/supplier', + method: 'put', + data: data + }); +} + +// 删除供应商管理 +export function delSupplier(supplierId) { + return request({ + url: '/wms/supplier/' + supplierId, + method: 'delete' + }); +} diff --git a/src/views/mes/pro/baseFile/index.vue b/src/views/mes/pro/baseFile/index.vue new file mode 100644 index 00000000..92430bdb --- /dev/null +++ b/src/views/mes/pro/baseFile/index.vue @@ -0,0 +1,293 @@ + + + diff --git a/src/views/mes/pro/process/content.vue b/src/views/mes/pro/process/content.vue index 9c6ea327..07900ca1 100644 --- a/src/views/mes/pro/process/content.vue +++ b/src/views/mes/pro/process/content.vue @@ -48,7 +48,7 @@ - + @@ -72,7 +72,7 @@ - + - - - - + + + + diff --git a/src/views/wms/bom/index.vue b/src/views/wms/bom/index.vue new file mode 100644 index 00000000..1dd9e631 --- /dev/null +++ b/src/views/wms/bom/index.vue @@ -0,0 +1,342 @@ + + + diff --git a/src/views/wms/customer/index.vue b/src/views/wms/customer/index.vue new file mode 100644 index 00000000..3390c51a --- /dev/null +++ b/src/views/wms/customer/index.vue @@ -0,0 +1,444 @@ + + + diff --git a/src/views/wms/factory/index.vue b/src/views/wms/factory/index.vue index 3355bdd7..a2635806 100644 --- a/src/views/wms/factory/index.vue +++ b/src/views/wms/factory/index.vue @@ -58,7 +58,7 @@ @@ -163,10 +163,10 @@ export default { status: null, }, options: [{ - status: "0", + status: "1", label: '是' }, { - status: "1", + status: "0", label: '否' }], // 表单参数 diff --git a/src/views/wms/machinery/index.vue b/src/views/wms/machinery/index.vue new file mode 100644 index 00000000..9bb1d876 --- /dev/null +++ b/src/views/wms/machinery/index.vue @@ -0,0 +1,355 @@ + + + diff --git a/src/views/wms/product/index.vue b/src/views/wms/product/index.vue new file mode 100644 index 00000000..87ef27cf --- /dev/null +++ b/src/views/wms/product/index.vue @@ -0,0 +1,489 @@ + + + diff --git a/src/views/wms/productGroups/index.vue b/src/views/wms/productGroups/index.vue new file mode 100644 index 00000000..d81ed71d --- /dev/null +++ b/src/views/wms/productGroups/index.vue @@ -0,0 +1,391 @@ + + + diff --git a/src/views/wms/shifts/index.vue b/src/views/wms/shifts/index.vue index 39b843b9..381db41f 100644 --- a/src/views/wms/shifts/index.vue +++ b/src/views/wms/shifts/index.vue @@ -81,6 +81,8 @@ + + @@ -135,7 +137,7 @@ +
+ + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 修改 + + + 删除 + + + 导出 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/views/wms/warehouse/index.vue b/src/views/wms/warehouse/index.vue index c867f42b..4b84b7ba 100644 --- a/src/views/wms/warehouse/index.vue +++ b/src/views/wms/warehouse/index.vue @@ -72,7 +72,7 @@ - Date: Tue, 25 Jul 2023 09:36:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=AE=A1=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 d587e250..42dd29f3 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 df747f8c..7a8f60a5 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 00000000..05aa2996 --- /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 00000000..e4d03810 --- /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 ea0da45d..29ee2319 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 00000000..17e96a41 --- /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 9bb1d876..90b8375d 100644 --- a/src/views/wms/machinery/index.vue +++ b/src/views/wms/machinery/index.vue @@ -1,18 +1,18 @@