DESKTOP-6GG29MI\dell
2025-07-21 f393771fd813b733494559f9b6aba74ce71616aa
考勤记录页面外出申请问题修复
1 files modified
40 ■■■■■ changed files
eladmin-web-master/src/views/attendance/attendance/index.vue 40 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/attendance/attendance/index.vue
@@ -300,6 +300,22 @@
      <!--外出表单-->
      <el-dialog :close-on-click-modal="false" :before-close="closeCard" :visible.sync="goOutVisible" :title="goOutTitle" width="500px">
        <el-form ref="goOutForm" :model="goOutForm" :rules="goOutRules" size="small" label-width="80px">
          <el-form-item label="审批者" prop="approvalUserId">
            <el-select
              v-model="goOutForm.approvalUserId"
              filterable
              clearable
              placeholder="请选择"
              style="width: 340px;"
            >
              <el-option
                v-for="item in users"
                :key="item.id"
                :label="item.nickName"
                :value="item.id"
              />
            </el-select>
          </el-form-item>
          <el-form-item label="开始时间" prop="outStartTime">
            <el-date-picker
              v-model="goOutForm.outStartTime"
@@ -374,6 +390,22 @@
      <!--出差表单-->
      <el-dialog :close-on-click-modal="false" :before-close="closeCard" :visible.sync="bussVisible" :title="bussTitle" width="500px">
        <el-form ref="bussForm" :model="bussForm" :rules="bussRules" size="small" label-width="80px">
          <el-form-item label="审批者" prop="approvalUserId">
            <el-select
              v-model="bussForm.approvalUserId"
              filterable
              clearable
              placeholder="请选择"
              style="width: 340px;"
            >
              <el-option
                v-for="item in users"
                :key="item.id"
                :label="item.nickName"
                :value="item.id"
              />
            </el-select>
          </el-form-item>
          <el-form-item label="开始日期" prop="travelStartTime">
            <el-date-picker
              v-model="bussForm.travelStartTime"
@@ -837,17 +869,9 @@
      if (data === 'goOut') {
        this.goOutVisible = true
        this.goOutForm.durationUnit = this.dictLeaveTimeTypeHour
        // 判断企微审核
        if (this.wecomApprovalVisible) {
          this.goOutForm.approvalUserId = 0
        }
      } else {
        this.bussVisible = true
        this.bussForm.durationUnit = this.dictLeaveTimeTypeDay
        // 判断企微审核
        if (this.wecomApprovalVisible) {
          this.bussForm.approvalUserId = 0
        }
      }
    },
    // 计算时长