From 3f748853ce85cdec9a9c82a7b6427542beaf16d2 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 30 四月 2026 16:11:23 +0800
Subject: [PATCH] 人员考勤统计调整

---
 src/views/performance/attendance/components/staffClockInRecord.vue |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/src/views/performance/attendance/components/staffClockInRecord.vue b/src/views/performance/attendance/components/staffClockInRecord.vue
index 5873c9a..651b2df 100644
--- a/src/views/performance/attendance/components/staffClockInRecord.vue
+++ b/src/views/performance/attendance/components/staffClockInRecord.vue
@@ -280,6 +280,19 @@
           "value": 10002,
           "label": "寮傚父鍋ュ悍鐮佸紑闂�"
         }
+      ],
+      //涓�/涓嬬彮鐘舵�佸垪琛�
+      workStateList:[
+        {
+          label: "涓婄彮鏃堕棿",
+          value: "00work",
+          disabled: 2//鍑洪棬璁板綍绂佺敤
+        },
+        {
+          label: "涓嬬彮鏃堕棿",
+            value: "01offWork",
+          disabled: 1//杩涢棬璁板綍绂佺敤
+        }
       ]
     };
   },
@@ -298,7 +311,8 @@
     changeEnableReport(row){
       let data = {
         id:row.id,
-        enableReport:row.enableReport
+        enableReport:row.enableReport,
+        workStateFlag: row.workStateFlag
       }
       changeEnableReport(data).then(res=>{
         if(res.code===200){
@@ -379,6 +393,17 @@
             </el-switch>
           </template>
         </el-table-column>
+        <el-table-column fixed="left" label="鏍囪涓轰笂/涓嬬彮鏃堕棿" prop="workStateFlag" width="150">
+          <template slot-scope="scope">
+            <el-select
+              clearable
+              szie="small"
+              @change="changeEnableReport(scope.row)"
+              v-model="scope.row.workStateFlag">
+              <el-option :disabled="scope.row.enterOrExit && scope.row.enterOrExit===item.disabled"  v-for="(item,index) in workStateList" :label="item.label" :value="item.value" :key="index"/>
+            </el-select>
+          </template>
+        </el-table-column>
         <el-table-column fixed="left" prop="personCode" label="宸ュ彿" min-width="120" width="120"></el-table-column>
         <el-table-column fixed="left" prop="personName" label="濮撳悕" min-width="120" width="120"></el-table-column>
         <el-table-column prop="deptName" label="閮ㄩ棬鍚嶇О" min-width="100" width="100"></el-table-column>

--
Gitblit v1.9.3