diff --git a/frontend/app.js b/frontend/app.js index 2d0819a..2683386 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -312,6 +312,11 @@ createApp({ const d = new Date(dateStr); return d.toLocaleTimeString('ru-RU', { hour: '2-digit', minute: '2-digit' }); }, + formatDateOnly(dateStr) { + if (!dateStr) return ''; + const d = new Date(dateStr); + return d.toLocaleDateString('ru-RU'); + }, async loadEquipmentTypes() { try { this.equipmentTypes = await fetchJSON('/equipment-types/'); diff --git a/frontend/index.html b/frontend/index.html index 1c18baa..ca0d3a2 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -666,6 +666,13 @@ + +
+ + + +
+
@@ -688,13 +695,6 @@
- -
- - - -
-
Проверенное оборудование
@@ -712,7 +712,7 @@ {{ rec.oborud?.invNumber }} {{ rec.oborud?.nazvanie }} {{ getAuditoryName(rec.oborud?.aud_id) }} - {{ formatDate(rec.checked_at) }} +
{{ formatDateOnly(rec.checked_at) }}
{{ formatTime(rec.checked_at) }}
@@ -735,6 +735,6 @@ - +