feat: ftestwork_submit 时根据工段配置生成不合格品

This commit is contained in:
caoqianming 2025-02-18 11:09:49 +08:00
parent b062d7ef6b
commit f5229ab8cb
1 changed files with 29 additions and 27 deletions

View File

@ -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: