feat: 批次号格式错误的校验2

This commit is contained in:
caoqianming 2025-11-21 11:08:02 +08:00
parent 5fa4881614
commit 99df0166f8
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ def daoru_mioitems(path:str, mio:MIO):
else:
batch = ""
if batch != '' and len(batch) < 5:
raise ParseError('批次号格式错误')
raise ParseError(f'{ind}批次号{batch}:格式错误')
count = sheet[f"f{ind}"].value
warehouse_name = sheet[f"g{ind}"].value
try: