查找最近一条工序检验记录

This commit is contained in:
曹前明 2022-06-29 13:16:50 +08:00
parent 4024fee865
commit 7e43f76112
1 changed files with 2 additions and 2 deletions

View File

@ -202,8 +202,8 @@ class WProductViewSet(ListModelMixin, RetrieveModelMixin, GenericViewSet):
step=wproduct.step, step=wproduct.step,
form=form) form=form)
if wproduct.act_state == WProduct.WPR_ACT_STATE_TORETEST: if wproduct.act_state == WProduct.WPR_ACT_STATE_TORETEST:
# 查找最近一条检验记录 # 查找最近一条工序检验记录
trs = wproduct.last_wp_test trs = wproduct.last_process_test
savedict['origin_test'] = trs savedict['origin_test'] = trs
if not trs: if not trs:
raise exceptions.APIException('原工序检验记录不存在') raise exceptions.APIException('原工序检验记录不存在')