feat: 批次号格式错误的校验2
This commit is contained in:
parent
5fa4881614
commit
99df0166f8
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue