From 1edc99c8d6fc4ab71961c23aaf3dd5fecc076908 Mon Sep 17 00:00:00 2001
From: ZN <zhang_12370@163.com>
Date: 星期五, 06 三月 2026 16:56:04 +0800
Subject: [PATCH] feat(销售管理): 新增销售退货单管理功能

---
 src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue |   38 ++++++++++++++++++++++++++++++--------
 1 files changed, 30 insertions(+), 8 deletions(-)

diff --git a/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue b/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue
index 1fd19f3..b55ae56 100644
--- a/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue
+++ b/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue
@@ -2,14 +2,14 @@
   <div class="app-container">
     <!-- 椤甸潰鏍囬鍜屾搷浣滄寜閽� -->
     <div class="page-header">
-      <div class="title">鎵撳崱瑙勫垯閰嶇疆</div>
+      <div class="title">鐝閰嶇疆</div>
       <div class="actions">
         <el-button type="primary"
                    @click="openForm('add')">
           <el-icon>
             <Plus />
           </el-icon>
-          鏂板瑙勫垯
+          鏂板鐝
         </el-button>
       </div>
     </div>
@@ -50,7 +50,7 @@
         </el-button>
       </el-form-item>
     </el-form> -->
-    <!-- 瑙勫垯鍒楄〃 -->
+    <!-- 鐝鍒楄〃 -->
     <el-card shadow="never"
              class="mb16">
       <el-table :data="tableData"
@@ -65,6 +65,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"
@@ -110,7 +115,7 @@
                   @pagination="paginationChange"
                   class="mt10" />
     </el-card>
-    <!-- 鏂板/缂栬緫瑙勫垯寮圭獥 -->
+    <!-- 鏂板/缂栬緫鐝寮圭獥 -->
     <rule-form ref="ruleFormRef"
                v-model="dialogVisible"
                :operation-type="operationType"
@@ -122,7 +127,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 +142,7 @@
     getAttendanceRules,
     deleteAttendanceRule,
   } from "@/api/personnelManagement/attendanceRules.js";
+  import { useDict } from "@/utils/dict";
 
   const { proxy } = getCurrentInstance();
 
@@ -152,6 +165,8 @@
 
   // 閮ㄩ棬閫夐」
   const deptOptions = ref([]);
+  // 鑾峰彇鐝瀛楀吀鍊�
+  const { shifts_list } = useDict("shifts_list");
 
   // 寮圭獥鎺у埗
   const dialogVisible = ref(false);
@@ -166,6 +181,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;
   };
 
   // 鑾峰彇閮ㄩ棬鍒楄〃
@@ -206,7 +228,7 @@
     return "";
   };
 
-  // 鏌ヨ瑙勫垯鍒楄〃
+  // 鏌ヨ鐝鍒楄〃
   const fetchData = () => {
     tableLoading.value = true;
     getAttendanceRules({ ...page, ...searchForm })
@@ -240,9 +262,9 @@
     dialogVisible.value = true;
   };
 
-  // 鍒犻櫎瑙勫垯
+  // 鍒犻櫎鐝
   const handleDelete = id => {
-    ElMessageBox.confirm("纭畾瑕佸垹闄よ繖鏉¤鍒欏悧锛�", "鍒犻櫎纭", {
+    ElMessageBox.confirm("纭畾瑕佸垹闄よ繖鏉$彮娆″悧锛�", "鍒犻櫎纭", {
       confirmButtonText: "纭畾",
       cancelButtonText: "鍙栨秷",
       type: "warning",

--
Gitblit v1.9.3