From 4609ec442aa395fa1285f397f0ff07e6a457155d Mon Sep 17 00:00:00 2001
From: yuxianghui <3437689193@qq.com>
Date: Fri, 20 Sep 2024 16:50:55 +0800
Subject: [PATCH 04/10] =?UTF-8?q?1=E3=80=81=E5=88=80=E5=85=B7=E6=A0=87?=
=?UTF-8?q?=E5=87=86=E5=BA=93=E4=BC=98=E5=8C=96=EF=BC=8C=E6=95=B4=E4=BD=93?=
=?UTF-8?q?=E5=BC=8F=E5=88=80=E5=85=B7=E7=89=A9=E6=96=99=E4=BA=A7=E5=93=81?=
=?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9B=E5=88=80=E5=85=B7=E5=90=8C=E6=AD=A5?=
=?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=96=EF=BC=9B2=E3=80=81?=
=?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BB=84=E8=A3=85=E5=8D=95=E6=89=AB=E6=8F=8F?=
=?UTF-8?q?=E7=A1=AE=E8=AE=A4=E7=BB=84=E8=A3=85=E5=92=8C=E8=8E=B7=E5=8F=96?=
=?UTF-8?q?=E6=B5=8B=E9=87=8F=E5=80=BC=E5=8A=9F=E8=83=BD=EF=BC=9B=E7=BB=84?=
=?UTF-8?q?=E8=A3=85=E5=8D=95=E6=9B=B4=E6=8D=A2=E7=89=A9=E6=96=99=E5=BC=B9?=
=?UTF-8?q?=E7=AA=97=E4=BF=A1=E6=81=AF=E4=BC=98=E5=8C=96=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sf_base/models/tool_other_features.py | 3 ++-
sf_base/static/src/js/custom_barcode_handlers.js | 1 +
sf_base/views/tool_basic_param.xml | 3 +++
sf_base/views/tool_views.xml | 1 +
.../views/product_template_management_view.xml | 2 ++
sf_manufacturing/models/product_template.py | 6 ++++--
sf_mrs_connect/models/sync_common.py | 4 ++++
sf_tool_management/models/base.py | 4 +++-
sf_tool_management/models/stock.py | 4 ++--
sf_tool_management/views/stock.xml | 7 +++++--
sf_tool_management/views/tool_base_views.xml | 4 ++--
11 files changed, 29 insertions(+), 10 deletions(-)
diff --git a/sf_base/models/tool_other_features.py b/sf_base/models/tool_other_features.py
index f67e69fd..5bd597ae 100644
--- a/sf_base/models/tool_other_features.py
+++ b/sf_base/models/tool_other_features.py
@@ -22,7 +22,8 @@ class ToolMaterialsBasicParameters(models.Model):
handle_diameter = fields.Float('柄部直径(mm)')
handle_length = fields.Float('柄部长度(mm)')
blade_tip_diameter = fields.Integer('刀尖直径(mm)')
- blade_tip_working_size = fields.Char('刀尖处理尺寸(R半径mm/倒角度)', size=20)
+ blade_tip_working_size = fields.Char('刀尖倒角度(°)', size=20)
+ tip_r_size = fields.Float('刀尖R角(mm)')
blade_tip_taper = fields.Integer('刀尖锥度(°)')
blade_diameter = fields.Float('刃部直径(mm)')
blade_length = fields.Float('刃部长度(mm)')
diff --git a/sf_base/static/src/js/custom_barcode_handlers.js b/sf_base/static/src/js/custom_barcode_handlers.js
index 220d2cbb..18db64e7 100644
--- a/sf_base/static/src/js/custom_barcode_handlers.js
+++ b/sf_base/static/src/js/custom_barcode_handlers.js
@@ -30,6 +30,7 @@ patch(barcodeGenericHandlers, "start", {
"O-CMD.PAGER-FIRST": () => updatePager("first"),
"O-CMD.PAGER-LAST": () => updatePager("last"),
"O-CMD.CONFIRM": () => customClickOnButton(".jikimo_button_confirm"),
+ "O-CMD.FLUSHED": () => customClickOnButton(".jikimo_button_flushed"),
};
barcode.bus.addEventListener("barcode_scanned", (ev) => {
diff --git a/sf_base/views/tool_basic_param.xml b/sf_base/views/tool_basic_param.xml
index d138eeb8..06bb80bb 100644
--- a/sf_base/views/tool_basic_param.xml
+++ b/sf_base/views/tool_basic_param.xml
@@ -15,6 +15,7 @@
+
@@ -95,6 +96,7 @@
+
@@ -139,6 +141,7 @@
+
diff --git a/sf_base/views/tool_views.xml b/sf_base/views/tool_views.xml
index b90d1a5c..8b429f89 100644
--- a/sf_base/views/tool_views.xml
+++ b/sf_base/views/tool_views.xml
@@ -222,6 +222,7 @@
+
diff --git a/sf_dlm_management/views/product_template_management_view.xml b/sf_dlm_management/views/product_template_management_view.xml
index caefcb34..f53c5e2b 100644
--- a/sf_dlm_management/views/product_template_management_view.xml
+++ b/sf_dlm_management/views/product_template_management_view.xml
@@ -191,6 +191,8 @@
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')],'readonly': [('id', '!=', False)]}"/>
+
@@ -62,6 +61,7 @@
+
@@ -86,6 +86,7 @@
+
@@ -111,6 +112,7 @@
+
@@ -135,6 +137,7 @@
+
diff --git a/sf_tool_management/views/tool_base_views.xml b/sf_tool_management/views/tool_base_views.xml
index 2a68ce8e..130936d8 100644
--- a/sf_tool_management/views/tool_base_views.xml
+++ b/sf_tool_management/views/tool_base_views.xml
@@ -478,9 +478,9 @@
class="btn-primary"/>
+ class="btn-primary jikimo_button_confirm"/>
From bbf62d230209244c614f589eb4e54a02a9ca8d54 Mon Sep 17 00:00:00 2001
From: "jinling.yang"
Date: Fri, 20 Sep 2024 17:32:02 +0800
Subject: [PATCH 05/10] =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=A8=A1=E5=9D=97?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9D=83=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sf_message/__manifest__.py | 2 +-
sf_message/security/ir.model.access.csv | 18 ++++++++++++++++++
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/sf_message/__manifest__.py b/sf_message/__manifest__.py
index 671abb85..cdfef4bd 100644
--- a/sf_message/__manifest__.py
+++ b/sf_message/__manifest__.py
@@ -11,7 +11,7 @@
""",
'category': 'sf',
'website': 'https://www.sf.jikimo.com',
- 'depends': ['base', 'jikimo_message_notify'],
+ 'depends': ['sale', 'purchase', 'sf_plan', 'jikimo_message_notify'],
'data': [
'data/bussiness_node.xml'
],
diff --git a/sf_message/security/ir.model.access.csv b/sf_message/security/ir.model.access.csv
index fd6de5be..cb42c911 100644
--- a/sf_message/security/ir.model.access.csv
+++ b/sf_message/security/ir.model.access.csv
@@ -1,5 +1,23 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+access_jikimo_message_template_group_sale_salemanager,jikimo_message_template,model_jikimo_message_template,sf_base.group_sale_salemanager,1,1,1,0
+access_jikimo_message_template_group_purchase,jikimo_message_template,model_jikimo_message_template,sf_base.group_purchase,1,1,1,0
+access_jikimo_message_template_group_sf_stock_user,jikimo_message_template,model_jikimo_message_template,sf_base.group_sf_stock_user,1,1,1,0
+access_jikimo_message_template_group_sf_order_user,jikimo_message_template,model_jikimo_message_template,sf_base.group_sf_order_user,1,1,1,0
+access_jikimo_message_template_group_sf_tool_user,jikimo_message_template,model_jikimo_message_template,sf_base.group_sf_tool_user,1,1,1,0
+
+access_jikimo_message_bussiness_node_group_sale_salemanager,jikimo_message_bussiness_node,model_jikimo_message_bussiness_node,sf_base.group_sale_salemanager,1,1,1,0
+access_jikimo_message_bussiness_node_group_purchase,jikimo_message_bussiness_node,model_jikimo_message_bussiness_node,sf_base.group_purchase,1,1,1,0
+access_jikimo_message_bussiness_node_group_sf_stock_user,jikimo_message_bussiness_node,model_jikimo_message_bussiness_node,sf_base.group_sf_stock_user,1,1,1,0
+access_jikimo_message_bussiness_node_group_sf_order_user,jikimo_message_bussiness_node,model_jikimo_message_bussiness_node,sf_base.group_sf_order_user,1,1,1,0
+access_jikimo_message_bussiness_node_group_sf_tool_user,jikimo_message_bussiness_node,model_jikimo_message_bussiness_node,sf_base.group_sf_tool_user,1,1,1,0
+
+access_jikimo_message_queue_group_sale_salemanager,jikimo_message_queue,model_jikimo_message_queue,sf_base.group_sale_salemanager,1,1,1,0
+access_jikimo_message_queue_group_purchase,jikimo_message_queue,model_jikimo_message_queue,sf_base.group_purchase,1,1,1,0
+access_jikimo_message_queue_group_sf_stock_user,jikimo_message_queue,model_jikimo_message_queue,sf_base.group_sf_stock_user,1,1,1,0
+access_jikimo_message_queue_group_sf_order_user,jikimo_message_queue,model_jikimo_message_queue,sf_base.group_sf_order_user,1,1,1,0
+access_jikimo_message_queue_group_sf_tool_user,jikimo_message_queue,model_jikimo_message_queue,sf_base.group_sf_tool_user,1,1,1,0
+
From 6591e663b658cdb46795727d9741ddb3686c51fb Mon Sep 17 00:00:00 2001
From: "jinling.yang"
Date: Mon, 23 Sep 2024 10:26:53 +0800
Subject: [PATCH 06/10] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BE=85=E6=8E=92?=
=?UTF-8?q?=E7=A8=8B=E7=9A=84=E6=B6=88=E6=81=AF=E6=8E=A8=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sf_manufacturing/models/product_template.py | 4 ++--
sf_message/models/sf_message_sale.py | 8 ++------
sf_sale/models/quick_easy_order.py | 4 ++--
sf_sale/models/quick_easy_order_old.py | 4 ++--
4 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/sf_manufacturing/models/product_template.py b/sf_manufacturing/models/product_template.py
index 209c694e..48cabaf7 100644
--- a/sf_manufacturing/models/product_template.py
+++ b/sf_manufacturing/models/product_template.py
@@ -9,8 +9,8 @@ from odoo.exceptions import ValidationError, UserError
from odoo.modules import get_resource_path
-# from OCC.Extend.DataExchange import read_step_file
-# from OCC.Extend.DataExchange import write_stl_file
+from OCC.Extend.DataExchange import read_step_file
+from OCC.Extend.DataExchange import write_stl_file
class ResProductMo(models.Model):
diff --git a/sf_message/models/sf_message_sale.py b/sf_message/models/sf_message_sale.py
index 1a9fe70b..fb9d5976 100644
--- a/sf_message/models/sf_message_sale.py
+++ b/sf_message/models/sf_message_sale.py
@@ -27,6 +27,7 @@ class SFMessageSale(models.Model):
# 继承并重写jikimo.message.dispatch的_get_message()
def _get_message(self, message_queue_ids):
+ res = super(SFMessageSale, self)._get_message(message_queue_ids)
if message_queue_ids.message_template_id.bussiness_node_id.name == '确认接单':
# sale_order = self.env['sale.order'].search([('id', '=', message_queue_ids.model.res_id)])
sale_order_line = self.env['sale.order.line'].search([('order_id', '=', int(message_queue_ids.res_id))])
@@ -34,10 +35,5 @@ class SFMessageSale(models.Model):
product = sale_order_line[0].product_id.name
elif len(sale_order_line) > 1:
product = '%s...' % sale_order_line[0].product_id.name
- res = super(SFMessageSale, self)._get_message(message_queue_ids)
- if res:
- try:
- res.add_queue('待排程')
- except Exception as e:
- logging.info('_get_message error:%s' % e)
+ res[0] = res[0].replace('{{product_id}}', product)
return res
diff --git a/sf_sale/models/quick_easy_order.py b/sf_sale/models/quick_easy_order.py
index cb1886a1..081807a4 100644
--- a/sf_sale/models/quick_easy_order.py
+++ b/sf_sale/models/quick_easy_order.py
@@ -8,8 +8,8 @@ from datetime import datetime
import requests
from odoo import http
from odoo.http import request
-# from OCC.Extend.DataExchange import read_step_file
-# from OCC.Extend.DataExchange import write_stl_file
+from OCC.Extend.DataExchange import read_step_file
+from OCC.Extend.DataExchange import write_stl_file
from odoo import models, fields, api
from odoo.modules import get_resource_path
from odoo.exceptions import ValidationError, UserError
diff --git a/sf_sale/models/quick_easy_order_old.py b/sf_sale/models/quick_easy_order_old.py
index 9bd61132..4756a2c5 100644
--- a/sf_sale/models/quick_easy_order_old.py
+++ b/sf_sale/models/quick_easy_order_old.py
@@ -6,8 +6,8 @@ import os
from datetime import datetime
from stl import mesh
# from OCC.Core.GProp import GProp_GProps
-# from OCC.Extend.DataExchange import read_step_file
-# from OCC.Extend.DataExchange import write_stl_file
+from OCC.Extend.DataExchange import read_step_file
+from OCC.Extend.DataExchange import write_stl_file
from odoo.addons.sf_base.commons.common import Common
from odoo import models, fields, api
from odoo.modules import get_resource_path
From b8baa84270e3f3c5e6cb84550d16c76fdad745cd Mon Sep 17 00:00:00 2001
From: "jinling.yang"
Date: Mon, 23 Sep 2024 10:30:51 +0800
Subject: [PATCH 07/10] =?UTF-8?q?=E8=BF=98=E5=8E=9F=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sf_manufacturing/models/stock.py | 144 +++++++++++++++----------------
1 file changed, 72 insertions(+), 72 deletions(-)
diff --git a/sf_manufacturing/models/stock.py b/sf_manufacturing/models/stock.py
index 6c4ba7ff..daf049eb 100644
--- a/sf_manufacturing/models/stock.py
+++ b/sf_manufacturing/models/stock.py
@@ -292,78 +292,78 @@ class StockRule(models.Model):
for product_id, all_production in grouped_product_ids.items():
# 为同一个product_id创建一个生产订单名称列表
product_id_to_production_names[product_id] = [production.name for production in all_production]
- # for production_item in productions:
- #
- # production_programming = self.env['mrp.production'].search(
- # [('product_id.id', '=', production_item.product_id.id),
- # ('origin', '=', production_item.origin)],
- # limit=1, order='id asc')
- # if production_item.product_id.id in product_id_to_production_names:
- # if not production_programming.programming_no:
- # if production_item.product_id.model_process_parameters_ids:
- # is_purchase = False
- # sorted_process_parameters = sorted(production_item.product_id.model_process_parameters_ids,
- # key=lambda w: w.id)
- #
- # consecutive_process_parameters = []
- # m = 0
- # for i in range(len(sorted_process_parameters) - 1):
- # if m == 0:
- # is_purchase = False
- # if self.env['product.template']._get_process_parameters_product(
- # sorted_process_parameters[i]).partner_id == self.env[
- # 'product.template']._get_process_parameters_product(sorted_process_parameters[
- # i + 1]).partner_id and \
- # sorted_process_parameters[i].gain_way == '外协':
- # if sorted_process_parameters[i] not in consecutive_process_parameters:
- # consecutive_process_parameters.append(sorted_process_parameters[i])
- # consecutive_process_parameters.append(sorted_process_parameters[i + 1])
- # m += 1
- # continue
- # else:
- # if m == len(consecutive_process_parameters) - 1 and m != 0:
- # self.env['purchase.order'].get_purchase_order(consecutive_process_parameters,
- # production_item,
- # product_id_to_production_names)
- # if sorted_process_parameters[i] in consecutive_process_parameters:
- # is_purchase = True
- # consecutive_process_parameters = []
- # m = 0
- # # 当前面的连续外协采购单生成再生成当前外协采购单
- # if is_purchase is False:
- # self.env['purchase.order'].get_purchase_order(consecutive_process_parameters,
- # production_item,
- # product_id_to_production_names)
- # if m == len(consecutive_process_parameters) - 1 and m != 0:
- # self.env['purchase.order'].get_purchase_order(consecutive_process_parameters,
- # production_item,
- # product_id_to_production_names)
- # if sorted_process_parameters[i] in consecutive_process_parameters:
- # is_purchase = True
- # consecutive_process_parameters = []
- # m = 0
- # if m == len(consecutive_process_parameters) - 1 and m != 0:
- # self.env['purchase.order'].get_purchase_order(consecutive_process_parameters,
- # production_item,
- # product_id_to_production_names)
- # if is_purchase is False and m == 0:
- # if len(sorted_process_parameters) == 1:
- # self.env['purchase.order'].get_purchase_order(sorted_process_parameters,
- # production_item,
- # product_id_to_production_names)
- # else:
- # self.env['purchase.order'].get_purchase_order(sorted_process_parameters[i],
- # production_item,
- # product_id_to_production_names)
- # # # 同一个产品多个制造订单对应一个编程单和模型库
- # # # 只调用一次fetchCNC,并将所有生产订单的名称作为字符串传递
- # if not production_item.programming_no:
- # if not production_programming.programming_no:
- # production_item.fetchCNC(
- # ', '.join(product_id_to_production_names[production_item.product_id.id]))
- # else:
- # production_item.write({'programming_no': production_programming.programming_no,
- # 'programming_state': '编程中'})
+ for production_item in productions:
+
+ production_programming = self.env['mrp.production'].search(
+ [('product_id.id', '=', production_item.product_id.id),
+ ('origin', '=', production_item.origin)],
+ limit=1, order='id asc')
+ if production_item.product_id.id in product_id_to_production_names:
+ if not production_programming.programming_no:
+ if production_item.product_id.model_process_parameters_ids:
+ is_purchase = False
+ sorted_process_parameters = sorted(production_item.product_id.model_process_parameters_ids,
+ key=lambda w: w.id)
+
+ consecutive_process_parameters = []
+ m = 0
+ for i in range(len(sorted_process_parameters) - 1):
+ if m == 0:
+ is_purchase = False
+ if self.env['product.template']._get_process_parameters_product(
+ sorted_process_parameters[i]).partner_id == self.env[
+ 'product.template']._get_process_parameters_product(sorted_process_parameters[
+ i + 1]).partner_id and \
+ sorted_process_parameters[i].gain_way == '外协':
+ if sorted_process_parameters[i] not in consecutive_process_parameters:
+ consecutive_process_parameters.append(sorted_process_parameters[i])
+ consecutive_process_parameters.append(sorted_process_parameters[i + 1])
+ m += 1
+ continue
+ else:
+ if m == len(consecutive_process_parameters) - 1 and m != 0:
+ self.env['purchase.order'].get_purchase_order(consecutive_process_parameters,
+ production_item,
+ product_id_to_production_names)
+ if sorted_process_parameters[i] in consecutive_process_parameters:
+ is_purchase = True
+ consecutive_process_parameters = []
+ m = 0
+ # 当前面的连续外协采购单生成再生成当前外协采购单
+ if is_purchase is False:
+ self.env['purchase.order'].get_purchase_order(consecutive_process_parameters,
+ production_item,
+ product_id_to_production_names)
+ if m == len(consecutive_process_parameters) - 1 and m != 0:
+ self.env['purchase.order'].get_purchase_order(consecutive_process_parameters,
+ production_item,
+ product_id_to_production_names)
+ if sorted_process_parameters[i] in consecutive_process_parameters:
+ is_purchase = True
+ consecutive_process_parameters = []
+ m = 0
+ if m == len(consecutive_process_parameters) - 1 and m != 0:
+ self.env['purchase.order'].get_purchase_order(consecutive_process_parameters,
+ production_item,
+ product_id_to_production_names)
+ if is_purchase is False and m == 0:
+ if len(sorted_process_parameters) == 1:
+ self.env['purchase.order'].get_purchase_order(sorted_process_parameters,
+ production_item,
+ product_id_to_production_names)
+ else:
+ self.env['purchase.order'].get_purchase_order(sorted_process_parameters[i],
+ production_item,
+ product_id_to_production_names)
+ # # 同一个产品多个制造订单对应一个编程单和模型库
+ # # 只调用一次fetchCNC,并将所有生产订单的名称作为字符串传递
+ if not production_item.programming_no:
+ if not production_programming.programming_no:
+ production_item.fetchCNC(
+ ', '.join(product_id_to_production_names[production_item.product_id.id]))
+ else:
+ production_item.write({'programming_no': production_programming.programming_no,
+ 'programming_state': '编程中'})
return True
From 4cee5213bbd76ebd327affd562bbc341421bb6ed Mon Sep 17 00:00:00 2001
From: yuxianghui <3437689193@qq.com>
Date: Mon, 23 Sep 2024 10:48:48 +0800
Subject: [PATCH 08/10] =?UTF-8?q?=E4=BA=A7=E5=93=81=E5=AD=97=E6=AE=B5?=
=?UTF-8?q?=E5=80=BC=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sf_base/models/tool_other_features.py | 2 +-
sf_manufacturing/models/product_template.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sf_base/models/tool_other_features.py b/sf_base/models/tool_other_features.py
index 5bd597ae..9dd30710 100644
--- a/sf_base/models/tool_other_features.py
+++ b/sf_base/models/tool_other_features.py
@@ -21,7 +21,7 @@ class ToolMaterialsBasicParameters(models.Model):
neck_length = fields.Float('颈部长度(mm)')
handle_diameter = fields.Float('柄部直径(mm)')
handle_length = fields.Float('柄部长度(mm)')
- blade_tip_diameter = fields.Integer('刀尖直径(mm)')
+ blade_tip_diameter = fields.Float('刀尖直径(mm)')
blade_tip_working_size = fields.Char('刀尖倒角度(°)', size=20)
tip_r_size = fields.Float('刀尖R角(mm)')
blade_tip_taper = fields.Integer('刀尖锥度(°)')
diff --git a/sf_manufacturing/models/product_template.py b/sf_manufacturing/models/product_template.py
index 48cabaf7..b18ab04c 100644
--- a/sf_manufacturing/models/product_template.py
+++ b/sf_manufacturing/models/product_template.py
@@ -237,8 +237,8 @@ class ResProductMo(models.Model):
self.cutting_tool_blade_tip_diameter = self.specification_id.blade_tip_diameter
self.cutting_tool_blade_tip_taper = self.specification_id.blade_tip_taper
self.cutting_tool_blade_helix_angle = self.specification_id.blade_helix_angle
- self.cutting_tool_blade_tip_working_size = self.specification_id.tip_r_size
- self.cutting_tool_blade_tip_r_size = self.specification_id.blade_tip_working_size
+ self.cutting_tool_blade_tip_working_size = self.specification_id.blade_tip_working_size
+ self.cutting_tool_blade_tip_r_size = self.specification_id.tip_r_size
self.cutting_tool_pitch = self.specification_id.pitch
self.cutting_tool_blade_width = self.specification_id.blade_width
self.cutting_tool_blade_depth = self.specification_id.blade_depth
From cab0e1ce0b4c1da7377e641b8cd09e5f439f4fb7 Mon Sep 17 00:00:00 2001
From: hy <1298386937@qq.com>
Date: Mon, 23 Sep 2024 10:54:37 +0800
Subject: [PATCH 09/10] =?UTF-8?q?=E9=A1=B6=E9=83=A8=E8=8F=9C=E5=8D=95?=
=?UTF-8?q?=E6=94=AF=E6=8C=81=E5=A4=9A=E7=BA=A7=E8=8F=9C=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../static/src/scss/theme.scss | 7 +++
.../static/src/xml/systray.xml | 47 ++++++++++++++-----
.../static/src/xml/top_bar.xml | 47 +++++++++++--------
3 files changed, 68 insertions(+), 33 deletions(-)
diff --git a/vista_backend_theme/static/src/scss/theme.scss b/vista_backend_theme/static/src/scss/theme.scss
index a7555c7f..669de341 100644
--- a/vista_backend_theme/static/src/scss/theme.scss
+++ b/vista_backend_theme/static/src/scss/theme.scss
@@ -1077,6 +1077,13 @@ div.dropdown-menu.bootstrap-datetimepicker-widget {
}
}
}
+ .subtitle {
+ margin: 5px 0 0px;
+ padding: 5px 0;
+ text-indent: 5px;
+ background: rgba(0, 0, 0, 0.1);
+ font-size: 14px;
+ }
&:hover {
.title {
background-color: rgba(0, 0, 0, 0.08);
diff --git a/vista_backend_theme/static/src/xml/systray.xml b/vista_backend_theme/static/src/xml/systray.xml
index 7f3865b2..a3005a15 100644
--- a/vista_backend_theme/static/src/xml/systray.xml
+++ b/vista_backend_theme/static/src/xml/systray.xml
@@ -1,16 +1,37 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/vista_backend_theme/static/src/xml/top_bar.xml b/vista_backend_theme/static/src/xml/top_bar.xml
index 05b399b6..12a2a20b 100644
--- a/vista_backend_theme/static/src/xml/top_bar.xml
+++ b/vista_backend_theme/static/src/xml/top_bar.xml
@@ -24,28 +24,35 @@
-
From 4f73f57ddfe734aa915d27d84be012e003274b71 Mon Sep 17 00:00:00 2001
From: hy <1298386937@qq.com>
Date: Mon, 23 Sep 2024 10:59:10 +0800
Subject: [PATCH 10/10] =?UTF-8?q?=E6=BC=8F=E6=8F=90=E4=BA=A4=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
vista_backend_theme/static/src/xml/top_bar.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/vista_backend_theme/static/src/xml/top_bar.xml b/vista_backend_theme/static/src/xml/top_bar.xml
index 12a2a20b..aa32caa3 100644
--- a/vista_backend_theme/static/src/xml/top_bar.xml
+++ b/vista_backend_theme/static/src/xml/top_bar.xml
@@ -25,10 +25,10 @@