fix: material unit 忽略大小写
This commit is contained in:
parent
fcc613170e
commit
9cd5bfc8f9
|
@ -58,7 +58,7 @@ def daoru_material(path: str):
|
|||
raise ParseError(f'{i}行物料信息错误: {str(e)}')
|
||||
try:
|
||||
filters = {'type': type, 'name': name, 'specification': specification,
|
||||
'model': model, 'unit': unit}
|
||||
'model': model, 'unit__iexact': unit}
|
||||
if type in [20, 30]:
|
||||
filters['process'] = process
|
||||
default = filters
|
||||
|
|
Loading…
Reference in New Issue