chore(order-delivery-reply): 前端页面调整、细节修改、优化逻辑等

This commit is contained in:
HTEWJ\26070045 committed 2026-09-23 10:31:34 +08:00
1 parent 7fb36b301c
commit 36868f875c
36 files changed
+1577 -376

No files matched your search

@@ -64,11 +64,27 @@ def _shipping_receipt_sources_options() -> list[dict[str, Any]]:
} for source, _config in rows]
def _hxops_users_options() -> list[dict[str, Any]]:
"""全部启用用户(value=users.id);订单交期回复未回复提醒收件人等场景用。"""
from app.models import User
users = User.query.filter(User.status == "active").order_by(User.real_name.asc(), User.id.asc()).all()
return [
{
"label": f"{u.real_name or u.username}({u.employee_id or '-'})",
"value": u.id,
"description": u.department or None,
}
for u in users
]
# options_source 注册表:新增来源只需在此登记 provider,不动 API 层
_OPTIONS_PROVIDERS: dict[str, Callable[[], list[dict[str, Any]]]] = {
"agent_apps": _agent_apps_options,
"shipping_inventory_sources": _shipping_inventory_sources_options,
"shipping_receipt_sources": _shipping_receipt_sources_options,
"hxops_users": _hxops_users_options,
}