From 2524feca72ac8cdc2adc0b83d9360c8a7df427df Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 4 Sep 2025 15:07:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=96=E6=B6=88=E6=9C=80=E5=90=8E?= =?UTF-8?q?=E4=B8=80=E6=AD=A5=E4=BA=A7=E5=87=BA=E4=B8=8E=E5=B7=A5=E8=89=BA?= =?UTF-8?q?=E5=8C=85=E4=B8=8D=E4=B8=80=E8=87=B4=20=E7=9A=84=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/mtm/services.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/mtm/services.py b/apps/mtm/services.py index 8f4155f1..626b95b4 100644 --- a/apps/mtm/services.py +++ b/apps/mtm/services.py @@ -155,12 +155,12 @@ def bind_routepack(ticket: Ticket, transition, new_ticket_data: dict): raise ParseError('缺少步骤') r_qs = Route.objects.filter(routepack=routepack).order_by('sort', 'process__sort', 'create_time') first_route = r_qs.first() - last_route = r_qs.last() if first_route.batch_bind: first_route.batch_bind = False first_route.save(update_fields=['batch_bind']) - if last_route.material_out != routepack.material: - raise ParseError('最后一步产出与工艺包不一致') + # last_route = r_qs.last() + # if last_route.material_out != routepack.material: + # raise ParseError('最后一步产出与工艺包不一致') ticket_data = ticket.ticket_data ticket_data.update({ 't_model': 'routepack',