From b0e6a3324bcc0e073c4f864cb537e1725685b0c5 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 09 十月 2026 21:10:20 +0800
Subject: [PATCH] 天津-奇缘恒艺 1.录数据需求修改
---
src/views/personnelManagement/attendanceCheckin/checkinRules/components/form.vue | 25 +++++++------------------
1 files changed, 7 insertions(+), 18 deletions(-)
diff --git a/src/views/personnelManagement/attendanceCheckin/checkinRules/components/form.vue b/src/views/personnelManagement/attendanceCheckin/checkinRules/components/form.vue
index 0ddea67..f4f60d2 100644
--- a/src/views/personnelManagement/attendanceCheckin/checkinRules/components/form.vue
+++ b/src/views/personnelManagement/attendanceCheckin/checkinRules/components/form.vue
@@ -31,18 +31,16 @@
<el-form-item label="鐝"
prop="shift">
<el-select v-model="form.shift"
- placeholder="璇烽�夋嫨鐝"
+ placeholder="璇烽�夋嫨鎴栬緭鍏ョ彮娆�"
+ filterable
+ allow-create
+ default-first-option
:disabled="operationType === 'view'"
style="width: 100%">
<el-option v-for="item in shifts_list"
:key="item.value"
:label="item.label"
- :value="item.value"
- :disabled="
- operationType === 'add' &&
- (String(item.label || '').includes('鍋�') ||
- String(item.label || '').includes('浼�'))
- " />
+ :value="item.value" />
</el-select>
</el-form-item>
<el-form-item label="鎵撳崱鑼冨洿(m)"
@@ -169,19 +167,10 @@
// 鑾峰彇鐝瀛楀吀鍊�
const { shifts_list } = useDict("shifts_list");
- const selectedShiftLabel = computed(() => {
- const item = shifts_list.value?.find(
- s => String(s.value) === String(form.shift)
- );
- return item?.label || "";
- });
-
const hideClockFields = computed(() => {
if (props.operationType === "view") return false;
- return (
- selectedShiftLabel.value.includes("鍋�") ||
- selectedShiftLabel.value.includes("浼�")
- );
+ const shiftName = form.shift || "";
+ return shiftName.includes("鍋�") || shiftName.includes("浼�");
});
// 琛ㄥ崟鏁版嵁
--
Gitblit v1.9.3