From b709ce063990d8a98e466d1293f47f6b7168db9b Mon Sep 17 00:00:00 2001 From: zhangdi <1104545947@qq.com> Date: Fri, 17 Apr 2026 17:11:48 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E5=AE=89=E7=8E=AF=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/menu.js | 130 ++++++++++++++++++++++---------------------- 1 file changed, 65 insertions(+), 65 deletions(-) diff --git a/pages/index/menu.js b/pages/index/menu.js index 6239177..adc0575 100644 --- a/pages/index/menu.js +++ b/pages/index/menu.js @@ -220,71 +220,71 @@ const menus = { ], }, - // { - // title: '安环管理', - // children: [ - // { - // key: "spotCheck", - // title: "安全点检", - // url: "../safe/spotCheck", - // bgColor: '', - // limit: 'RB2315', - // icon: { - // size: 20, - // color: '#00b7ee', - // type: '' - // } - // }, - // { - // key: "inspection", - // title: "安全巡检", - // url: "../safe/inspection", - // bgColor: '', - // limit: 'RB2316', - // icon: { - // size: 20, - // color: '#00b7ee', - // type: '' - // } - // }, - // { - // key: "waterInspection", - // title: "废水巡检", - // url: "../sanitation/waterInspection", - // bgColor: '', - // limit: 'RB2318', - // icon: { - // size: 20, - // color: '#00b7ee', - // type: '' - // } - // }, - // { - // key: "gasInspection", - // title: "废气巡检", - // url: "../sanitation/gasInspection", - // bgColor: '', - // limit: 'RB2319', - // icon: { - // size: 20, - // color: '#00b7ee', - // type: '' - // } - // }, - // { - // key: "bsTower", - // title: "酸雾塔", - // url: "../sanitation/bsTower", - // bgColor: '', - // limit: 'RB2319', - // icon: { - // size: 20, - // color: '#00b7ee', - // type: '' - // } - // }, - // ] - // }, + { + title: '安环管理', + children: [ + { + key: "spotCheck", + title: "安全点检", + url: "../safe/spotCheck", + bgColor: '', + limit: 'RB2315', + icon: { + size: 20, + color: '#00b7ee', + type: '' + } + }, + { + key: "inspection", + title: "安全巡检", + url: "../safe/inspection", + bgColor: '', + limit: 'RB2316', + icon: { + size: 20, + color: '#00b7ee', + type: '' + } + }, + { + key: "waterInspection", + title: "废水巡检", + url: "../sanitation/waterInspection", + bgColor: '', + limit: 'RB2318', + icon: { + size: 20, + color: '#00b7ee', + type: '' + } + }, + { + key: "gasInspection", + title: "废气巡检", + url: "../sanitation/gasInspection", + bgColor: '', + limit: 'RB2319', + icon: { + size: 20, + color: '#00b7ee', + type: '' + } + }, + { + key: "bsTower", + title: "酸雾塔", + url: "../sanitation/bsTower", + bgColor: '', + limit: 'RB2319', + icon: { + size: 20, + color: '#00b7ee', + type: '' + } + }, + ] + }, { title: '物流配送', children: [ From 9ea88ab0fee4fb6aee731977de624a8046a2997e Mon Sep 17 00:00:00 2001 From: zhangdi <1104545947@qq.com> Date: Tue, 21 Apr 2026 13:40:01 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E5=B7=A5=E5=BA=8F=E6=8A=A5=E5=B7=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plan/workReport.vue | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/pages/plan/workReport.vue b/pages/plan/workReport.vue index 21b9715..b0c73f7 100644 --- a/pages/plan/workReport.vue +++ b/pages/plan/workReport.vue @@ -244,6 +244,33 @@ export default { twoInputFcous: true, }; }, + // 新增 watch 监听 + watch: { + // 监听报废数量的变化 + 'formData.scrapQty'(newVal) { + // 确保有总数量数据,且报废数量是有效数字 + if (this.tableObj.notWorkQty !== undefined && this.tableObj.notWorkQty !== null) { + const totalQty = Number(this.tableObj.notWorkQty); + const scrap = Number(newVal); + + // 如果报废数量是有效数字 + if (!isNaN(scrap)) { + // 计算剩余可合格数量:总数量 - 报废数量 + let remainingQty = totalQty - scrap; + + // 防止出现负数,最小为0 + if (remainingQty < 0) { + remainingQty = 0; + // 可选:如果报废超过总数,可以提示用户或强制修正报废数量 + // uni.showToast({ title: '报废数量不能超过总数量', icon: 'none' }); + } + + // 更新合格数量 + this.formData.workQty = remainingQty; + } + } + } + }, methods: {}, onNavigationBarButtonTap(btn) { this.$refs.ifrm.topMenuClick(btn); 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 3/9] =?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 From af61d53211e44cb8e72f41630e4eaa5cb1cc2aaa Mon Sep 17 00:00:00 2001 From: ysn <2126564605@qq.com> Date: Thu, 23 Apr 2026 19:22:26 +0800 Subject: [PATCH 4/9] =?UTF-8?q?PDA-=E5=AE=89=E7=8E=AF=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E5=B7=A1=E6=A3=80-=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/safe/inspection.vue | 409 +++++++++++++++++++------------------- 1 file changed, 199 insertions(+), 210 deletions(-) diff --git a/pages/safe/inspection.vue b/pages/safe/inspection.vue index a91e223..44bdf3d 100644 --- a/pages/safe/inspection.vue +++ b/pages/safe/inspection.vue @@ -1,231 +1,220 @@ \ No newline at end of file From 06b88868559fa9d889727229ab13aac931c0f37d Mon Sep 17 00:00:00 2001 From: ysn <2126564605@qq.com> Date: Thu, 23 Apr 2026 19:23:07 +0800 Subject: [PATCH 5/9] =?UTF-8?q?PDA-=E5=AE=89=E7=8E=AF=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E7=82=B9=E6=A3=80-=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=8F=90=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/safe/spotCheck.vue | 241 +++++++++++++++++++++------------------ 1 file changed, 129 insertions(+), 112 deletions(-) diff --git a/pages/safe/spotCheck.vue b/pages/safe/spotCheck.vue index 7a64749..af2724d 100644 --- a/pages/safe/spotCheck.vue +++ b/pages/safe/spotCheck.vue @@ -1,120 +1,137 @@