Merge branch 'dev' into order-delivery-reply

# Conflicts:
#	backend/app/services/schedule/job_options.py
#	frontend/src/locales/th/admin.json
#	frontend/src/locales/zh-TW/admin.json
This commit is contained in:
HTEWJ\26070045 committed 2026-09-30 08:45:11 +08:00
commit f0ac888d60
144 files changed
+10193 -2156

No files matched your search

@@ -79,12 +79,32 @@ def _hxops_users_options() -> list[dict[str, Any]]:
]
def _users_options() -> list[dict[str, Any]]:
"""启用中的用户列表(value=user.id),供排程通知人类参数选择。"""
from app.models import User
users = (
User.query.filter(User.status == "active")
.order_by(User.username.asc())
.all()
)
return [
{
"label": user.real_name or user.username,
"value": user.id,
"description": None if not user.wecom_userid else "wecom",
}
for user 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,
"users": _users_options,
}