perf(shipping-notice): 优化发货任务性能,修复上传流程与终态问题
This commit is contained in:
1 parent
434c04ed2d
commit
bcdd8285ae
29 files changed
+1074
-128
No files matched your search
@@ -548,8 +548,14 @@ def workspace_shipping_task_detail(task_no: str):
|
||||
task = get_task_visible_to_user(task_no, user.id, is_admin=is_admin)
|
||||
if not task:
|
||||
raise NotFoundError('Not found')
|
||||
# [PERF] view=workbench 供订单生命周期工作台首屏裁剪:剔除复核编辑器重字段,
|
||||
# 响应体与序列化耗时显著下降;缺省/非法值一律回退 full,保持兼容。
|
||||
view = str(request.args.get('view', 'full') or 'full').strip().lower()
|
||||
if view not in ('full', 'workbench'):
|
||||
view = 'full'
|
||||
return _ok(serialize_task_detail(
|
||||
task, viewer_user_id=user.id, is_admin=is_admin, include_stage_context=True,
|
||||
view=view,
|
||||
))
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user