From 1ce61f13b7d49998ddbe27c48a456bff751e68d7 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Tue, 5 Dec 2023 14:30:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=9F=E6=A8=A1=E5=9D=97=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=83=BD=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 4 +- src/api/base/energyQuantityManual.js | 56 +++ src/utils/dict.js | 2 + .../components/energyQuantityManualAdd.vue | 150 ++++++++ .../base/energyQuantityManual/index.vue | 332 ++++++++++++++++++ .../base/energyType/components/InnerTable.vue | 9 +- .../energyType/components/energyTypeAdd.vue | 10 + .../energyLimit/components/energyLimitAdd.vue | 85 +++-- .../energy/monitoring/energyLimit/index.vue | 10 + .../monitoring/energyOverlimitLog/index.vue | 114 +++++- .../group/base/groupTeamScheduling/index.vue | 4 +- .../voc/vocDetectionHistory/index.vue | 8 + .../voc/vocDetectionIndication/index.vue | 8 + .../environmental/voc/vocManagement/index.vue | 8 + .../wasteGasDetectionHistory/index.vue | 8 + .../wasteGasDetectionIndication/index.vue | 8 + .../wasteGas/wasteGasManagement/index.vue | 8 + .../wasteWaterDetectionHistory/index.vue | 8 + .../components/wasteWaterAdd.vue | 161 +++++++++ .../wasteWaterDetectionIndication/index.vue | 202 +++++++++++ .../wasteWater/wasteWaterManagement/index.vue | 8 + 21 files changed, 1159 insertions(+), 44 deletions(-) create mode 100644 src/api/base/energyQuantityManual.js create mode 100644 src/views/energy/base/energyQuantityManual/components/energyQuantityManualAdd.vue create mode 100644 src/views/energy/base/energyQuantityManual/index.vue create mode 100644 src/views/safetyEnvironmental/environmental/voc/vocDetectionHistory/index.vue create mode 100644 src/views/safetyEnvironmental/environmental/voc/vocDetectionIndication/index.vue create mode 100644 src/views/safetyEnvironmental/environmental/voc/vocManagement/index.vue create mode 100644 src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionHistory/index.vue create mode 100644 src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionIndication/index.vue create mode 100644 src/views/safetyEnvironmental/environmental/wasteGas/wasteGasManagement/index.vue create mode 100644 src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionHistory/index.vue create mode 100644 src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionIndication/components/wasteWaterAdd.vue create mode 100644 src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionIndication/index.vue create mode 100644 src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterManagement/index.vue diff --git a/.env.dev b/.env.dev index 1da25e71..8b5bbe52 100644 --- a/.env.dev +++ b/.env.dev @@ -13,8 +13,8 @@ VUE_APP_TITLE = MES系统 # 芋道管理系统/开发环境 # VUE_APP_BASE_API = 'http://100.64.0.26:48082' -VUE_APP_BASE_API = 'http://192.168.0.33:48082' -# VUE_APP_BASE_API = 'http://192.168.4.173:48080' +# VUE_APP_BASE_API = 'http://192.168.0.33:48082' +VUE_APP_BASE_API = 'http://192.168.4.173:48080' # VUE_APP_BASE_API = 'http://192.168.2.173:48080' # VUE_APP_BASE_API = 'http://192.168.1.49:48082' # VUE_APP_BASE_API = 'http://192.168.1.8:48082' diff --git a/src/api/base/energyQuantityManual.js b/src/api/base/energyQuantityManual.js new file mode 100644 index 00000000..d919b5a3 --- /dev/null +++ b/src/api/base/energyQuantityManual.js @@ -0,0 +1,56 @@ +import request from '@/utils/request' + +// 获得分页数据 +export function energyQuantityManualPage(data) { + return request({ + url: '/base/energy-quantity-manual/page', + method: 'post', + data: data + }) +} + +// 创建 +export function energyQuantityManualCreate(data) { + return request({ + url: '/base/energy-quantity-manual/create', + method: 'post', + data: data + }) +} + +// 更新 +export function energyQuantityManualUpdate(data) { + return request({ + url: '/base/energy-quantity-manual/update', + method: 'put', + data: data + }) +} + +//获得能源抄表(手动) +export function energyQuantityManualGet(query) { + return request({ + url: '/base/energy-quantity-manual/get', + method: 'get', + params: query + }) +} + +//删除 +export function energyQuantityManualDelete(query) { + return request({ + url: '/base/energy-quantity-manual/delete', + method: 'delete', + params: query + }) +} + +//导出 +export function energyQuantityManualExport(data) { + return request({ + url: '/base/energy-quantity-manual/export-excel', + method: 'post', + data: data, + responseType: 'blob' + }) +} \ No newline at end of file diff --git a/src/utils/dict.js b/src/utils/dict.js index ecaafb16..64695e1e 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -94,6 +94,8 @@ export const DICT_TYPE = { OBJECT_TYPE: 'object_type', STATISTIC_TYPE: 'statistic_type', TIME_DIM: 'time_dim', + TABLE_NAME: 'table_name', + METHOD: 'method', // ============== ORDER - 订单模块 ============= ORDER_STATUS: 'order_status', diff --git a/src/views/energy/base/energyQuantityManual/components/energyQuantityManualAdd.vue b/src/views/energy/base/energyQuantityManual/components/energyQuantityManualAdd.vue new file mode 100644 index 00000000..8d40d3d8 --- /dev/null +++ b/src/views/energy/base/energyQuantityManual/components/energyQuantityManualAdd.vue @@ -0,0 +1,150 @@ + + \ No newline at end of file diff --git a/src/views/energy/base/energyQuantityManual/index.vue b/src/views/energy/base/energyQuantityManual/index.vue new file mode 100644 index 00000000..33a5edf2 --- /dev/null +++ b/src/views/energy/base/energyQuantityManual/index.vue @@ -0,0 +1,332 @@ + + + diff --git a/src/views/energy/base/energyType/components/InnerTable.vue b/src/views/energy/base/energyType/components/InnerTable.vue index 4dba190d..c7bfcfa7 100644 --- a/src/views/energy/base/energyType/components/InnerTable.vue +++ b/src/views/energy/base/energyType/components/InnerTable.vue @@ -1,12 +1,13 @@ @@ -91,6 +111,7 @@ export default { return { form: { id: '', + method: '1', objectId: '', objectType: '', energyTypeId: '', @@ -103,7 +124,8 @@ export default { objIds: [],// 回显数组 isEdit: false, //是否是编辑 rules: { - objectId: [{ required: true, message: '对象不能为空', trigger: 'change' }], + method: [{ required: true, message: '抄表方式不能为空', trigger: 'change' }], + objectId: [{ required: true, message: '监控对象不能为空', trigger: 'change' }], energyTypeId: [{ required: true, message: '能源类型不能为空', trigger: 'change' }], type: [{ required: true, message: '监控模式不能为空', trigger: 'change' }], limitType: [{ required: true, message: '指标类型不能为空', trigger: 'change' }] @@ -120,6 +142,7 @@ export default { if (res.code === 0) { this.form = res.data this.form.plcParamId = res.data.plcParamId || '' + this.form.method = this.form.method ? this.form.method + '' : '' this.form.limitType = this.form.limitType ? this.form.limitType + '' : '' this.objIds = this.changeDetSelect(this.form.objectId, this.objList) if (this.form.type === 2) { @@ -132,6 +155,14 @@ export default { this.form.id = '' } }, + // 切换方式 + changeMethod() { + if(this.form.method === '2'){ + this.form.limitType = "2" + }else{ + this.form.limitType = '' + } + }, // 监控详细参数 getDetailList() { getEnergyParamList({ diff --git a/src/views/energy/monitoring/energyLimit/index.vue b/src/views/energy/monitoring/energyLimit/index.vue index 1b82ab8b..d72aede2 100644 --- a/src/views/energy/monitoring/energyLimit/index.vue +++ b/src/views/energy/monitoring/energyLimit/index.vue @@ -51,6 +51,11 @@ import { getTree } from '@/api/base/factory' import { publicFormatter } from '@/utils/dict' import EnergyLimitAdd from './components/energyLimitAdd' const tableProps = [ + { + prop: 'method', + label: '抄表方式', + filter: publicFormatter('method') + }, { prop: 'objName', label: '监控对象' @@ -59,6 +64,11 @@ const tableProps = [ prop: 'objCode', label: '对象编码' }, + { + prop: 'tableName', + label: '水/气表名', + filter: publicFormatter('table_name') + }, { prop: 'energyType', label: '能源类型' diff --git a/src/views/energy/monitoring/energyOverlimitLog/index.vue b/src/views/energy/monitoring/energyOverlimitLog/index.vue index f748592c..c9284dea 100644 --- a/src/views/energy/monitoring/energyOverlimitLog/index.vue +++ b/src/views/energy/monitoring/energyOverlimitLog/index.vue @@ -1,5 +1,5 @@