From 01e75ef5ee9e4da3df1e13b056932403d36a81d5 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 12 三月 2026 11:02:30 +0800
Subject: [PATCH] 进销存升级 1.新增员工入职不要附件上传 2.员工台账中部分信息用中文展示

---
 src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue |   27 +++++++++++++++++++++++++--
 1 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue b/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue
index 9064274..58d4b4f 100644
--- a/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue
+++ b/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue
@@ -56,6 +56,7 @@
       <el-table :data="tableData"
                 border
                 v-loading="tableLoading"
+                height="calc(100vh - 18.5em)"
                 style="width: 100%"
                 row-key="id">
         <el-table-column type="index"
@@ -65,6 +66,11 @@
         <el-table-column label="閮ㄩ棬">
           <template #default="scope">
             {{ getDeptNameById(scope.row.sysDeptId) }}
+          </template>
+        </el-table-column>
+        <el-table-column label="鐝">
+          <template #default="scope">
+            {{ getShiftNameByValue(scope.row.shift) }}
           </template>
         </el-table-column>
         <el-table-column prop="locationName"
@@ -122,7 +128,14 @@
 <script setup>
   import { ref, reactive, onMounted } from "vue";
   import { ElMessage, ElMessageBox } from "element-plus";
-  import { Plus, Edit, Delete, Search, Refresh } from "@element-plus/icons-vue";
+  import {
+    Plus,
+    Edit,
+    Delete,
+    Search,
+    Refresh,
+    ArrowLeft,
+  } from "@element-plus/icons-vue";
   import Pagination from "@/components/Pagination/index.vue";
   import RuleForm from "./components/form.vue";
   import { deptTreeSelect } from "@/api/system/user.js";
@@ -130,6 +143,7 @@
     getAttendanceRules,
     deleteAttendanceRule,
   } from "@/api/personnelManagement/attendanceRules.js";
+  import { useDict } from "@/utils/dict";
 
   const { proxy } = getCurrentInstance();
 
@@ -152,6 +166,8 @@
 
   // 閮ㄩ棬閫夐」
   const deptOptions = ref([]);
+  // 鑾峰彇鐝瀛楀吀鍊�
+  const { shifts_list } = useDict("shifts_list");
 
   // 寮圭獥鎺у埗
   const dialogVisible = ref(false);
@@ -166,6 +182,13 @@
     return `${String(date.getHours()).padStart(2, "0")}:${String(
       date.getMinutes()
     ).padStart(2, "0")}`;
+  };
+
+  // 鏍规嵁鐝鍊艰幏鍙栫彮娆″悕绉�
+  const getShiftNameByValue = value => {
+    if (!value) return "";
+    const shift = shifts_list.value.find(item => item.value === value);
+    return shift ? shift.label : value;
   };
 
   // 鑾峰彇閮ㄩ棬鍒楄〃
@@ -290,4 +313,4 @@
   .mt10 {
     margin-top: 10px;
   }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3