Merge branch 'wcd-2411-update' into wcd
| | |
| | | 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, |
| | |
| | | }).catch(() => { |
| | | this.form.leaveDuration = null |
| | | }) |
| | | }) |
| | | }, |
| | | // 审批页面赋值 |
| | | toApprove(data, Number) { |