feat: 导入物料优化一下

This commit is contained in:
caoqianming 2025-09-20 14:14:26 +08:00
parent 820f814766
commit 1c447a86ef
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ def daoru_material(path: str):
i = 3 i = 3
if sheet['a2'].value != '物料编号': if sheet['a2'].value != '物料编号':
raise ParseError('列错误导入失败') raise ParseError('列错误导入失败')
while sheet[f'b{i}'].value is not None: while sheet[f'b{i}'].value is not None or sheet[f'd{i}'].value is not None:
type_str = sheet[f'b{i}'].value.replace(' ', '') type_str = sheet[f'b{i}'].value.replace(' ', '')
try: try:
type = type_dict[type_str] type = type_dict[type_str]