feat: ftestwork_submit 时根据工段配置生成不合格品
This commit is contained in:
parent
b062d7ef6b
commit
f5229ab8cb
|
@ -67,6 +67,8 @@ def ftestwork_submit(ins:FtestWork, user: User):
|
|||
raise ParseError("不合格数不可大于批次数量")
|
||||
|
||||
# 生成不合格的
|
||||
process = wm.material.process
|
||||
if process.store_notok:
|
||||
count_notok_json = ins.count_notok_json
|
||||
for k, v in count_notok_json.items():
|
||||
if v > 0:
|
||||
|
|
Loading…
Reference in New Issue