diff --git a/jikimo_frontend/__manifest__.py b/jikimo_frontend/__manifest__.py index 2711118a..65a11379 100644 --- a/jikimo_frontend/__manifest__.py +++ b/jikimo_frontend/__manifest__.py @@ -36,7 +36,7 @@ # 'jikimo_frontend/static/src/list/custom_import.js', # 'jikimo_frontend/static/src/list/custom_width.js', 'jikimo_frontend/static/src/views/list_nums/extent_purchase.xml', - # 'jikimo_frontend/static/src/css/list_border_styles.css', + 'jikimo_frontend/static/src/css/list_border_styles.css', ], diff --git a/sf_base/models/base.py b/sf_base/models/base.py index 6fc86e94..c3152098 100644 --- a/sf_base/models/base.py +++ b/sf_base/models/base.py @@ -106,6 +106,7 @@ class MachineTool(models.Model): lead_screw = fields.Char('丝杆') workbench_L = fields.Char('工作台长度(mm)') workbench_W = fields.Char('工作台宽度(mm)') + workbench_H = fields.Char('工作台高度(mm)') guide_rail = fields.Char('导轨') machine_tool_L = fields.Char('机床长度(mm)') machine_tool_W = fields.Char('机床宽度(mm)') @@ -193,6 +194,7 @@ class MachineTool(models.Model): item.lead_screw = item.type_id.lead_screw item.workbench_L = item.type_id.workbench_L item.workbench_W = item.type_id.workbench_W + item.workbench_H = item.type_id.workbench_H item.guide_rail = item.type_id.guide_rail item.machine_tool_L = item.type_id.machine_tool_L item.machine_tool_W = item.type_id.machine_tool_W @@ -280,6 +282,7 @@ class MachineToolType(models.Model): workpiece_load = fields.Char('工件最大负载(kg)') workbench_L = fields.Char('工作台长度(mm)') workbench_W = fields.Char('工作台宽度(mm)') + workbench_H = fields.Char('工作台高度(mm)') machine_tool_L = fields.Char('机床长度(mm)') machine_tool_W = fields.Char('机床宽度(mm)') machine_tool_H = fields.Char('机床高度(mm)') @@ -295,8 +298,9 @@ class MachineToolType(models.Model): x_axis = fields.Integer('X轴') y_axis = fields.Integer('Y轴') z_axis = fields.Integer('Z轴') - b_axis = fields.Integer('B轴') - c_axis = fields.Integer('C轴') + a_axis = fields.Char('a轴') + b_axis = fields.Char('B轴') + c_axis = fields.Char('C轴') remark = fields.Char('备注') control_system_id = fields.Many2one('sf.machine.control_system', string="控制系统") @@ -309,7 +313,7 @@ class MachineToolType(models.Model): default="", string="轴数") # 1212新增字段 - a_axis = fields.Integer('a轴') + function_type = fields.Selection( [("ZXJGZX", "钻铣加工中心"), ("CXJGZX", "车削加工中心"), ("FHJGZX", "复合加工中心")], default="", string="功能类型") @@ -335,23 +339,23 @@ class MachineToolType(models.Model): straight_cutting_feed_rate = fields.Char('直线切削进给速度(mm/min)') rotary_cutting_feed_rate = fields.Char('回转切削进给速度(mm/min)') - X_precision = fields.Float('X轴定位精度(mm)', digits=(12, 3)) - X_precision_repeat = fields.Float('X轴重复定位精度(mm)', digits=(12, 3)) - Y_precision = fields.Float('Y轴定位精度(mm)', digits=(12, 3)) - Y_precision_repeat = fields.Float('Y轴重复定位精度(mm)', digits=(12, 3)) - Z_precision = fields.Float('Z轴定位精度(mm)', digits=(12, 3)) - Z_precision_repeat = fields.Float('Z轴重复定位精度(mm)', digits=(12, 3)) - a_precision = fields.Float('a轴定位精度(mm)', digits=(12, 3)) - a_precision_repeat = fields.Float('a轴重复定位精度(mm)', digits=(12, 3)) - b_precision = fields.Float('b轴定位精度(mm)', digits=(12, 3)) - b_precision_repeat = fields.Float('b轴重复定位精度(mm)', digits=(12, 3)) - c_precision = fields.Float('c轴定位精度(mm)', digits=(12, 3)) - c_precision_repeat = fields.Float('c轴重复定位精度(mm)', digits=(12, 3)) + X_precision = fields.Char('X轴定位精度(mm)') + X_precision_repeat = fields.Char('X轴重复定位精度(mm)') + Y_precision = fields.Char('Y轴定位精度(mm)') + Y_precision_repeat = fields.Char('Y轴重复定位精度(mm)') + Z_precision = fields.Char('Z轴定位精度(mm)') + Z_precision_repeat = fields.Char('Z轴重复定位精度(mm)') + a_precision = fields.Char('a轴定位精度(mm)') + a_precision_repeat = fields.Char('a轴重复定位精度(mm)') + b_precision = fields.Char('b轴定位精度(mm)') + b_precision_repeat = fields.Char('b轴重复定位精度(mm)') + c_precision = fields.Char('c轴定位精度(mm)') + c_precision_repeat = fields.Char('c轴重复定位精度(mm)') tool_full_diameter_max = fields.Float('刀具满刀最大直径(mm)') tool_perimeter_diameter_max = fields.Float('刀具邻空刀最大直径(mm)') - T_tool_time = fields.Integer('T-T换刀时间(s)') - C_tool_time = fields.Integer('C-C换刀时间(s)') + T_tool_time = fields.Float('T-T换刀时间(s)', digits=(12, 1)) + C_tool_time = fields.Float('C-C换刀时间(s)', digits=(12, 1)) jg_image_id = fields.Many2many('maintenance.equipment.image', 'jg_equipment_id', string='加工能力', domain="[('type', '=', '加工能力')]") diff --git a/sf_base/security/ir.model.access.csv b/sf_base/security/ir.model.access.csv index ac0c1880..b5c637f6 100644 --- a/sf_base/security/ir.model.access.csv +++ b/sf_base/security/ir.model.access.csv @@ -73,9 +73,11 @@ access_sf_cutting_speed,sf_cutting_speed,model_sf_cutting_speed,base.group_user, access_sf_cutting_speed_admin,sf_cutting_speed_admin,model_sf_cutting_speed,base.group_system,1,1,1,0 access_sf_cutting_speed_group_purchase_director,sf_cutting_speed_group_purchase_director,model_sf_cutting_speed,sf_base.group_purchase_director,1,1,1,0 access_sf_cutting_speed_group_sale_director,sf_cutting_speed_group_sale_director,model_sf_cutting_speed,sf_base.group_sale_director,1,1,1,0 +access_sf_cutting_speed_group_plan_dispatch,sf_cutting_speed_group_plan_dispatch,model_sf_cutting_speed,sf_base.group_plan_dispatch,1,0,0,0 access_sf_cutting_speed_group_plan_director,sf_cutting_speed_group_plan_director,model_sf_cutting_speed,sf_base.group_plan_director,1,1,1,0 access_sf_feed_per_tooth_group_purchase_director,sf_feed_per_tooth_group_purchase_director,model_sf_feed_per_tooth,sf_base.group_purchase_director,1,1,0,0 access_sf_feed_per_tooth_group_sale_director,sf_feed_per_tooth_group_sale_director,model_sf_feed_per_tooth,sf_base.group_sale_director,1,1,0,0 +access_sf_feed_per_tooth_group_plan_dispatch,sf_feed_per_tooth_group_plan_dispatch,model_sf_feed_per_tooth,sf_base.group_plan_dispatch,1,0,0,0 access_sf_feed_per_tooth_group_plan_director,sf_feed_per_tooth_group_plan_director,model_sf_feed_per_tooth,sf_base.group_plan_director,1,1,0,0 access_sf_feed_per_tooth_group_sale_salemanager,sf_feed_per_tooth_group_sale_salemanager,model_sf_feed_per_tooth,sf_base.group_sale_salemanager,1,0,0,0 access_sf_feed_per_tooth,sf_feed_per_tooth,model_sf_feed_per_tooth,base.group_user,1,1,1,0 diff --git a/sf_base/views/base_view.xml b/sf_base/views/base_view.xml index ca3aba53..a41d3a2b 100644 --- a/sf_base/views/base_view.xml +++ b/sf_base/views/base_view.xml @@ -173,6 +173,10 @@