From 5a08b5d22c1051a08204cbde80d0d65d04a90e12 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 16 May 2025 08:55:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BD=A6=E9=97=B4=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E4=B8=8D=E8=B6=B3=E6=8F=90=E7=A4=BA=E6=9B=B4=E5=87=86=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index b32967e7..37c82579 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -773,11 +773,11 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, batches.append(batch) if wm_from is None: - raise ParseError('找不到车间库存') + raise ParseError(f'{wm_from.batch} 找不到车间库存') count_x = wm_from.count - xcount if count_x < 0: - raise ParseError('车间库存不足!') + raise ParseError(f'{wm_from.batch} 车间库存不足!') else: wm_from.count = count_x wm_from.save()