fix:excel导入的数据状态直接为已审核
This commit is contained in:
parent
8e47c0ef8f
commit
9c894d2904
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue