From 19d7c2ed823619f06ec1a4069308199f4387f73b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Mon, 30 Jun 2025 18:00:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yanzhu-bigscreen/src/components/header.vue | 3 + yanzhu-bigscreen/src/router/index.js | 6 + .../quality/dialog/qualityCheckDialog.vue | 285 +++++ .../src/views/quality/qualityCheck.vue | 1032 +++++++++++++++++ .../trouble/SmzSspProblemmodifyMapper.xml | 4 +- .../wechat/WXAttendanceController.java | 6 +- .../miniprogram/pages/login/login.wxml | 4 + .../miniprogram/pages/login/login.wxss | 16 +- 8 files changed, 1350 insertions(+), 6 deletions(-) create mode 100644 yanzhu-bigscreen/src/views/quality/dialog/qualityCheckDialog.vue create mode 100644 yanzhu-bigscreen/src/views/quality/qualityCheck.vue diff --git a/yanzhu-bigscreen/src/components/header.vue b/yanzhu-bigscreen/src/components/header.vue index 6b18ecf4..5a6944c6 100644 --- a/yanzhu-bigscreen/src/components/header.vue +++ b/yanzhu-bigscreen/src/components/header.vue @@ -312,6 +312,9 @@ export default { case 102: this.$router.push("/labor"); break; + case 401: + this.$router.push("/qualityCheck"); + break; case 501: this.$router.push("/photography"); break; diff --git a/yanzhu-bigscreen/src/router/index.js b/yanzhu-bigscreen/src/router/index.js index 6335498d..4c3a6be6 100644 --- a/yanzhu-bigscreen/src/router/index.js +++ b/yanzhu-bigscreen/src/router/index.js @@ -111,6 +111,12 @@ const routes = [ meta: { nav: 310 }, component: () => import(/* webpackChunkName: "safetyCheck" */ "../views/safety/aiWarning.vue"), }, + { + path: "/qualityCheck", + name: "qualityCheck", + meta: { nav: 401 }, + component: () => import(/* webpackChunkName: "qualityCheck" */ "../views/quality/qualityCheck.vue"), + }, { path: "/photography", name: "photography", diff --git a/yanzhu-bigscreen/src/views/quality/dialog/qualityCheckDialog.vue b/yanzhu-bigscreen/src/views/quality/dialog/qualityCheckDialog.vue new file mode 100644 index 00000000..96ef560d --- /dev/null +++ b/yanzhu-bigscreen/src/views/quality/dialog/qualityCheckDialog.vue @@ -0,0 +1,285 @@ + + + {{ title }} + + 待整改{{ counts[0] }} + 待复检{{ counts[1] }} + 复检驳回{{ counts[2] }} + 复检通过{{ counts[3] }} + 整改超时{{ counts[4] }} + + + + + 暂无数据 + + + + + 整改前 + 整改后 + + + + + + + 隐串类型: + {{ getDict(it.dangerType) }} + + + 提交时间: + {{ it.createTime }} + + + 提交人: + {{ it.createUser }} + + + 整改人: + {{ it.lordSentUser }} + + + 抄送人: + {{ it.copySendUser }} + + + 截止时间: + {{ it.nickedTime }} + + + 隐患描述: + {{ it.workParts }} + + + 整改要求: + {{ it.changeInfo }} + + + + + + + + + + + \ No newline at end of file diff --git a/yanzhu-bigscreen/src/views/quality/qualityCheck.vue b/yanzhu-bigscreen/src/views/quality/qualityCheck.vue new file mode 100644 index 00000000..6c6379f6 --- /dev/null +++ b/yanzhu-bigscreen/src/views/quality/qualityCheck.vue @@ -0,0 +1,1032 @@ + + + + + + + + + + + + {{ it.name }} + + + {{ it.value || 0 }} + 条 + + + + + + + + + + + {{ item1Data.total }} + + 问题总数 + + + + + + + {{ it.name }} + + {{ it.value }} + {{ it.percent }}% + + + + + 最新提交 + + + + + + 提交人: + {{ it.createUser }} + + + 整改人: + {{ it.lordSentUser }} + + + 复检人: + {{ it.recheckSendUser }} + + + 隐患描述: + {{ it.workParts }} + + + 整改要求: + {{ it.changeInfo }} + + + 状态: + {{ getStatus(it.checkState) }} + + + + + + + + + + + + + + + + + + + + {{ item2Data.total }} + + 问题总数 + + + + + + + {{ it.name }} + + {{ it.value }} + {{ it.percent }}% + + + + + 最新提交 + + + + + + 提交人: + {{ it.createUser }} + + + 整改人: + {{ it.lordSentUser }} + + + 复检人: + {{ it.recheckSendUser }} + + + 隐患描述: + {{ it.workParts }} + + + 整改要求: + {{ it.changeInfo }} + + + 状态: + {{ getStatus(it.checkState) }} + + + + + + + + + + + + + + {{ item3Data.total }} + + 问题总数 + + + + + + + {{ it.name }} + + {{ it.value }} + {{ it.percent }}% + + + + + 最新提交 + + + + + + 提交人: + {{ it.createUser }} + + + 整改人: + {{ it.lordSentUser }} + + + 复检人: + {{ it.recheckSendUser }} + + + 隐患描述: + {{ it.workParts }} + + + 整改要求: + {{ it.changeInfo }} + + + 状态: + {{ getStatus(it.checkState) }} + + + + + + + + + + + + + + {{ item4Data.total }} + + 问题总数 + + + + + + + {{ it.name }} + + {{ it.value }} + {{ it.percent }}% + + + + + 最新提交 + + + + + + 提交人: + {{ it.createUser }} + + + 整改人: + {{ it.lordSentUser }} + + + 复检人: + {{ it.recheckSendUser }} + + + 隐患描述: + {{ it.workParts }} + + + 整改要求: + {{ it.changeInfo }} + + + 状态: + {{ getStatus(it.checkState) }} + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml index e98ec73b..1585fee2 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml @@ -483,7 +483,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT - a.cnt id, + ifNull(a.cnt,0) as id, b.cnt comId, dic.dict_value nickedInfo, dic.dict_label danger_type @@ -524,5 +524,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" GROUP BY dic.dict_value ) b ON b.dict_value = dic.dict_value + where 1=1 + and dic.remark = #{infoType} \ No newline at end of file diff --git a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/wechat/WXAttendanceController.java b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/wechat/WXAttendanceController.java index e1f2176e..e2bd2edc 100644 --- a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/wechat/WXAttendanceController.java +++ b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/wechat/WXAttendanceController.java @@ -102,7 +102,11 @@ public class WXAttendanceController extends BaseController { } Map data = new HashMap<>(); data.put("list",list); - data.put("user",Math.floorDiv(list.stream().mapToInt((u) -> Integer.valueOf(String.valueOf(u.get("total")))).sum(),list.size())); + if(list.size()>0){ + data.put("user",Math.floorDiv(list.stream().mapToInt((u) -> Integer.valueOf(String.valueOf(u.get("total")))).sum(),list.size())); + }else{ + data.put("user",0); + } return AjaxResult.success(data); } diff --git a/yanzhu-ui-app/miniprogram/pages/login/login.wxml b/yanzhu-ui-app/miniprogram/pages/login/login.wxml index 089c646f..6eaa8133 100644 --- a/yanzhu-ui-app/miniprogram/pages/login/login.wxml +++ b/yanzhu-ui-app/miniprogram/pages/login/login.wxml @@ -37,4 +37,8 @@ 手机号快捷登录 + + + 仅限特定人群登录 + \ No newline at end of file diff --git a/yanzhu-ui-app/miniprogram/pages/login/login.wxss b/yanzhu-ui-app/miniprogram/pages/login/login.wxss index 9c6776ac..22fac7c9 100644 --- a/yanzhu-ui-app/miniprogram/pages/login/login.wxss +++ b/yanzhu-ui-app/miniprogram/pages/login/login.wxss @@ -15,18 +15,18 @@ page { } .login_title { - height: 158rpx; - line-height: 158rpx; + height: 125rpx; + line-height: 125rpx; color: #DDDDDD; font-size: 40rpx; font-weight: bold; text-align: center; word-spacing: 30rpx; background: url("https://xiangguan.sxyanzhu.com/profile/static/yanzhu_title.png") no-repeat left/100% 100%; - margin-bottom: 50px; + margin-bottom: 68px; } .login_title image{ - height: 148rpx; + height: 125rpx; } .login_bg { @@ -113,6 +113,14 @@ page { height: 100rpx; } +.login_foot{ + position: fixed; + width: 84%; + bottom: 50px; + text-align: center; + color: aquamarine; +} + .loadings{ margin-top: 15%; text-align: center;