From ce486f35ca0f425d568a86fc518c379924c75f07 Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Thu, 15 Jan 2026 15:09:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D0=BE=D1=81=20?= =?UTF-8?q?=D0=B2=D1=81=D1=82=D1=80=D0=BE=D0=B5=D0=BD=D0=BD=D1=8B=D1=85=20?= =?UTF-8?q?=D1=81=D1=82=D0=B8=D0=BB=D0=B5=D0=B9=20=D0=B8=D0=B7=20=D1=88?= =?UTF-8?q?=D0=B0=D0=B1=D0=BB=D0=BE=D0=BD=D0=B0=20detail.html=20=D0=B2=20?= =?UTF-8?q?=D0=BE=D1=82=D0=B4=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20CSS-?= =?UTF-8?q?=D1=84=D0=B0=D0=B9=D0=BB=20transformation=5Fdetail.css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventory/transformation_detail.css | 22 ++ .../inventory/transformation/detail.html | 303 ++++++++++-------- 2 files changed, 189 insertions(+), 136 deletions(-) create mode 100644 myproject/inventory/static/inventory/transformation_detail.css diff --git a/myproject/inventory/static/inventory/transformation_detail.css b/myproject/inventory/static/inventory/transformation_detail.css new file mode 100644 index 0000000..0b69aec --- /dev/null +++ b/myproject/inventory/static/inventory/transformation_detail.css @@ -0,0 +1,22 @@ +/* Стили для компонентов поиска товаров в трансформациях */ + +#transformation-input-picker .card, +#transformation-output-picker .card { + height: 380px !important; + display: flex !important; + flex-direction: column !important; +} + +#transformation-input-picker .product-picker-content, +#transformation-output-picker .product-picker-content { + max-height: 200px !important; + min-height: 200px !important; + overflow-y: auto !important; + flex-shrink: 0 !important; +} + +/* Скрываем внутренние кнопки компонента Picker */ +#transformation-input-picker .product-picker-add-selected, +#transformation-output-picker .product-picker-add-selected { + display: none !important; +} \ No newline at end of file diff --git a/myproject/inventory/templates/inventory/transformation/detail.html b/myproject/inventory/templates/inventory/transformation/detail.html index 477ec5f..ed7b171 100644 --- a/myproject/inventory/templates/inventory/transformation/detail.html +++ b/myproject/inventory/templates/inventory/transformation/detail.html @@ -7,6 +7,7 @@ {% block content %} +
@@ -98,34 +99,60 @@
- + {% if transformation.status == 'draft' %} -
-
-
Найти и добавить товар
-
-
- -
- {% include 'products/components/product_search_picker.html' with container_id='transformation-product-picker' title='Найти товар' warehouse_id=transformation.warehouse.id categories=categories tags=tags add_button_text='Выбрать товар' content_height='250px' %} +
+ +
+
+
+
Добавить входящий товар (для списания)
+
+
+ + {% include 'products/components/product_search_picker.html' with container_id='transformation-input-picker' title='Найти товар в наличии' warehouse_id=transformation.warehouse.id categories=categories tags=tags add_button_text='Добавить во входящий' content_height='200px' %} +
+ +
+
- -