From 1c447a86ef7de268885989adcb313b09615ac456 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sat, 20 Sep 2025 14:14:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AF=BC=E5=85=A5=E7=89=A9=E6=96=99?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/mtm/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mtm/services.py b/apps/mtm/services.py index 626b95b4..4cd99e6e 100644 --- a/apps/mtm/services.py +++ b/apps/mtm/services.py @@ -58,7 +58,7 @@ def daoru_material(path: str): i = 3 if sheet['a2'].value != '物料编号': 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(' ', '') try: type = type_dict[type_str]