@7365admin1/layer-common 3.0.26 → 3.0.27
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/CHANGELOG.md +7 -0
- package/components/AccessCardDetailsDialog.vue +98 -2
- package/components/AccessCardPreviewDialog.vue +31 -3
- package/components/AccessManagement.vue +10 -1
- package/components/EntryPassInformation.vue +55 -17
- package/components/HidReaderForm.vue +10 -16
- package/components/MemberInformation.vue +59 -1
- package/components/VisitorForm.vue +22 -6
- package/components/VisitorManagement.vue +790 -219
- package/composables/useAccessManagement.ts +8 -0
- package/package.json +1 -1
|
@@ -321,6 +321,13 @@ export default function useAccessManagement() {
|
|
|
321
321
|
);
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
+
function visitorCheckout(payload: { cards: { cardId: string; userId: string; status: string; remarks: string }[] }) {
|
|
325
|
+
return useNuxtApp().$api<Record<string, any>>(
|
|
326
|
+
`/api/access-management/visitor-checkout`,
|
|
327
|
+
{ method: "PATCH", body: payload }
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
|
|
324
331
|
return {
|
|
325
332
|
getResidents,
|
|
326
333
|
assignUser,
|
|
@@ -345,5 +352,6 @@ export default function useAccessManagement() {
|
|
|
345
352
|
createVisitorPass,
|
|
346
353
|
signQr,
|
|
347
354
|
getBlockLevelUnitList,
|
|
355
|
+
visitorCheckout,
|
|
348
356
|
};
|
|
349
357
|
}
|