From 5af91a028ab8cbe188a361591b910fa7d472488d Mon Sep 17 00:00:00 2001 From: ysn <2126564605@qq.com> Date: Thu, 23 Apr 2026 16:11:51 +0800 Subject: [PATCH] =?UTF-8?q?PDA-=E5=AE=89=E7=8E=AF=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E9=85=B8=E9=9B=BE=E5=A1=94-=E9=A1=B5=E9=9D=A2=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/safe.js | 55 +++++ api/sanitation.js | 38 +++ pages/sanitation/bsTower.vue | 438 +++++++++++++++++------------------ 3 files changed, 311 insertions(+), 220 deletions(-) create mode 100644 api/safe.js create mode 100644 api/sanitation.js diff --git a/api/safe.js b/api/safe.js new file mode 100644 index 0000000..5ecd34b --- /dev/null +++ b/api/safe.js @@ -0,0 +1,55 @@ +import http from '@/http/api.js' +// 安全点检-根据设备编码查询点检项@param {string} code 设备编码 +const getSpotCheckByCode = (code) => { + return http.request({ + url: `/blade-desk/pdaLoad/getSpotCheckByEcCode/${code}`, + method: 'GET' + }) +} +// 安全点检-提交点检数据 @param {object} data 提交参数 { sscList: [...] } +const saveSpotCheck = (data) => { + return http.request({ + url: '/blade-desk/pdaSave/saveBySpotCheck', + method: 'POST', + data + }) +} +// 安全巡检-根据编码查询巡检点 @param {String} code 巡检点编码 +const getInspectionByCode = (code) => { + return http.request({ + url: `/blade-desk/pdaLoad/getInspectionByEcCode/${code}`, + method: 'GET' + }) +} +// 安全巡检-提交巡检数据 @param {object} data 提交参数 { icList: [...] } +const saveInspection = (data) => { + return http.request({ + url: '/blade-desk/pdaSave/saveByInspection', + method: 'POST', + data + }) +} +// 设备报修-根据设备编码查询设备信息@param {string} deviceCode 设备编码 +const getEcByDeviceCode = (deviceCode) => { + return http.request({ + url: '/blade-desk/pdaLoad/getEcByDeviceCode', + method: 'POST', + data: { deviceCode } + }) +} +// 设备报修-提交设备报修 @param {object} data 报修数据 +const saveEqRepair = (data) => { + return http.request({ + url: '/blade-desk/pdaSave/saveEqRepair', + method: 'POST', + data + }) +} +export default { + getInspectionByCode, + saveInspection, + getSpotCheckByCode, + saveSpotCheck, + getEcByDeviceCode, + saveEqRepair +} \ No newline at end of file diff --git a/api/sanitation.js b/api/sanitation.js new file mode 100644 index 0000000..2af5ae7 --- /dev/null +++ b/api/sanitation.js @@ -0,0 +1,38 @@ +import http from '@/http/api.js' +// 废水/废气巡检-根据巡检点编码查询任务 +const getInspectionBySan = (params) => { + return http.request({ + url: '/blade-desk/pdaLoad/getInspectionBySan', + method: 'POST', + data: params + }) +} +// 废水/废气巡检-提交巡检结果 +const savePatrolIns = (data) => { + return http.request({ + url: '/blade-desk/pdaSave/savePatrolIns', + method: 'POST', + data + }) +} +// 酸雾塔加药接口-根据设备编码查询加药记录 @param {string} code 设备编码 +const epDosingRecByCode = (code) => { + return http.request({ + url: `/blade-desk/pdaLoad/epDosingRecByCode/${code}`, + method: 'GET' + }) +} +// 酸雾塔加药接口-提交加药记录 @param {object} data 加药数据 +const saveEpDosingRec = (data) => { + return http.request({ + url: '/blade-desk/pdaSave/saveEpDosingRec', + method: 'POST', + data + }) +} +export default { + getInspectionBySan, + savePatrolIns, + epDosingRecByCode, + saveEpDosingRec +} \ No newline at end of file diff --git a/pages/sanitation/bsTower.vue b/pages/sanitation/bsTower.vue index 8082807..12d0254 100644 --- a/pages/sanitation/bsTower.vue +++ b/pages/sanitation/bsTower.vue @@ -1,34 +1,38 @@ \ No newline at end of file