|
|
|
@ -81,6 +81,19 @@ |
|
|
|
|
<span v-else> {{ row.reallyWorkDay }}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="调休天数" align="center"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-input-number |
|
|
|
|
v-if="row.edit" |
|
|
|
|
v-model="row.compensatoryLeaveDay" |
|
|
|
|
:min="0" |
|
|
|
|
:controls="false" |
|
|
|
|
size="small" |
|
|
|
|
style="width: 65px" |
|
|
|
|
/> |
|
|
|
|
<span v-else> {{ row.compensatoryLeaveDay }}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="缺勤天数" align="center"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-input-number |
|
|
|
@ -270,8 +283,8 @@ async function getList() { |
|
|
|
|
function spanMethod({ row, columnIndex }) { |
|
|
|
|
if (row.userDingAttendanceRespVOList && row.userDingAttendanceRespVOList.length > 0) { |
|
|
|
|
if (columnIndex === 0) { |
|
|
|
|
return [1, 12] |
|
|
|
|
} else if (columnIndex == 12 && row.id) { |
|
|
|
|
return [1, 13] |
|
|
|
|
} else if (columnIndex == 13 && row.id) { |
|
|
|
|
return [1, 1] |
|
|
|
|
} else { |
|
|
|
|
return [0, 0] |
|
|
|
@ -313,9 +326,7 @@ async function handleSave(row) { |
|
|
|
|
text: `假勤数据保存中,请稍后...`, |
|
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
|
}) |
|
|
|
|
await FalseDiligenceApi.updateFalseDiligence({ |
|
|
|
|
userDingAttendanceSaveReqVO: row.userDingAttendanceRespVOList |
|
|
|
|
}) |
|
|
|
|
await FalseDiligenceApi.updateFalseDiligence(row.userDingAttendanceRespVOList) |
|
|
|
|
globalLoading.value.close() |
|
|
|
|
message.success('保存成功!') |
|
|
|
|
getList() |
|
|
|
@ -332,6 +343,7 @@ async function handleSealup(row) { |
|
|
|
|
await FalseDiligenceApi.saveFalseDiligence({ |
|
|
|
|
period: row.period |
|
|
|
|
}) |
|
|
|
|
message.success('封存成功!') |
|
|
|
|
// 刷新列表 |
|
|
|
|
await getList() |
|
|
|
|
} catch (err) { |
|
|
|
|