BAOLH
2026-09-17 a7f8b9e44ae8e5349bb7f80d799ad9fd3085ab0e
Merge branch 'wcd-2411-update' into wcd
1 files modified
5 ■■■■■ changed files
eladmin-web-master/src/views/attendance/attendanceLeave/index.vue 5 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/attendance/attendanceLeave/index.vue
@@ -508,14 +508,16 @@
      if (this.form.leaveType == null || this.form.leaveStartTime == null || this.form.leaveEndTime == null) {
        return
      }
      Promise.all([
      // 获取年假剩余时长
      crudAttendanceLeave.getYearTimeLength((this.form.userId == null ? 1 : this.form.userId), this.form.leaveStartTime.substring(0, 4)).then(res => {
        this.yearTimeLength = res
      })
        }),
      // 获取调休假剩余时长
      crudAttendanceLeave.getOverTimeLength((this.form.userId == null ? 1 : this.form.userId), this.form.leaveStartTime.substring(0, 7)).then(res => {
        this.overTimeLength = res
      })
      ]).then(() => {
      // 通过后台计算时长
      var data = JSON.stringify({
        'leaveType': this.form.leaveType,
@@ -536,6 +538,7 @@
      }).catch(() => {
        this.form.leaveDuration = null
      })
      })
    },
    // 审批页面赋值
    toApprove(data, Number) {