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(); }, // 获取 个人考勤信息