| | |
| | | </el-table-column> |
| | | <el-table-column :show-overflow-tooltip="true" prop="comptimeAllowance" label="其他补助(调休)" width="110"> |
| | | <template slot-scope="scope"> |
| | | <el-link type="primary" class="fs-12" @click="$router.push({ path: '/attendance/attendanceOvertime', query: { userId: scope.row.userId, overtimeStartTime: scope.row.salaryYearMonth, overtimeEndTime: getMonthLastDay(scope.row.salaryYearMonth) } })"> |
| | | <el-link type="primary" class="fs-12" @click="$router.push({ path: '/attendance/attendanceOvertime', query: { userId: scope.row.userId, overtimeStartTime: getOvertimeSettleMonth(scope.row.salaryYearMonth), overtimeEndTime: getMonthLastDay(getOvertimeSettleMonth(scope.row.salaryYearMonth)) } })"> |
| | | {{ crud.toMoney((scope.row.comptimeAllowance == null ? 0 : scope.row.comptimeAllowance)) }} |
| | | </el-link> |
| | | </template> |
| | |
| | | // 清空表单 |
| | | that.$refs['resignCalcForm'].clearValidate() |
| | | }, |
| | | // 获取调休结算月份 |
| | | getOvertimeSettleMonth(dateStr) { |
| | | const date = new Date(dateStr) |
| | | // 减去3个月 |
| | | date.setMonth(date.getMonth() - 3) |
| | | // 格式化为字符串 |
| | | return this.parseTime(date, '{y}-{m}-{d} {h}:{i}:{s}') |
| | | }, |
| | | // 获取当月最后一天 |
| | | getMonthLastDay(dateStr) { |
| | | const date = new Date(dateStr) |