From 8f9cc45f298e69fe884a487e39b725f7e344e570 Mon Sep 17 00:00:00 2001 From: jiayu Date: Mon, 7 Jul 2025 10:43:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../attendanceManage/attendanceManage.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/projectFront/laborManage/attendanceManage/attendanceManage.vue b/src/views/projectFront/laborManage/attendanceManage/attendanceManage.vue index b0c97f01..fc7e1c40 100644 --- a/src/views/projectFront/laborManage/attendanceManage/attendanceManage.vue +++ b/src/views/projectFront/laborManage/attendanceManage/attendanceManage.vue @@ -786,6 +786,7 @@ export default { selectIndex: 0, showSelectPersonSn: "", showSelectTime: "", + activeRow: null, dateilList: [], showTime: [], itemKey: "", @@ -1033,10 +1034,10 @@ export default { }, initUploadAttendance() { this.uploadAttendanceForm = { - enterpriseId: "", - teamId: "", - departmentId: "", - workerId: "", + enterpriseId: this.activeRow?.enterpriseId || "", + teamId: this.activeRow?.deptId || "", + departmentId: this.activeRow?.deptId || "", + workerId: this.activeRow?.workerId || "", passType: "", createTime: "", inletOutletPosition: "", @@ -1046,6 +1047,9 @@ export default { }, uploadAttendanceDialog() { this.initUploadAttendance(); + if (this.activeRow?.enterpriseId) { + this.enterpriseChange(this.activeRow.enterpriseId, this.activeRow.departmentId, 1); + } this.uploadAttendanceShow = true; }, getPersonListFn() { @@ -1258,6 +1262,7 @@ export default { this.selectIndex = index; this.showSelectPersonSn = value.personSn; this.showSelectTime = row.date; + this.activeRow = value; this.getSelectDateil(); }, // 获取 个人考勤信息