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.模版数据(必须)
+
+
+
+ 1.考勤数据更新
+
+ 3.考勤数据更新(必须)
+
+
+
1.每日是否旷工判断
2.每日的数据都会在当天更新,后续无需手动更新
- 3.旷工更新(非必)
+ 5.旷工更新(非必)
1.请假数据更新
2.更新到前5天
3.范围更新只更新最后一天
4.日月报表必须紧随它更新
- 5.请假日更新(非必)
+ 7.请假日更新(非必)
1.月报表模版生成
2.每月的数据都会月初生成
- 7.月报表模版(非必)
+ 9.月报表模版(非必)
- 1.考勤数据拉取
2.考勤数据更新
+ 1.考勤数据拉取
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 @@