From 101c12da0c53545b03b1a13a1094c995943eb980 Mon Sep 17 00:00:00 2001 From: zhouhy Date: Wed, 15 May 2024 14:53:09 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20add=E7=94=B5=E3=80=81=E6=B0=B4?= =?UTF-8?q?=E5=AE=9E=E6=97=B6=E6=95=B0=E6=8D=AE=20change=20-=20update=20?= =?UTF-8?q?=E8=AE=A1=E9=87=8F=E8=AE=BE=E5=A4=87=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ems/base/baseMonitorInfo.js | 9 + src/api/ems/record/recordWaterInstant.js | 44 ++ src/api/mes/prod/prodBomInfo.js | 9 - src/views/ems/base/baseMonitorInfo/index.vue | 8 +- .../ems/base/baseMonitorInfoGas/index.vue | 452 +++++++++++++ .../ems/base/baseMonitorInfoWater/index.vue | 453 +++++++++++++ .../ems/base/baseMonitorWorkUnit/index.vue | 32 +- .../ems/record/recordDnbInstant/index.vue | 594 ++++++++++-------- .../ems/record/recordWaterInstant/index.vue | 485 ++++++++++++++ src/views/mes/prod/prodBomInfo/childIndex.vue | 293 ++++----- src/views/mes/prod/prodBomInfo/index.vue | 32 +- 11 files changed, 1944 insertions(+), 467 deletions(-) create mode 100644 src/api/ems/record/recordWaterInstant.js create mode 100644 src/views/ems/base/baseMonitorInfoGas/index.vue create mode 100644 src/views/ems/base/baseMonitorInfoWater/index.vue create mode 100644 src/views/ems/record/recordWaterInstant/index.vue diff --git a/src/api/ems/base/baseMonitorInfo.js b/src/api/ems/base/baseMonitorInfo.js index 8f4a96f..466f5a3 100644 --- a/src/api/ems/base/baseMonitorInfo.js +++ b/src/api/ems/base/baseMonitorInfo.js @@ -42,3 +42,12 @@ export function delBaseMonitorInfo(objId) { method: 'delete' }) } + +// 查询计量设备信息下拉树结构 +export function getMonitorInfoTree(data) { + return request({ + url: '/ems/base/baseMonitorInfo/monitorInfoTree', + method: 'post', + data: data + }) +} diff --git a/src/api/ems/record/recordWaterInstant.js b/src/api/ems/record/recordWaterInstant.js new file mode 100644 index 0000000..04b99e9 --- /dev/null +++ b/src/api/ems/record/recordWaterInstant.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询水实时数据列表 +export function listRecordWaterInstant(query) { + return request({ + url: '/ems/record/recordWaterInstant/list', + method: 'get', + params: query + }) +} + +// 查询水实时数据详细 +export function getRecordWaterInstant(objId) { + return request({ + url: '/ems/record/recordWaterInstant/' + objId, + method: 'get' + }) +} + +// 新增水实时数据 +export function addRecordWaterInstant(data) { + return request({ + url: '/ems/record/recordWaterInstant', + method: 'post', + data: data + }) +} + +// 修改水实时数据 +export function updateRecordWaterInstant(data) { + return request({ + url: '/ems/record/recordWaterInstant', + method: 'put', + data: data + }) +} + +// 删除水实时数据 +export function delRecordWaterInstant(objId) { + return request({ + url: '/ems/record/recordWaterInstant/' + objId, + method: 'delete' + }) +} diff --git a/src/api/mes/prod/prodBomInfo.js b/src/api/mes/prod/prodBomInfo.js index c935aaa..cec3309 100644 --- a/src/api/mes/prod/prodBomInfo.js +++ b/src/api/mes/prod/prodBomInfo.js @@ -51,12 +51,3 @@ export function findOrderBomList(query) { params: query }) } - -// 查询生产BOM树列表 -export function productionBomTreeList(query) { - return request({ - url: '/mes/prod/prodBomInfo/productionBomTreeList', - method: 'get', - params: query - }) -} diff --git a/src/views/ems/base/baseMonitorInfo/index.vue b/src/views/ems/base/baseMonitorInfo/index.vue index 816579d..f0583dd 100644 --- a/src/views/ems/base/baseMonitorInfo/index.vue +++ b/src/views/ems/base/baseMonitorInfo/index.vue @@ -94,14 +94,12 @@ - - @@ -157,7 +155,7 @@ - + @@ -262,7 +260,7 @@ export default { monitorCode: null, monitorName: null, monitorAddr: null, - monitorType: null, + monitorType: 2, monitorStatus: null, collectDeviceId: null, ancestors: null, @@ -364,7 +362,7 @@ export default { monitorCode: null, monitorName: null, monitorAddr: null, - monitorType: null, + monitorType: 2, monitorStatus: null, collectDeviceId: null, ancestors: null, diff --git a/src/views/ems/base/baseMonitorInfoGas/index.vue b/src/views/ems/base/baseMonitorInfoGas/index.vue new file mode 100644 index 0000000..87a1090 --- /dev/null +++ b/src/views/ems/base/baseMonitorInfoGas/index.vue @@ -0,0 +1,452 @@ + + + diff --git a/src/views/ems/base/baseMonitorInfoWater/index.vue b/src/views/ems/base/baseMonitorInfoWater/index.vue new file mode 100644 index 0000000..3622752 --- /dev/null +++ b/src/views/ems/base/baseMonitorInfoWater/index.vue @@ -0,0 +1,453 @@ + + + diff --git a/src/views/ems/base/baseMonitorWorkUnit/index.vue b/src/views/ems/base/baseMonitorWorkUnit/index.vue index 37e6a6b..267c710 100644 --- a/src/views/ems/base/baseMonitorWorkUnit/index.vue +++ b/src/views/ems/base/baseMonitorWorkUnit/index.vue @@ -39,6 +39,7 @@ @keyup.enter.native="handleQuery" /> + @@ -57,6 +58,16 @@ + + + + + - + + + - +