From f393771fd813b733494559f9b6aba74ce71616aa Mon Sep 17 00:00:00 2001
From: DESKTOP-6GG29MI\dell <2847338803@qq.com>
Date: Mon, 21 Jul 2025 07:40:52 +0000
Subject: [PATCH] 考勤记录页面外出申请问题修复

---
 eladmin-web-master/src/views/attendance/attendance/index.vue |   40 ++++++++++++++++++++++++++++++++--------
 1 files changed, 32 insertions(+), 8 deletions(-)

diff --git a/eladmin-web-master/src/views/attendance/attendance/index.vue b/eladmin-web-master/src/views/attendance/attendance/index.vue
index c85cae2..d118626 100644
--- a/eladmin-web-master/src/views/attendance/attendance/index.vue
+++ b/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
-        }
       }
     },
     // 计算时长

--
Gitblit v1.9.3