From 724f8222e94782ec515e9a22c48754364ec0ff40 Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Wed, 7 May 2025 18:36:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E5=8B=A4=E6=98=8E=E7=BB=86=EF=BC=8C?= =?UTF-8?q?=E6=9C=88=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/report/attReport.js | 9 ++++++++ src/api/report/monthlyError.js | 9 ++++++++ src/views/report/attReport/index.vue | 29 ++++++++++++++++++++++---- src/views/report/monthReport/index.vue | 25 +++++++++++++++++++++- 4 files changed, 67 insertions(+), 5 deletions(-) diff --git a/src/api/report/attReport.js b/src/api/report/attReport.js index 9c6e625..d4e5b98 100644 --- a/src/api/report/attReport.js +++ b/src/api/report/attReport.js @@ -174,6 +174,15 @@ export function updateMonthReportData(query) { }) } +/*数据同步9*/ +export function updateAttData(query) { + return request({ + url: '/system/attHisPull/updateAttData', + method: 'get', + params: query + }) +} + export function singleUploadFile(data) { return request({ url: '/system/fileUpload/singleUploadFile', diff --git a/src/api/report/monthlyError.js b/src/api/report/monthlyError.js index 97e1b59..2a86227 100644 --- a/src/api/report/monthlyError.js +++ b/src/api/report/monthlyError.js @@ -18,6 +18,15 @@ export function getDetail(query) { }) } +// 更新应该出勤天数按钮操作 +export function getDays(query) { + return request({ + url: '/system/attDetails/updateAttMonthDays', + method: 'get', + params: query + }) +} + // 导出工程 diff --git a/src/views/report/attReport/index.vue b/src/views/report/attReport/index.vue index 34fb639..75ee452 100644 --- a/src/views/report/attReport/index.vue +++ b/src/views/report/attReport/index.vue @@ -321,29 +321,38 @@ 1.模版数据(必须) + + + + 3.考勤数据更新(必须) + + + - 3.旷工更新(非必) + 5.旷工更新(非必) - 5.请假日更新(非必) + 7.请假日更新(非必) - 7.月报表模版(非必) + 9.月报表模版(非必) 2.数据拉取(必须) @@ -401,6 +410,7 @@ import { insertDayReportData, insertMonthReportTempData, updateMonthReportData, + updateAttData, singleUploadFile } from '@/api/report/attReport' import Treeselect from '@riophae/vue-treeselect' @@ -698,6 +708,17 @@ export default { }).catch(err => { loading.close() }) + }else if (type === 9) { + updateAttData(query).then(res => { + loading.close() + if(res.code === 200){ + this.$message({ message: '数据同步成功', type:'success' }) + }else{ + this.$message({ message: '数据同步失败', type: 'error' }) + } + }).catch(err => { + loading.close() + }) } }, openData2() { diff --git a/src/views/report/monthReport/index.vue b/src/views/report/monthReport/index.vue index f77d844..d7f3ab7 100644 --- a/src/views/report/monthReport/index.vue +++ b/src/views/report/monthReport/index.vue @@ -24,6 +24,13 @@ v-hasPermi="['att:attMonthReport:export']">导出 + + + 更新应出勤天数 + + + @@ -297,7 +304,7 @@