@7365admin1/layer-common 4.97.1-staging.740 → 4.97.1-staging.742
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-dialog
|
|
3
3
|
v-model="showDialog"
|
|
4
|
-
|
|
4
|
+
max-width="900"
|
|
5
5
|
persistent
|
|
6
6
|
>
|
|
7
7
|
<!-- The card wears `.screen-modal` (16px corner, `--card`, the modal
|
|
@@ -31,7 +31,11 @@
|
|
|
31
31
|
</div>
|
|
32
32
|
</v-alert>
|
|
33
33
|
<v-row v-if="attendance" dense>
|
|
34
|
-
<v-col
|
|
34
|
+
<v-col v-if="!attendance.isProxy" cols="12" class="mb-4">
|
|
35
|
+
<InputLabel :title="workerTerm" />
|
|
36
|
+
<div class="att-dlg__time">{{ attendance.userName || "-" }}</div>
|
|
37
|
+
</v-col>
|
|
38
|
+
<v-col cols="6">
|
|
35
39
|
<v-row dense>
|
|
36
40
|
<v-col cols="12" class="mb-1">
|
|
37
41
|
<InputLabel title="Check In" />
|
|
@@ -76,17 +80,19 @@
|
|
|
76
80
|
</v-row>
|
|
77
81
|
</v-col>
|
|
78
82
|
|
|
79
|
-
<v-col
|
|
83
|
+
<v-col cols="6">
|
|
80
84
|
<v-row dense>
|
|
81
85
|
<v-col cols="12" class="mb-1">
|
|
82
86
|
<InputLabel title="Check Out" />
|
|
83
87
|
</v-col>
|
|
84
88
|
<v-col cols="12" class="mb-1">
|
|
85
89
|
<span class="att-dlg__time">{{
|
|
86
|
-
|
|
90
|
+
attendance.checkOut?.timestamp
|
|
91
|
+
? formatDate(attendance.checkOut.timestamp)
|
|
92
|
+
: "-"
|
|
87
93
|
}}</span>
|
|
88
94
|
</v-col>
|
|
89
|
-
<v-col cols="12" class="mb-2">
|
|
95
|
+
<v-col v-if="attendance.checkOut?.timestamp" cols="12" class="mb-2">
|
|
90
96
|
<span class="screen-hint att-dlg__meta">
|
|
91
97
|
{{
|
|
92
98
|
attendance.checkOut?.location?.latitude &&
|
|
@@ -96,7 +102,7 @@
|
|
|
96
102
|
}}
|
|
97
103
|
</span>
|
|
98
104
|
</v-col>
|
|
99
|
-
<v-col cols="12">
|
|
105
|
+
<v-col v-if="attendance.checkOut?.timestamp" cols="12">
|
|
100
106
|
<div v-if="attendance.checkOut?.img" class="att-dlg__frame">
|
|
101
107
|
<v-img
|
|
102
108
|
:src="getFileUrl(attendance.checkOut.img)"
|
|
@@ -165,6 +171,7 @@ async function loadPrivatePhotos(id: string, row: Record<string, any> | null) {
|
|
|
165
171
|
}
|
|
166
172
|
}
|
|
167
173
|
const { formatDate } = useUtils();
|
|
174
|
+
const workerTerm = useWorkerTerm().one;
|
|
168
175
|
const { getFileUrl } = useFile();
|
|
169
176
|
|
|
170
177
|
const close = () => {
|
|
@@ -169,7 +169,7 @@ function calculateTotalHours(attendance: any): string {
|
|
|
169
169
|
attendance.checkOutTimestamp || attendance.checkOut?.timestamp;
|
|
170
170
|
|
|
171
171
|
if (!checkInTime) return "N/A";
|
|
172
|
-
if (!checkOutTime) return "In Progress";
|
|
172
|
+
if (!checkOutTime) return attendance.missedCheckOut ? "Missed check-out" : "In Progress";
|
|
173
173
|
|
|
174
174
|
const checkIn = new Date(checkInTime);
|
|
175
175
|
const checkOut = new Date(checkOutTime);
|
|
@@ -187,7 +187,7 @@ function calculateTotalHours(attendance: any): string {
|
|
|
187
187
|
attendance.checkOutTimestamp || attendance.checkOut?.timestamp;
|
|
188
188
|
|
|
189
189
|
if (!checkInTime) return "N/A";
|
|
190
|
-
if (!checkOutTime) return "In Progress";
|
|
190
|
+
if (!checkOutTime) return attendance.missedCheckOut ? "Missed check-out" : "In Progress";
|
|
191
191
|
|
|
192
192
|
const checkIn = new Date(checkInTime);
|
|
193
193
|
const checkOut = new Date(checkOutTime);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.97.1-staging.
|
|
5
|
+
"version": "4.97.1-staging.742",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|