fix:excel导入的数据状态直接为已审核

This commit is contained in:
shijing 2026-03-20 10:12:50 +08:00
parent 8e47c0ef8f
commit 9c894d2904
2 changed files with 2 additions and 1 deletions

View File

@ -157,6 +157,7 @@ def import_materials_plan_excel(file_obj) -> Dict[str, int]:
"handler": _single_line(get(row, "经办人")) or None,
"remark": _single_line(get(row, "备注")) or None,
"factory": factory,
"status": "approved",
}
material, created_flag = Material.objects.update_or_create(

View File

@ -281,7 +281,7 @@ class Command(BaseCommand):
"construction_method": _single_line(get(row, "施工工艺")) or None,
"limit_condition": _cell(get(row, "限制条件")) or None,
"factory": factory,
"status": "draft",
"status": "approved",
}
if dry_run: