From 7cb00792ca445edbc5ce1e318d0577cd0c800175 Mon Sep 17 00:00:00 2001 From: ackFromRedmi Date: Thu, 2 Apr 2026 08:21:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=82=D0=B0=D1=82=D1=83=D1=81=20=D0=B2?= =?UTF-8?q?=D1=8B=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5=D0=B8=D1=8F=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=BD=D0=B0=20=D0=B4=D0=B5?= =?UTF-8?q?=D1=82=D0=B0=D0=BB=D1=8C,=20=D0=BC=D0=B0=D1=81=D1=82=D0=B5?= =?UTF-8?q?=D1=80=20=D0=BC=D0=BE=D0=B6=D0=B5=D1=82=20=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D1=8F=D1=82=D1=8C=20=D1=81=D1=82=D0=B0=D0=BD=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/shiftflow/item_detail.html | 10 ++++- shiftflow/templates/shiftflow/planning.html | 2 +- .../templates/shiftflow/planning_deal.html | 43 ++++++++++++++++--- shiftflow/views.py | 35 ++++++++++++++- 4 files changed, 79 insertions(+), 11 deletions(-) diff --git a/shiftflow/templates/shiftflow/item_detail.html b/shiftflow/templates/shiftflow/item_detail.html index 523ad3a..1be7a51 100644 --- a/shiftflow/templates/shiftflow/item_detail.html +++ b/shiftflow/templates/shiftflow/item_detail.html @@ -25,7 +25,15 @@
Станок - {{ item.machine.name }} + {% if user_role == 'master' %} + + {% else %} + {{ item.machine.name }} + {% endif %}
Материал diff --git a/shiftflow/templates/shiftflow/planning.html b/shiftflow/templates/shiftflow/planning.html index d6bdeec..7553ccb 100644 --- a/shiftflow/templates/shiftflow/planning.html +++ b/shiftflow/templates/shiftflow/planning.html @@ -4,7 +4,7 @@
-

Сделки

+

Сделки

Сделки:
diff --git a/shiftflow/templates/shiftflow/planning_deal.html b/shiftflow/templates/shiftflow/planning_deal.html index a6f910c..8dab548 100644 --- a/shiftflow/templates/shiftflow/planning_deal.html +++ b/shiftflow/templates/shiftflow/planning_deal.html @@ -34,10 +34,10 @@ Деталь Материал Размер - Надо - Сделано - В плане + Прогресс + Надо / Сделано / В плане Осталось + Файлы Действия @@ -47,10 +47,30 @@ {{ t.drawing_name|default:"Б/ч" }} {{ t.material.full_name|default:t.material.name }} {{ t.size_value }} - {{ t.quantity_ordered }} - {{ t.done_qty }} - {{ t.planned_qty }} + +
+
+
+
+ + + {{ t.quantity_ordered }} / + {{ t.done_qty }} / + {{ t.planned_qty }} + {{ t.remaining_qty }} + + {% if t.drawing_file %} + + + + {% endif %} + {% if t.extra_drawing %} + + + + {% endif %} +