修复刀具标准库

This commit is contained in:
jinling.yang
2023-11-03 10:42:09 +08:00
parent 53ad002f3b
commit 686c049e52
3 changed files with 11 additions and 5 deletions

View File

@@ -288,6 +288,10 @@ class ResProductMo(models.Model):
self.cutting_tool_blade_length = self.specification_id.blade_length
self.cutting_tool_cutter_head_diameter = self.specification_id.cutter_head_diameter
self.cutting_tool_interface_diameter = self.specification_id.interface_diameter
else:
self.cutting_tool_knife_head_height = self.specification_id.knife_head_height
self.cutting_tool_knife_head_width = self.specification_id.knife_head_width
self.cutting_tool_knife_head_length = self.specification_id.knife_head_length
elif self.cutting_tool_type == '刀柄':
self.cutting_tool_total_length = self.specification_id.total_length
self.cutting_tool_standard_speed = self.specification_id.standard_rotate_speed