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 @@