From b56e609f59a8de73a54212f00febee228b0fb66a Mon Sep 17 00:00:00 2001
From: tuqin <tuqin@tuqin.cn>
Date: 星期五, 23 十月 2026 10:18:39 +0800
Subject: [PATCH] feat(hrm): 考勤规则表单/列表支持生效日期区间
---
src/views/hrm/attendance/rule/data.ts | 29 +++++++++++++++++++++++++++++
src/api/hrm/attendance/rule/index.ts | 2 ++
2 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/src/api/hrm/attendance/rule/index.ts b/src/api/hrm/attendance/rule/index.ts
index 2ba8920..4645d8f 100644
--- a/src/api/hrm/attendance/rule/index.ts
+++ b/src/api/hrm/attendance/rule/index.ts
@@ -14,6 +14,8 @@
lateAllowMinutes?: number;
earlyAllowMinutes?: number;
overtimeThreshold?: number;
+ effectiveStartDate?: string;
+ effectiveEndDate?: string;
status?: number;
remark?: string;
createTime?: string;
diff --git a/src/views/hrm/attendance/rule/data.ts b/src/views/hrm/attendance/rule/data.ts
index 50bca13..718e3b8 100644
--- a/src/views/hrm/attendance/rule/data.ts
+++ b/src/views/hrm/attendance/rule/data.ts
@@ -106,6 +106,28 @@
},
},
{
+ fieldName: 'effectiveStartDate',
+ label: '鐢熸晥寮�濮嬫棩鏈�',
+ component: 'DatePicker',
+ componentProps: {
+ placeholder: '涓嶉�夎〃绀轰笉闄�',
+ valueFormat: 'YYYY-MM-DD',
+ format: 'YYYY-MM-DD',
+ style: { width: '100%' },
+ },
+ },
+ {
+ fieldName: 'effectiveEndDate',
+ label: '鐢熸晥缁撴潫鏃ユ湡',
+ component: 'DatePicker',
+ componentProps: {
+ placeholder: '涓嶉�夎〃绀洪暱鏈熸湁鏁�',
+ valueFormat: 'YYYY-MM-DD',
+ format: 'YYYY-MM-DD',
+ style: { width: '100%' },
+ },
+ },
+ {
fieldName: 'status',
label: '鐘舵��',
component: 'RadioGroup',
@@ -186,6 +208,13 @@
{ field: 'earlyAllowMinutes', title: '鏃╅��鍏佽(鍒嗛挓)', width: 120 },
{ field: 'overtimeThreshold', title: '鍔犵彮璧风畻(灏忔椂)', width: 120 },
{
+ field: 'effectiveStartDate',
+ title: '鐢熸晥鍖洪棿',
+ minWidth: 200,
+ formatter: ({ row }) =>
+ `${row.effectiveStartDate || '涓嶉檺'} ~ ${row.effectiveEndDate || '涓嶉檺'}`,
+ },
+ {
field: 'status',
title: '鐘舵��',
width: 80,
--
Gitblit v1.9.3