From f238d9457af7876ffb329ee5b61b7af1a78ff49e Mon Sep 17 00:00:00 2001 From: lizerk Date: Fri, 22 May 2026 14:19:14 +0300 Subject: [PATCH] procurement: show item links outside optional fields --- frontend/src/app/procurement/page.tsx | 78 +++++++++++++-------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/frontend/src/app/procurement/page.tsx b/frontend/src/app/procurement/page.tsx index a1a7e6c2..65be095e 100644 --- a/frontend/src/app/procurement/page.tsx +++ b/frontend/src/app/procurement/page.tsx @@ -1275,7 +1275,7 @@ export default function ProcurementPage() {
{form.items.map((it, idx) => { const hasOptionalFields = Boolean( - it.description.trim() || it.supplier_info.trim() || it.links.some((link) => link.trim()), + it.description.trim() || it.supplier_info.trim(), ); return ( @@ -1319,6 +1319,44 @@ export default function ProcurementPage() { {it.quantity && it.estimated_unit_price ? money(Number(it.quantity) * Number(it.estimated_unit_price)) : "—"}
+
+
+ Ссылки + +
+ {it.links.map((link, linkIndex) => ( +
+ updateItemRow(idx, { + links: it.links.map((currentLink, currentIndex) => ( + currentIndex === linkIndex ? e.target.value : currentLink + )), + })} + placeholder="https://example.ru/item" + className="app-input min-w-0 flex-1 rounded-lg px-3 py-2 text-sm" + /> + +
+ ))} +
@@ -1344,44 +1382,6 @@ export default function ProcurementPage() { placeholder="Информация о поставщике (необязательно)" className="app-input w-full rounded-lg px-3 py-2 text-sm" /> -
-
- Ссылки - -
- {it.links.map((link, linkIndex) => ( -
- updateItemRow(idx, { - links: it.links.map((currentLink, currentIndex) => ( - currentIndex === linkIndex ? e.target.value : currentLink - )), - })} - placeholder="https://example.ru/item" - className="app-input min-w-0 flex-1 rounded-lg px-3 py-2 text-sm" - /> - -
- ))} -