diff --git a/sf_base/models/basic_parameters_fixture.py b/sf_base/models/basic_parameters_fixture.py
index 57d55bde..ad696831 100644
--- a/sf_base/models/basic_parameters_fixture.py
+++ b/sf_base/models/basic_parameters_fixture.py
@@ -65,4 +65,177 @@ class BasicParametersFixture(models.Model):
# '三爪卡盘' 字段
mounting_hole_depth = fields.Float('安装孔深度(mm)', digits=(16, 2))
- centering_diameter = fields.Float('定心直径(mm)', digits=(16, 2))
\ No newline at end of file
+ centering_diameter = fields.Float('定心直径(mm)', digits=(16, 2))
+
+ def _json_zero_chuck_param(self, obj):
+ zero_chuck_param_str = (0, '', {
+ 'name': obj['name'],
+ 'length': obj['length'],
+ 'width': obj['width'],
+ 'height': obj['height'],
+ 'diameter': obj['diameter'],
+ 'weight': obj['weight'],
+ 'orientation_dish_diameter': obj['orientation_dish_diameter'],
+ 'clamping_diameter': obj['clamping_diameter'],
+ 'clamping_num': obj['clamping_num'],
+ 'chucking_power_max': obj['chucking_power_max'],
+ 'repeated_positioning_accuracy': obj['repeated_positioning_accuracy'],
+ 'boolean_transposing_hole': obj['boolean_transposing_hole'],
+ 'unlocking_method': obj['unlocking_method'],
+ 'boolean_chip_blowing_function': obj['boolean_chip_blowing_function'],
+ 'carrying_capacity_max': obj['carrying_capacity_max'],
+ 'rigidity': obj['rigidity'],
+ 'materials_model_id': obj['materials_model_id'],
+ 'machine_tool_type_id': obj['machine_tool_type_id'],
+ })
+ return zero_chuck_param_str
+
+ def _json_zero_tray_param(self, obj):
+ zero_tray_param_str = (0, '', {
+ 'name': obj['name'],
+ 'length': obj['length'],
+ 'width': obj['width'],
+ 'height': obj['height'],
+ 'diameter': obj['diameter'],
+ 'weight': obj['weight'],
+ 'clamping_diameter': obj['clamping_diameter'],
+ 'connector_diameter': obj['connector_diameter'],
+ 'chucking_power_max': obj['chucking_power_max'],
+ 'repeated_positioning_accuracy': obj['repeated_positioning_accuracy'],
+ 'boolean_chip_blowing_function': obj['boolean_chip_blowing_function'],
+ 'way_to_install': obj['way_to_install'],
+ 'type_of_drive': obj['type_of_drive'],
+ 'carrying_capacity_max': obj['carrying_capacity_max'],
+ 'materials_model_id': obj['materials_model_id'],
+ 'rigidity': obj['rigidity'],
+ })
+ return zero_tray_param_str
+
+ def _json_pneumatic_fixture_param(self, obj):
+ pneumatic_fixture_param_str = (0, '', {
+ 'name': obj['name'],
+ 'length': obj['length'],
+ 'width': obj['width'],
+ 'height': obj['height'],
+ 'weight': obj['weight'],
+ 'gripper_length_min': obj['gripper_length_min'],
+ 'gripper_width_min': obj['gripper_width_min'],
+ 'gripper_height_min': obj['gripper_height_min'],
+ 'gripper_diameter_min': obj['gripper_diameter_min'],
+ 'gripper_length_max': obj['gripper_length_max'],
+ 'gripper_width_max': obj['gripper_width_max'],
+ 'gripper_height_max': obj['gripper_height_max'],
+ 'gripper_diameter_max': obj['gripper_diameter_max'],
+ 'chucking_power_max': obj['chucking_power_max'],
+ 'carrying_capacity_max': obj['carrying_capacity_max'],
+ 'rated_air_pressure': obj['rated_air_pressure'],
+ 'materials_model_id': obj['materials_model_id'],
+ 'rigidity': obj['rigidity'],
+ 'interface_materials_model_id': obj['interface_materials_model_id'],
+ 'type_of_drive': obj['type_of_drive'],
+ })
+ return pneumatic_fixture_param_str
+
+ def _json_jaw_vice_fixture_param(self, obj):
+ jaw_vice_fixture_param_str = (0, '', {
+ 'name': obj['name'],
+ 'length': obj['length'],
+ 'width': obj['width'],
+ 'height': obj['height'],
+ 'weight': obj['weight'],
+ 'gripper_length_min': obj['gripper_length_min'],
+ 'gripper_width_min': obj['gripper_width_min'],
+ 'gripper_height_min': obj['gripper_height_min'],
+ 'gripper_diameter_min': obj['gripper_diameter_min'],
+ 'gripper_length_max': obj['gripper_length_max'],
+ 'gripper_width_max': obj['gripper_width_max'],
+ 'gripper_height_max': obj['gripper_height_max'],
+ 'gripper_diameter_max': obj['gripper_diameter_max'],
+ 'chucking_power_max': obj['chucking_power_max'],
+ 'carrying_capacity_max': obj['carrying_capacity_max'],
+ 'transverse_groove': obj['transverse_groove'],
+ 'longitudinal_fitting_groove': obj['longitudinal_fitting_groove'],
+ 'materials_model_id': obj['materials_model_id'],
+ 'rigidity': obj['rigidity'],
+ 'interface_materials_model_id': obj['interface_materials_model_id'],
+ 'type_of_drive': obj['type_of_drive'],
+ })
+ return jaw_vice_fixture_param_str
+
+ def _json_magnet_fixture_param(self, obj):
+ magnet_fixture_param_str = (0, '', {
+ 'name': obj['name'],
+ 'length': obj['length'],
+ 'width': obj['width'],
+ 'height': obj['height'],
+ 'height_tolerance_value': obj['height_tolerance_value'],
+ 'weight': obj['weight'],
+ 'gripper_length_min': obj['gripper_length_min'],
+ 'gripper_width_min': obj['gripper_width_min'],
+ 'gripper_height_min': obj['gripper_height_min'],
+ 'gripper_diameter_min': obj['gripper_diameter_min'],
+ 'gripper_length_max': obj['gripper_length_max'],
+ 'gripper_width_max': obj['gripper_width_max'],
+ 'gripper_height_max': obj['gripper_height_max'],
+ 'gripper_diameter_max': obj['gripper_diameter_max'],
+ 'rated_adsorption_force': obj['rated_adsorption_force'],
+ 'magnetic_field_height': obj['magnetic_field_height'],
+ 'magnetic_pole_plate_grinding_allowance': obj['magnetic_pole_plate_grinding_allowance'],
+ 'carrying_capacity_max': obj['carrying_capacity_max'],
+ 'materials_model_id': obj['materials_model_id'],
+ 'rigidity': obj['rigidity'],
+ 'interface_materials_model_id': obj['interface_materials_model_id'],
+ 'type_of_drive': obj['type_of_drive'],
+ })
+ return magnet_fixture_param_str
+
+ def _json_adapter_board_fixture_param(self, obj):
+ adapter_board_fixture_param_str = (0, '', {
+ 'name': obj['name'],
+ 'length': obj['length'],
+ 'width': obj['width'],
+ 'height': obj['height'],
+ 'weight': obj['weight'],
+ 'gripper_length_min': obj['gripper_length_min'],
+ 'gripper_width_min': obj['gripper_width_min'],
+ 'gripper_height_min': obj['gripper_height_min'],
+ 'gripper_diameter_min': obj['gripper_diameter_min'],
+ 'gripper_length_max': obj['gripper_length_max'],
+ 'gripper_width_max': obj['gripper_width_max'],
+ 'gripper_height_max': obj['gripper_height_max'],
+ 'gripper_diameter_max': obj['gripper_diameter_max'],
+ 'chucking_power_max': obj['chucking_power_max'],
+ 'carrying_capacity_max': obj['carrying_capacity_max'],
+ 'materials_model_id': obj['materials_model_id'],
+ 'rigidity': obj['rigidity'],
+ 'screw_size': obj['screw_size'],
+ 'via_hole_diameter': obj['via_hole_diameter'],
+ 'type_of_drive': obj['type_of_drive'],
+ })
+ return adapter_board_fixture_param_str
+
+ def _json_scroll_chuck_param(self, obj):
+ scroll_chuck_param_str = (0, '', {
+ 'name': obj['name'],
+ 'length': obj['length'],
+ 'width': obj['width'],
+ 'height': obj['height'],
+ 'diameter': obj['diameter'],
+ 'weight': obj['weight'],
+ 'gripper_length_min': obj['gripper_length_min'],
+ 'gripper_width_min': obj['gripper_width_min'],
+ 'gripper_height_min': obj['gripper_height_min'],
+ 'gripper_diameter_min': obj['gripper_diameter_min'],
+ 'gripper_length_max': obj['gripper_length_max'],
+ 'gripper_width_max': obj['gripper_width_max'],
+ 'gripper_height_max': obj['gripper_height_max'],
+ 'gripper_diameter_max': obj['gripper_diameter_max'],
+ 'chucking_power_max': obj['chucking_power_max'],
+ 'carrying_capacity_max': obj['carrying_capacity_max'],
+ 'materials_model_id': obj['materials_model_id'],
+ 'rigidity': obj['rigidity'],
+ 'mounting_hole_depth': obj['mounting_hole_depth'],
+ 'centering_diameter': obj['centering_diameter'],
+ 'type_of_drive': obj['type_of_drive'],
+ })
+ return scroll_chuck_param_str
diff --git a/sf_tool_management/models/base.py b/sf_tool_management/models/base.py
index 9f5721a5..80ac3811 100644
--- a/sf_tool_management/models/base.py
+++ b/sf_tool_management/models/base.py
@@ -791,7 +791,7 @@ class FunctionalToolAssembly(models.Model):
L_D_number = fields.Float(string='L/D值(mm)', readonly=True)
hiding_length = fields.Float(string='避空长(mm)', readonly=True)
- functional_tool_cutting_type = fields.Char(string='功能刀具切削类型', readonly=False)
+ # functional_tool_cutting_type = fields.Char(string='功能刀具切削类型', readonly=False)
tool_loading_person = fields.Char(string='装刀人', readonly=True)
tool_loading_time = fields.Datetime(string='装刀时间', readonly=True)
remark = fields.Char(string='备注说明', readonly=True)
diff --git a/sf_tool_management/views/tool_base_views.xml b/sf_tool_management/views/tool_base_views.xml
index 42bb103b..62c0f0eb 100644
--- a/sf_tool_management/views/tool_base_views.xml
+++ b/sf_tool_management/views/tool_base_views.xml
@@ -878,7 +878,7 @@
-
+
@@ -937,7 +936,6 @@
'default_new_former':new_former,
'default_use_tool_time':use_tool_time,
'default_reason_for_applying':reason_for_applying,
- 'default_functional_tool_cutting_type':functional_tool_cutting_type,
}"
attrs="{'invisible': [('assemble_status', '!=', '0')]}"
class="btn-primary"/>
@@ -1116,7 +1114,7 @@
-
+
diff --git a/sf_tool_management/wizard/wizard.py b/sf_tool_management/wizard/wizard.py
index f98da62e..a8b10fd1 100644
--- a/sf_tool_management/wizard/wizard.py
+++ b/sf_tool_management/wizard/wizard.py
@@ -330,7 +330,7 @@ class FunctionalToolAssemblyOrder(models.TransientModel):
L_D_number = fields.Float(string='L/D值(mm)', compute='_compute_l_d_number')
hiding_length = fields.Float(string='避空长(mm)')
- functional_tool_cutting_type = fields.Char(string='功能刀具切削类型', readonly=False)
+ # functional_tool_cutting_type = fields.Char(string='功能刀具切削类型', readonly=False)
@api.onchange('integral_code_id')
def _onchange_after_assembly_functional_tool_diameter(self):
diff --git a/sf_tool_management/wizard/wizard_view.xml b/sf_tool_management/wizard/wizard_view.xml
index 7b3d2ab5..7586a513 100644
--- a/sf_tool_management/wizard/wizard_view.xml
+++ b/sf_tool_management/wizard/wizard_view.xml
@@ -190,7 +190,7 @@
-
+