From 2fe8e5814c81a5fdbe30a8411485eb4664506120 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 30 Dec 2021 10:35:18 +0800 Subject: [PATCH] =?UTF-8?q?operation=20type=20div=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=9B=B4=E6=96=B0=E8=BF=9B=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index 914e1f4..7bd40d1 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -598,7 +598,10 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd act_state=WProduct.WPR_ACT_STATE_DOWAIT, remark='', subproduction_plan=i.subproduction_plan) for x in range(i.count): - WProduct.objects.create(**wpr) + ins = WProduct.objects.create(**wpr) + # 添加日志 + WpmServies.add_wproduct_flow_log(ins, 'operation_submit') + # 更新进度 WpmServies.update_subproduction_progress_main(sp=i.subproduction_plan) elif step.type == Step.STEP_TYPE_COMB: oms_w = OperationMaterial.objects.filter(operation=op, type=SubprodctionMaterial.SUB_MA_TYPE_OUT,