tuqin
4 天以前 5cd5a5baa076377f3136338db7a9336d0d570d33
src/views/hrm/attendance/exception/index.vue
@@ -1,5 +1,4 @@
<script lang="ts" setup>
import { automaticApproval } from '#/store/audit-policy';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { HrmAttendanceExceptionApi } from '#/api/hrm/attendance/exception';
@@ -49,15 +48,10 @@
/** 提交考勤异常申请 */
async function handleSubmit(row: HrmAttendanceExceptionApi.AttendanceException) {
  const res = automaticApproval.value ? [] : await getAttendanceExceptionApproveProcessList();
  const res = await getAttendanceExceptionApproveProcessList();
  processList.value = res;
  currentRow.value = row;
  selectedProcessKey.value = undefined;
  if (automaticApproval.value) {
    selectedProcessKey.value = 'hrm_attendance_exception';
    await confirmSubmit();
    return;
  }
  submitModalVisible.value = true;
}
@@ -70,7 +64,7 @@
  submitLoading.value = true;
  try {
    await submitAttendanceException(currentRow.value!.id!, selectedProcessKey.value);
    message.success(automaticApproval.value ? '已提交生效' : '提交审批成功');
    message.success('提交审批成功');
    submitModalVisible.value = false;
    handleRefresh();
  } finally {