1、获取mrs编程接口优化,重新编程接口优化,创建CAM方法优化,cnc用刀校验逻辑优化

This commit is contained in:
yuxianghui
2024-10-10 17:31:56 +08:00
parent f18c0e3eaf
commit 25a90f3966
4 changed files with 16 additions and 13 deletions

View File

@@ -297,7 +297,7 @@ class MrpProduction(models.Model):
def update_programming_state(self):
try:
manufacturing_type = 'rework'
if self.is_scrap is False:
if self.is_scrap:
manufacturing_type = 'scrap'
elif self.tool_state == '2':
manufacturing_type = 'invalid_tool_rework'