@7365admin1/layer-common 3.0.31-staging.27 → 3.1.1
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.
- package/.github/workflows/publish-staging.yml +0 -11
- package/CHANGELOG.md +12 -0
- package/components/AddEqupmentForm.vue +1 -52
- package/components/AddPassKeyToVisitor.vue +53 -115
- package/components/DashboardMain.vue +87 -231
- package/components/EquipmentManagementMain.vue +0 -56
- package/components/InvitationMain.vue +3 -4
- package/components/ManageChecklistMain.vue +38 -44
- package/components/Nfc/NFCPatrolReportMain.vue +38 -128
- package/components/Nfc/PatrolReport/DailyReportTab.vue +6 -10
- package/components/Nfc/PatrolReport/MonthlyReportTab.vue +9 -19
- package/components/Nfc/PatrolReport/PatrolReportTab.vue +3 -5
- package/components/Nfc/PatrolReport/ReportFilters.vue +18 -50
- package/components/PhotoUpload.vue +4 -19
- package/components/ServiceProviderMain.vue +29 -46
- package/components/VisitorForm.vue +38 -12
- package/components/VisitorManagement.vue +30 -109
- package/composables/useCleaningSchedulePermission.ts +51 -16
- package/composables/useEquipment.ts +0 -2
- package/composables/useLocalAuth.ts +1 -1
- package/composables/useNFCPatrolDailyReport.ts +4 -1
- package/composables/useNFCPatrolMonthlyReport.ts +30 -62
- package/package.json +1 -1
- package/types/customer.d.ts +1 -2
- package/types/equipment.d.ts +1 -5
- package/types/nfc-patrol-report.ts +1 -15
- package/components/Nfc/PatrolReport/MonthlyReportTable.vue +0 -69
|
@@ -26,7 +26,7 @@ export interface NFCPatrolReportFilterOptions {
|
|
|
26
26
|
|
|
27
27
|
export interface NFCPatrolReportLocation {
|
|
28
28
|
name?: string;
|
|
29
|
-
address?: string;
|
|
29
|
+
address?: string;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export interface NFCPatrolRouteSummary {
|
|
@@ -77,17 +77,3 @@ export interface NFCPatrolSummaryReport {
|
|
|
77
77
|
title: string;
|
|
78
78
|
rows: NFCPatrolReportSummaryRow[];
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
export interface NFCPatrolMonthlyReportRow {
|
|
82
|
-
month: string;
|
|
83
|
-
checked: number;
|
|
84
|
-
checkedPercentage: number;
|
|
85
|
-
missed: number;
|
|
86
|
-
missedPercentage: number;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface NFCPatrolMonthlyReport {
|
|
90
|
-
location: NFCPatrolReportLocation;
|
|
91
|
-
title: string;
|
|
92
|
-
rows: NFCPatrolMonthlyReportRow[];
|
|
93
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="mt-6">
|
|
3
|
-
<div class="text-h6 font-weight-bold mb-4">
|
|
4
|
-
{{ title }}
|
|
5
|
-
</div>
|
|
6
|
-
|
|
7
|
-
<v-table class="border rounded-lg">
|
|
8
|
-
<thead>
|
|
9
|
-
<tr>
|
|
10
|
-
<th class="text-left font-weight-bold">Month</th>
|
|
11
|
-
<th class="text-center font-weight-bold">Checked</th>
|
|
12
|
-
<th class="text-center font-weight-bold">% Checked</th>
|
|
13
|
-
<th class="text-center font-weight-bold">Missed</th>
|
|
14
|
-
<th class="text-center font-weight-bold">% Missed</th>
|
|
15
|
-
</tr>
|
|
16
|
-
</thead>
|
|
17
|
-
|
|
18
|
-
<tbody>
|
|
19
|
-
<tr
|
|
20
|
-
v-for="row in rows"
|
|
21
|
-
:key="row.month"
|
|
22
|
-
>
|
|
23
|
-
<td>{{ row.month }}</td>
|
|
24
|
-
|
|
25
|
-
<td class="text-center">
|
|
26
|
-
{{ row.checked }}
|
|
27
|
-
</td>
|
|
28
|
-
|
|
29
|
-
<td class="text-center">
|
|
30
|
-
{{ row.checkedPercentage }}%
|
|
31
|
-
</td>
|
|
32
|
-
|
|
33
|
-
<td class="text-center">
|
|
34
|
-
{{ row.missed }}
|
|
35
|
-
</td>
|
|
36
|
-
|
|
37
|
-
<td class="text-center">
|
|
38
|
-
{{ row.missedPercentage }}%
|
|
39
|
-
</td>
|
|
40
|
-
</tr>
|
|
41
|
-
</tbody>
|
|
42
|
-
</v-table>
|
|
43
|
-
</div>
|
|
44
|
-
</template>
|
|
45
|
-
|
|
46
|
-
<script setup lang="ts">
|
|
47
|
-
import type { NFCPatrolMonthlyReportRow } from "../../../types/nfc-patrol-report";
|
|
48
|
-
|
|
49
|
-
defineProps<{
|
|
50
|
-
title: string;
|
|
51
|
-
rows: NFCPatrolMonthlyReportRow[];
|
|
52
|
-
}>();
|
|
53
|
-
</script>
|
|
54
|
-
|
|
55
|
-
<style scoped>
|
|
56
|
-
.v-table {
|
|
57
|
-
border: 1px solid rgb(var(--v-theme-outline));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
thead th {
|
|
61
|
-
background: transparent;
|
|
62
|
-
white-space: nowrap;
|
|
63
|
-
font-weight: 600;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
tbody td {
|
|
67
|
-
height: 56px;
|
|
68
|
-
}
|
|
69
|
-
</style>
|