This commit is contained in:
2026-04-07 09:51:38 +08:00
parent ecba4d726a
commit 00dcd6b6cc
36 changed files with 2857 additions and 505 deletions

25
core/core_utils.py Normal file
View File

@ -0,0 +1,25 @@
class CoreUtils:
@staticmethod
def get_number_by_mould_code(mould_code:str=''):
"""获取分块号"""
"""根据模块码获取块号"""
if '-' in mould_code:
block_number = mould_code.split('-')[0][-2:]
else:
block_number=''
return block_number
@staticmethod
def get_size_by_mould_code(mould_code:str=''):
"""获取模具尺寸"""
if mould_code.startswith('SHR'):
return '6600*1500'
elif mould_code.startswith('SHZ'):
return '6600*1200'
else:
return '0'