1
0
forked from erp-dev/erp

feat: product quick api and param create api

This commit is contained in:
2025-11-19 09:03:15 +08:00
parent 2efd11c019
commit 7f822b0064
20 changed files with 2284 additions and 42 deletions

View File

@@ -86,24 +86,7 @@ class PlateOrderAdmin(admin.ModelAdmin):
@admin.display(description='开发进程')
def development_status_display(self, obj):
status = obj.status
color_map = {
'未打印': 'gray',
'待画图': 'orange',
'画图完成': 'blue',
'调色样': 'purple',
'调色完成': 'green',
'套纸样': 'cyan',
'取消版': 'red',
'客户审批': 'yellow',
'开版完成': 'darkgreen',
'已下单': 'black',
}
color = color_map.get(status, 'black')
return format_html(
'<span style="color: {}; font-weight: bold;">{}</span>',
color, status
)
return obj.status
@admin.display(description='紧急程度')
def urgency_display(self, obj):