Обновлены компоненты CreateFulfillmentConsumablesSupplyPage и FulfillmentSuppliesTab: изменено перенаправление на страницу поставок с активной вкладкой "Наши расходники". Добавлена логика для обработки URL параметров и обновления активной вкладки при загрузке. Оптимизирована обработка смены вкладок с обновлением URL.
This commit is contained in:
@ -672,7 +672,7 @@ export function DirectSupplyCreation({
|
||||
{/* НОВЫЙ БЛОК СОЗДАНИЯ ПОСТАВКИ */}
|
||||
<Card className="bg-white/10 backdrop-blur-xl border border-white/20 p-3">
|
||||
{/* Первая строка */}
|
||||
<div className="grid grid-cols-1 md:grid-cols-4 gap-3 items-end mb-2">
|
||||
<div className="grid grid-cols-1 md:grid-cols-4 gap-2 items-end mb-0.5">
|
||||
{/* 1. Модуль выбора даты */}
|
||||
<div>
|
||||
<Label className="text-white/80 text-xs mb-1 block flex items-center gap-1">
|
||||
@ -700,7 +700,7 @@ export function DirectSupplyCreation({
|
||||
value={selectedFulfillment}
|
||||
onValueChange={setSelectedFulfillment}
|
||||
>
|
||||
<SelectTrigger className="h-8 bg-white/20 border-0 text-white focus:bg-white/30 focus:ring-1 focus:ring-white/20 text-xs">
|
||||
<SelectTrigger className="w-full h-8 py-0 px-2 bg-white/20 border-0 text-white focus:bg-white/30 focus:ring-1 focus:ring-white/20 text-xs">
|
||||
<SelectValue placeholder="ФУЛФИЛМЕНТ ИВАНОВО" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
@ -745,7 +745,7 @@ export function DirectSupplyCreation({
|
||||
</div>
|
||||
|
||||
{/* Вторая строка */}
|
||||
<div className="grid grid-cols-1 md:grid-cols-4 gap-3 items-end">
|
||||
<div className="grid grid-cols-1 md:grid-cols-4 gap-2 items-end">
|
||||
{/* 5. Цена товаров */}
|
||||
<div>
|
||||
<Label className="text-white/80 text-xs mb-1 block">
|
||||
|
Reference in New Issue
Block a user