From 41acc01d0056630ac11083cf31397f2462acaf4e Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期五, 06 三月 2026 11:28:39 +0800
Subject: [PATCH] 一些编辑功能隐藏

---
 src/pages/humanResources/attendance/checkin.vue |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/pages/humanResources/attendance/checkin.vue b/src/pages/humanResources/attendance/checkin.vue
index a3eb33a..9772d85 100644
--- a/src/pages/humanResources/attendance/checkin.vue
+++ b/src/pages/humanResources/attendance/checkin.vue
@@ -106,10 +106,7 @@
   const todayRecord = ref({});
 
   // 鐝淇℃伅
-  const workTimeDict = ref({
-    startAt: "09:00",
-    endAt: "18:00",
-  });
+  const workTimeDict = ref();
 
   // 褰撳墠鏃堕棿灞曠ず
   const nowTime = ref("");
@@ -129,7 +126,12 @@
     findTodayPersonalAttendanceRecord({}).then(res => {
       if (res.data) {
         todayRecord.value = res.data;
-        noNeedCheckIn.value = false;
+        // 妫�鏌tartAt鍜宔ndAt鏄惁涓虹┖锛屼负绌哄垯鏃犻渶鎵撳崱
+        if (!todayRecord.value.startAt || !todayRecord.value.endAt) {
+          noNeedCheckIn.value = true;
+        } else {
+          noNeedCheckIn.value = false;
+        }
       } else {
         // 椤甸潰鏄剧ず鈥滄棤闇�鎵撳崱鈥�
         todayRecord.value = {};

--
Gitblit v1.9.3