diff --git a/apps/wpm/services.py b/apps/wpm/services.py index a44431d6..9b0f3dc2 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -756,7 +756,7 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, elif mtype == Handover.H_DIV: if handover.wm is None: raise ParseError('拆批请选择车间库存') - batches_to_limit = BatchLog.batches_to(batch=handover.wm.batch) + batches_to_limit = BatchLog.batches_to(batch=handover.wm.batch)["batches"] source_b, _ = BatchSt.g_create(batch=handover.wm.batch) for item in handoverb_list: wmId, xcount, handover_or_b = item