From 8d011e88c846fb95dc944ba054d4441be6d66af1 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 5 Sep 2025 14:45:06 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/components/AttendanceCalendar/index.vue | 33 +++++-- src/utils/request.js | 7 ++ .../attendance-count/attendance-details.vue | 21 ++++ .../attendance-count/person-table.vue | 9 ++ .../attendance-count/sub-team-table.vue | 12 ++- .../card-replacement-apply/add-apply-form.vue | 36 ++++++- .../card-replacement-apply/index.vue | 5 +- .../select-person-and-date.vue | 98 ++++++++++++++++--- .../card-replacement-count/add-apply-form.vue | 4 +- .../select-person-and-date.vue | 12 ++- .../person-entry/index.vue | 18 +++- .../person-exit/person-exit-form.vue | 3 +- .../contract-witness-upload.vue | 33 ++++--- .../contract-witness/index.vue | 7 +- .../dishonesty-person/index.vue | 11 ++- .../wage-card-witness/index.vue | 5 +- .../components/personPresence/index.vue | 3 + .../components/projectInfo/index.vue | 4 +- 19 files changed, 263 insertions(+), 59 deletions(-) diff --git a/package.json b/package.json index e830951..6a4120f 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "js-beautify": "1.13.0", "js-cookie": "3.0.1", "jsencrypt": "3.0.0-rc.1", + "lodash": "^4.17.21", "nprogress": "0.2.0", "quill": "1.3.7", "screenfull": "5.0.2", diff --git a/src/components/AttendanceCalendar/index.vue b/src/components/AttendanceCalendar/index.vue index 6515f41..1162092 100644 --- a/src/components/AttendanceCalendar/index.vue +++ b/src/components/AttendanceCalendar/index.vue @@ -13,6 +13,10 @@ 补卡 +
+ + 不在场 +
{{ day.dayIndex }}
@@ -231,9 +235,15 @@ export default { // 获取某天的样式类 getDayClass(day) { - if (!day.isRepair && day.isAtt === 0) return 'inactive' - if (day.isRepair && day.isAtt === 1) return 'active' - if (!day.isRepair) return 'is-no-att' + switch (day.isAtt) { + case 0: + return 'inactive' + case 1: + return 'active' + case 2: + return 'active-repair' + } + return 'is-no-att' }, }, @@ -352,6 +362,17 @@ export default { color: #000; } +/* 已补卡样式 */ +.active-repair { + background-color: #ff9900; + color: #000; +} + +/* 不在场样式 */ +.inactive-no-att { + background-color: #999; + color: #000; +} .day-number { z-index: 1; } @@ -402,6 +423,6 @@ export default { } .is-no-att { - background-color: #999; + background-color: #999 !important; } diff --git a/src/utils/request.js b/src/utils/request.js index cbf6931..5723eb4 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -26,6 +26,13 @@ const isProduction = process.env.VUE_APP_ENV === 'production' // } let downloadLoadingInstance + +console.log( + decryptWithSM4( + 'bdd931fb1f0780a8f9311c56cf6963ba94542b39961cf4c746e9f5a1a6918ffc3a5cfda6a0c8edca82ac663703a9a318', + ), + 'isProduction-----****-----', +) // 是否显示重新登录 export let isRelogin = { show: false } diff --git a/src/views/construction-person/attendance-manage/attendance-count/attendance-details.vue b/src/views/construction-person/attendance-manage/attendance-count/attendance-details.vue index 2539958..e594f62 100644 --- a/src/views/construction-person/attendance-manage/attendance-count/attendance-details.vue +++ b/src/views/construction-person/attendance-manage/attendance-count/attendance-details.vue @@ -93,6 +93,13 @@ > 已考勤 + + 已补卡 + diff --git a/src/views/construction-person/attendance-manage/attendance-count/person-table.vue b/src/views/construction-person/attendance-manage/attendance-count/person-table.vue index 349dd61..45f014d 100644 --- a/src/views/construction-person/attendance-manage/attendance-count/person-table.vue +++ b/src/views/construction-person/attendance-manage/attendance-count/person-table.vue @@ -54,6 +54,7 @@ :teamId="teamId" :workerId="workerId" :idNumber="idNumber" + :timeRangeNew="timeRange" /> @@ -99,6 +100,10 @@ export default { getPersonListAPI, idNumber: '', workerId: '', + timeRange: [ + new Date().toISOString().split('T')[0], + new Date().toISOString().split('T')[0], + ], slots: ['attNum', 'notAttNum'], } }, @@ -121,6 +126,10 @@ export default { // 点击人员姓名 弹出考勤详情 onHandleCheckPerson(data) { + this.timeRange = [ + this.$refs.personTableRef.queryParams.startDate, + this.$refs.personTableRef.queryParams.endDate, + ] this.idNumber = data.idNumber this.workerId = data.workerId this.personDialogConfig.outerVisible = true diff --git a/src/views/construction-person/attendance-manage/attendance-count/sub-team-table.vue b/src/views/construction-person/attendance-manage/attendance-count/sub-team-table.vue index f6ccfe4..04d0f24 100644 --- a/src/views/construction-person/attendance-manage/attendance-count/sub-team-table.vue +++ b/src/views/construction-person/attendance-manage/attendance-count/sub-team-table.vue @@ -35,9 +35,17 @@ diff --git a/src/views/construction-person/attendance-manage/card-replacement-apply/add-apply-form.vue b/src/views/construction-person/attendance-manage/card-replacement-apply/add-apply-form.vue index e897ec1..b5d3403 100644 --- a/src/views/construction-person/attendance-manage/card-replacement-apply/add-apply-form.vue +++ b/src/views/construction-person/attendance-manage/card-replacement-apply/add-apply-form.vue @@ -50,7 +50,7 @@ 修改 @@ -144,10 +144,12 @@