From ea7c419c6fc2b72f2612c6838fda737d99be1313 Mon Sep 17 00:00:00 2001 From: helloDy <1615073571@qq.com> Date: Wed, 21 Feb 2024 18:39:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E6=A0=B8=E5=BF=83=EF=BC=8C?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=9F=BA=E7=A1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 5 +- src/api/equipment/base/config/config.js | 35 ++++ src/views/base/coreProduct/add-or-updata.vue | 47 +++--- .../base/coreProductionLine/add-or-updata.vue | 46 ++++-- src/views/base/coreProductionLine/index.vue | 16 +- src/views/base/coreWorkOrder/addWorkOrder.vue | 44 ++++-- src/views/base/coreWorkOrder/index.vue | 35 +++- src/views/base/material/add-or-updata.vue | 32 ++-- .../DataCollection/CollectionConfig.vue | 33 ++-- .../config/DataCollection/add-or-updata.vue | 149 ++++++++++++++++++ 10 files changed, 345 insertions(+), 97 deletions(-) create mode 100644 src/api/equipment/base/config/config.js create mode 100644 src/views/equipment/base/config/DataCollection/add-or-updata.vue diff --git a/.env.dev b/.env.dev index 255be9dc..08a07f57 100644 --- a/.env.dev +++ b/.env.dev @@ -1,8 +1,8 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2024-01-29 16:29:24 - # @LastEditors: zhp + # @LastEditTime: 2024-02-18 10:36:55 + # @LastEditors: DY # @Description: ### # 开发环境配置 @@ -25,7 +25,6 @@ VUE_APP_TITLE = MES系统 VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.1.62:48082' # VUE_APP_BASE_API = 'http://192.168.1.78:48082' - # VUE_APP_BASE_API = 'http://192.168.1.78:48082' # dcs地址 VUE_APP_Socket_Dcs_API = 'ws://10.70.180.10:8081' diff --git a/src/api/equipment/base/config/config.js b/src/api/equipment/base/config/config.js new file mode 100644 index 00000000..71f73aa9 --- /dev/null +++ b/src/api/equipment/base/config/config.js @@ -0,0 +1,35 @@ +/* + * @Author: Do not edit + * @Date: 2024-02-21 13:43:02 + * @LastEditTime: 2024-02-21 15:00:17 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 获得关联表名 +export function getplcAllList(query) { + return request({ + url: '/base/equipment-plc/listAll', + method: 'get', + params: query + }) +} + +// 获得设备 +export function getEquipmentList(query) { + return request({ + url: '/base/core-equipment/page', + method: 'get', + params: query + }) +} + +// 根据产线获得工段 +export function listByParentId(query) { + return request({ + url: '/base/core-workshop-section/listByParentId', + method: 'get', + params: query + }) +} diff --git a/src/views/base/coreProduct/add-or-updata.vue b/src/views/base/coreProduct/add-or-updata.vue index 0b2923e3..92a55c9a 100644 --- a/src/views/base/coreProduct/add-or-updata.vue +++ b/src/views/base/coreProduct/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2024-01-08 16:11:03 + * @LastEditTime: 2024-02-21 09:04:48 * @Description: -->