From 062d6de9134fd8a31f626138fe0dcf0f40d8cfeb Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 19 May 2026 14:53:00 +0300 Subject: [PATCH] fix: move inspection action buttons above barcode input; split checked_at into date/time rows Co-Authored-By: Claude Sonnet 4.6 --- frontend/app.js | 5 +++++ frontend/index.html | 18 +++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) 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 @@ - +