From 26442645eb1b51e4c1c2c25f34cc4bd435a61fc4 Mon Sep 17 00:00:00 2001 From: lj7788 Date: Tue, 31 Mar 2026 17:35:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E5=A2=9E=E5=8A=A0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/manage/AttendanceUbiDataMapper.xml | 2 + .../views/manage/attendanceUbiData/index.vue | 121 +++++++++++------- .../manage/attendanceUbiData/statistics.vue | 28 +++- .../manage/attendance_ubi_device/index.vue | 3 +- .../manage/mobileAttendanceData/index.vue | 22 +++- 5 files changed, 119 insertions(+), 57 deletions(-) diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/AttendanceUbiDataMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/AttendanceUbiDataMapper.xml index a76fb6a5..55da8827 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/AttendanceUbiDataMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/AttendanceUbiDataMapper.xml @@ -54,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and comId = #{comId} and projectId = #{projectId} + and cfg_id = #{cfgId} and sub_dept_id = #{subDeptId} and userId = #{userId} and userName like concat('%', #{userName}, '%') @@ -95,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" from attendance_ubi_data ad and ad.projectId = #{projectId} + and ad.cfg_id = #{cfgId} and ad.sub_dept_id = #{subDeptId} and date(ifNull(ad.`inTime`,ad.`outTime`)) = ]]> date(#{inTime}) and date(ifNull(ad.`outTime`,ad.`inTime`)) date(#{outTime}) diff --git a/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue b/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue index 989dd622..81414a4c 100644 --- a/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue @@ -1,32 +1,39 @@ diff --git a/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/statistics.vue b/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/statistics.vue index 77ffbb09..2e166e83 100644 --- a/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/statistics.vue +++ b/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/statistics.vue @@ -13,6 +13,12 @@ @change="() => { handleQuery(); }"> + + + + + @@ -69,7 +75,7 @@ import {statisticsAttendanceUbiData,statisticsExportAttendanceUbiData} from '@/a import useUserStore from '@/store/modules/user' import attItem from './item.vue' const { proxy } = getCurrentInstance(); - +import { listAttendance_cfg } from '@/api/manage/attendancecfg' const { pro_craft_type, pro_craft_post } = proxy.useDict( 'pro_craft_type', 'pro_craft_post'); const userStore = useUserStore() @@ -81,7 +87,8 @@ const data = reactive({ inTime: '', projectId: '', subDeptId: '', - showType: '0' + showType: '0', + cfgId: '', }, rules: { @@ -94,6 +101,7 @@ const data = reactive({ total: 0, tdDays:[], elkey:0, + cfgOptions: [], }); const { queryParams, form, rules } = toRefs(data); @@ -136,7 +144,8 @@ function getList() { pageNum:queryParams.value.pageNum, pageSize:queryParams.value.pageSize, projectId:queryParams.value.projectId, - subDeptId:queryParams.value.subDeptId + subDeptId:queryParams.value.subDeptId, + cfgId:queryParams.value.cfgId, } let dt1=proxy.$dt(queryParams.value.inTime); let dt2=dt1.month(dt1.month()+1); @@ -197,8 +206,19 @@ function resetQuery() { handleQuery(); } queryParams.value.inTime = proxy.$dt(new Date()).format("YYYY-MM-DD"); + +/** 查询配置项列表 */ +function getCfgList() { + listAttendance_cfg({ projectId: userStore.currentPrjId, pageNum: 1, pageSize: 100 }).then(response => { + data.cfgOptions = response.rows || [] + queryParams.value.cfgId = data.cfgOptions[0]?.id || null + handleQuery(); + }); +} + + getProjectList(); -handleQuery(); +getCfgList() \ No newline at end of file diff --git a/yanzhu-ui-vue3/src/views/manage/attendance_ubi_device/index.vue b/yanzhu-ui-vue3/src/views/manage/attendance_ubi_device/index.vue index 9366cdbe..8ff8d80a 100644 --- a/yanzhu-ui-vue3/src/views/manage/attendance_ubi_device/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/attendance_ubi_device/index.vue @@ -9,7 +9,7 @@ - + @@ -333,7 +333,6 @@ function handleAdd() { form.value.projectId = userStore.currentPrjId form.value.projectName = userStore.currentProName form.value.source = ubi_device_source.value[0].value - getCfgList() open.value = true title.value = '添加宇泛的设备信息' } diff --git a/yanzhu-ui-vue3/src/views/manage/mobileAttendanceData/index.vue b/yanzhu-ui-vue3/src/views/manage/mobileAttendanceData/index.vue index e08d4816..ede36479 100644 --- a/yanzhu-ui-vue3/src/views/manage/mobileAttendanceData/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/mobileAttendanceData/index.vue @@ -1,6 +1,13 @@