-
+
+
+
+
@@ -303,6 +306,10 @@ const isExecuting = ref(false)
const modalSearch = ref("") // NEU: Suchstring für das Modal
const selectedExecutionIntervall = ref("all")
+const setExecutionDateToToday = () => {
+ executionDate.value = dayjs().format('YYYY-MM-DD')
+}
+
// --- SerialExecutions State ---
const showExecutionsSlideover = ref(false)
const executionItems = ref([])
diff --git a/frontend/pages/staff/profiles/[id].vue b/frontend/pages/staff/profiles/[id].vue
index 1735daa..262966e 100644
--- a/frontend/pages/staff/profiles/[id].vue
+++ b/frontend/pages/staff/profiles/[id].vue
@@ -107,6 +107,19 @@ function recalculateWeeklyHours() {
profile.value.weekly_working_hours = Number(total.toFixed(2))
}
+const getToday = () => {
+ const now = new Date()
+ const year = now.getFullYear()
+ const month = String(now.getMonth() + 1).padStart(2, '0')
+ const day = String(now.getDate()).padStart(2, '0')
+ return `${year}-${month}-${day}`
+}
+
+const setProfileDate = (field: 'birthday' | 'entry_date') => {
+ if (!profile.value) return
+ profile.value[field] = getToday()
+}
+
const checkZip = async () => {
const zipData = await useFunctions().useZipCheck(profile.value.address_zip)
if (zipData) {
@@ -190,7 +203,10 @@ onMounted(fetchProfile)
-
+
+
+
+
@@ -215,7 +231,10 @@ onMounted(fetchProfile)
-
+
+
+
+