chore(order-delivery-reply): 前端页面调整、细节修改、优化逻辑等
This commit is contained in:
1 parent
7fb36b301c
commit
36868f875c
36 files changed
+1577
-376
No files matched your search
@@ -147,8 +147,9 @@ def save_line_batches(order_no: str, line_no: int):
|
||||
用途与触发时机:单行弹窗「回复交期/修改回复」提交;联合回复保存逐行复用同一服务入口。
|
||||
|
||||
参数与输出约束:body {"batches": [{planned_date, qty, remark?}]};交期必填 YYYY-MM-DD、
|
||||
数量 > 0、备注 ≤ 200、批次 1..20 条且交期不重复;超额(合计>未交)不拦截,
|
||||
由前端标「超」。已锁定行返回 409 LINE_LOCKED;erp_missing 行按 404。
|
||||
数量 > 0、备注 ≤ 200、批次 1..20 条且交期不重复;各批次合计必须等于订单数量,
|
||||
不等返回 422 BATCH_QTY_TOTAL_MISMATCH(2026-09-23 由「超额仅提醒」修订)。
|
||||
已锁定行返回 409 LINE_LOCKED;erp_missing 行按 404。
|
||||
"""
|
||||
user = _require_manage()
|
||||
payload = request.get_json(silent=True) or {}
|
||||
@@ -180,7 +181,8 @@ def batch_reply():
|
||||
用途与触发时机:勾选多行 →「+ 联合回复交期」→ 按行填批次 → 保存回复(R-REPLY-02)。
|
||||
|
||||
参数与输出约束:body {"items": [{order_no, line_no, batches: [{planned_date, qty, remark?}]}]},
|
||||
单次 ≤ 200 行;单行失败不回滚其它行,响应按行给 ok/error;
|
||||
单次 ≤ 200 行;每行各批次合计必须等于订单数量(不等该行失败,2026-09-23 修订);
|
||||
单行失败不回滚其它行,响应按行给 ok/error;
|
||||
全部行保存成功 success 才为 true 语义由 data.succeeded/failed 表达。
|
||||
"""
|
||||
user = _require_manage()
|
||||
|
||||
@@ -36,7 +36,7 @@ from app.services.integrations.wecom.notify import send_wecom_event_message
|
||||
# 企微事件开关名;与 settings.WECOM_NOTIFY_EVENTS 默认值条目一致(同 contract_payment_warning 命名风格)。
|
||||
WECOM_EVENT_TYPE = "order_delivery_reply_notify"
|
||||
# 工作台跳转路由(前端第 8 步落地,带上该行查询参数直开行)。
|
||||
WORKSPACE_JUMP_PATH = "/workspace/order-delivery-reply"
|
||||
JUMP_PATH = "/apps/order-delivery-reply" # 免布局嵌入路由:企微内打开不带工作台侧栏
|
||||
|
||||
|
||||
def _load_line(order_no: str, line_no: int) -> OrderDeliveryErpLine:
|
||||
@@ -94,7 +94,7 @@ def _send_line_notification(line: OrderDeliveryErpLine, recipient: User) -> dict
|
||||
user=recipient,
|
||||
title="订单交期回复",
|
||||
content=f"您有订单号:项次{line.order_no}:{line.line_no}的订单需要填写/确认/查看交期。",
|
||||
jump_path=WORKSPACE_JUMP_PATH,
|
||||
jump_path=JUMP_PATH,
|
||||
jump_params={"order_no": line.order_no, "line_no": line.line_no},
|
||||
)
|
||||
|
||||
|
||||
@@ -76,6 +76,21 @@ def _locked_subquery():
|
||||
)
|
||||
|
||||
|
||||
def _reply_person_subquery(like: str):
|
||||
"""该订单行的交期回复人员(姓名/工号,存于行状态快照)命中关键词的 EXISTS 子查询。"""
|
||||
return (
|
||||
select(OrderDeliveryLineState.line_id)
|
||||
.where(
|
||||
OrderDeliveryLineState.line_id == OrderDeliveryErpLine.id,
|
||||
or_(
|
||||
OrderDeliveryLineState.notified_user_name.ilike(like),
|
||||
OrderDeliveryLineState.notified_employee_id.ilike(like),
|
||||
),
|
||||
)
|
||||
.exists()
|
||||
)
|
||||
|
||||
|
||||
def _base_query() -> Select:
|
||||
"""列表基础查询:只取未标 erp_missing 的已同步行(默认列表不展示已不在同步范围的行)。"""
|
||||
return select(OrderDeliveryErpLine).where(OrderDeliveryErpLine.erp_missing.is_(False))
|
||||
@@ -86,7 +101,8 @@ def _apply_filters(stmt: Select, params: dict[str, Any]) -> Select:
|
||||
应用列表筛选(AND 语义)与状态筛选下推。
|
||||
|
||||
核心逻辑:keyword 关键词合并搜索——订单单号/客户订单/客户编号/客户简称/公司全名/
|
||||
产品编号/品名/客户产品编号命中任一字段即返回(OR,工作台单搜索框口径);
|
||||
产品编号/品名/客户产品编号/业务员(姓名、工号)/交期回复人员(姓名、工号,
|
||||
2026-09-23 增补,按行状态快照 EXISTS)命中任一字段即返回(OR,工作台单搜索框口径);
|
||||
order_date 精确单日;status=replied → 已锁定,
|
||||
status=not_fully_replied → 未锁定(未回复∪部分回复)。
|
||||
"""
|
||||
@@ -103,6 +119,9 @@ def _apply_filters(stmt: Select, params: dict[str, Any]) -> Select:
|
||||
OrderDeliveryErpLine.part_no.ilike(like),
|
||||
OrderDeliveryErpLine.part_name.ilike(like),
|
||||
OrderDeliveryErpLine.customer_part_no.ilike(like),
|
||||
OrderDeliveryErpLine.salesperson_name.ilike(like),
|
||||
OrderDeliveryErpLine.salesperson_code.ilike(like),
|
||||
_reply_person_subquery(like),
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -8,9 +8,11 @@ backend/app/services/order_delivery_reply/reminder_service.py
|
||||
逻辑:[出货提醒] 已锁定(已回复)行的批次 planned_date 落在 [今天, 今天+N] 时,按业务员聚合
|
||||
发一条企微;同一 (行, 交期) 只提醒一次(audit_events action=ship_remind 去重),发送失败
|
||||
不落成功记录,次日扫描自动补发。
|
||||
[未回复提醒] 未锁定行的快照首次入库(created_at)距今 ≥ N 天时再次提醒生管(收件人 =
|
||||
排程任务 notify_user_ids_json),同一行每 N 天最多提醒一次(action=unreplied_remind 去重),
|
||||
多行聚合成一条通知避免刷屏。提醒只读业务数据 + 写审计,绝不改动批次/锁定状态。
|
||||
[未回复提醒] 未锁定行的订单日期(order_date,取 ERP oea02)距今 ≥ N 天时再次提醒生管
|
||||
(收件人 = 任务参数 unreplied_remind_user_ids,留空回退任务通知人),同一行每 N 天最多
|
||||
提醒一次(action=unreplied_remind 去重),多行聚合成一条通知避免刷屏。
|
||||
提醒只读业务数据 + 写审计,绝不改动批次/锁定状态。
|
||||
(2026-09-23 修订:超期锚点由快照首次入库 created_at 改为订单日期,按业务确认以订单日期计超期。)
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -33,7 +35,7 @@ from app.services.integrations.wecom.notify import send_wecom_event_message
|
||||
|
||||
# 企微事件开关名:与行级通知共用同一事件(WECOM_NOTIFY_EVENTS 已包含,无需新增配置)。
|
||||
WECOM_EVENT_TYPE = "order_delivery_reply_notify"
|
||||
WORKSPACE_JUMP_PATH = "/workspace/order-delivery-reply"
|
||||
JUMP_PATH = "/apps/order-delivery-reply" # 免布局嵌入路由:企微内打开不带工作台侧栏
|
||||
|
||||
# 通知正文最多列出的订单条数;超出的折叠为「…等 N 笔」,避免超出企微卡片描述上限。
|
||||
MAX_LISTED_ORDERS = 8
|
||||
@@ -125,7 +127,7 @@ def _send_remind_card(user: User, content: str, jump_params: dict[str, Any] | No
|
||||
user=user,
|
||||
title="订单交期回复",
|
||||
content=content,
|
||||
jump_path=WORKSPACE_JUMP_PATH,
|
||||
jump_path=JUMP_PATH,
|
||||
jump_params=jump_params,
|
||||
)
|
||||
return {"ok": bool(result.get("ok")), "trace_id": result.get("trace_id"), "reason": result.get("reason")}
|
||||
@@ -222,7 +224,8 @@ def run_ship_reminders(advance_days: int) -> dict[str, Any]:
|
||||
content = (
|
||||
f"您有 {len(bucket['entries'])} 笔订单将在 {advance_days} 天内交货,请及时安排出货:\n{lines_text}"
|
||||
)
|
||||
result = _send_remind_card(user, content)
|
||||
# 卡片带 status=replied:业务员点开直达「已回复」视图(出货提醒行必然已回复锁定)。
|
||||
result = _send_remind_card(user, content, jump_params={"status": "replied"})
|
||||
if result["ok"]:
|
||||
notified_persons += 1
|
||||
notified_lines += len(bucket["line_ids"])
|
||||
@@ -258,10 +261,11 @@ def run_ship_reminders(advance_days: int) -> dict[str, Any]:
|
||||
|
||||
def run_unreplied_reminders(unreplied_days: int, notify_user_ids: list[int]) -> dict[str, Any]:
|
||||
"""
|
||||
未回复再提醒:超 N 天仍未回复的订单行,聚合提醒生管(收件人 = 排程任务通知人配置)。
|
||||
未回复再提醒:订单日期距今超 N 天仍未回复的订单行,聚合提醒生管(收件人 = 排程任务通知人配置)。
|
||||
|
||||
核心逻辑:[STEP 1] 候选 = 未锁定且未标 erp_missing、快照首次入库(created_at)距今
|
||||
≥ unreplied_days 的行;[STEP 2] 同行距上次提醒 ≥ unreplied_days 才再次提醒
|
||||
核心逻辑:[STEP 1] 候选 = 未锁定且未标 erp_missing、订单日期(order_date)距今
|
||||
≥ unreplied_days 的行(订单日期为空不参与提醒);
|
||||
[STEP 2] 同行距上次提醒 ≥ unreplied_days 才再次提醒
|
||||
(audit action=unreplied_remind 的 max(created_at) 控制,未提醒过则立即提醒);
|
||||
[STEP 3] 汇总为一
|
||||
条企微发给每个配置的生管收件人;无收件人时跳过并如实返回。
|
||||
@@ -269,7 +273,7 @@ def run_unreplied_reminders(unreplied_days: int, notify_user_ids: list[int]) ->
|
||||
{"unreplied_days", "due_lines", "notified_recipients", "failed_recipients", "skipped_no_recipient"}。
|
||||
"""
|
||||
today = _business_today()
|
||||
threshold_dt = datetime.utcnow() - timedelta(days=max(0, int(unreplied_days)))
|
||||
threshold_date = today - timedelta(days=max(0, int(unreplied_days)))
|
||||
|
||||
locked_subq = (
|
||||
select(OrderDeliveryLineState.line_id)
|
||||
@@ -283,9 +287,12 @@ def run_unreplied_reminders(unreplied_days: int, notify_user_ids: list[int]) ->
|
||||
.where(
|
||||
OrderDeliveryErpLine.erp_missing.is_(False),
|
||||
~locked_subq,
|
||||
OrderDeliveryErpLine.created_at <= threshold_dt,
|
||||
# 超期锚点 = ERP 订单日期(oea02,2026-09-23 由 created_at 改来,按业务确认口径):
|
||||
# 订单日期距今 ≥ N 天仍未锁定即入选;订单日期为空无法判定,不参与提醒。
|
||||
OrderDeliveryErpLine.order_date.is_not(None),
|
||||
OrderDeliveryErpLine.order_date <= threshold_date,
|
||||
)
|
||||
.order_by(OrderDeliveryErpLine.created_at.asc())
|
||||
.order_by(OrderDeliveryErpLine.order_date.asc())
|
||||
).all()
|
||||
)
|
||||
if not due_lines:
|
||||
|
||||
@@ -4,7 +4,8 @@ backend/app/services/order_delivery_reply/reply_service.py
|
||||
用途:订单交期回复的写路径——单行/联合保存交期批次(未锁定行整表替换)。
|
||||
依赖:models/order_delivery_reply(快照/批次/状态/审计)、extensions.db、core.errors。
|
||||
逻辑:保存与通知是两步(需求 §5):本服务只写批次与 save 审计,不通知、不锁定;
|
||||
已锁定行拒绝写入(409);批次校验(交期必填、数量>0、备注≤200)在此层完成。
|
||||
已锁定行拒绝写入(409);批次校验(交期必填、数量>0、备注≤200、各批次合计必须
|
||||
等于订单数量——2026-09-23 由「超额仅提醒」修订,BATCH_QTY_TOTAL_MISMATCH)在此层完成。
|
||||
后续通知/锁定在 notify_service 中与企微发送同事务实现,禁止在本文件锁定。
|
||||
"""
|
||||
|
||||
@@ -136,9 +137,10 @@ def save_batches(order_no: str, line_no: int, raw_batches: Any, operator_user_id
|
||||
AI/排程不触发本函数(无自动回复语义)。
|
||||
|
||||
核心逻辑:[STEP 1] 校验批次结构(_parse_batches);
|
||||
[STEP 2] get_line_for_write 确认行存在且未锁定;
|
||||
[STEP 2] get_line_for_write 确认行存在且未锁定;数量守恒校验:各批次合计必须
|
||||
等于订单数量(2026-09-23 由「超额仅提醒」修订),不等抛 422 BATCH_QTY_TOTAL_MISMATCH;
|
||||
[STEP 3] 事务内删除旧批次、按序号写入新批次;
|
||||
[STEP 4] 写 action=save 审计(含批次快照,超额不拦截只留痕,展示层标「超」)。
|
||||
[STEP 4] 写 action=save 审计(含批次快照)。
|
||||
保存后行仍为部分回复;通知与锁定走 notify 路径,本函数不触碰 line_states。
|
||||
|
||||
Args:
|
||||
@@ -151,6 +153,16 @@ def save_batches(order_no: str, line_no: int, raw_batches: Any, operator_user_id
|
||||
normalized = _parse_batches(raw_batches)
|
||||
line, _state = get_line_for_write(order_no, line_no)
|
||||
|
||||
# [STEP 2] 数量守恒:各批次合计必须等于订单数量(保存口径 2026-09-23 修订,原允许超额仅提醒);
|
||||
# 校验在任何写操作之前,失败时不落批次也不落审计。
|
||||
total_qty = sum((batch["qty"] for batch in normalized), Decimal(0))
|
||||
order_qty = line.qty if line.qty is not None else Decimal(0)
|
||||
if total_qty != order_qty:
|
||||
raise ValidationError(
|
||||
f"各批次数量合计({total_qty})必须等于订单数量({order_qty}),请调整后重新保存",
|
||||
code="ORDER_DELIVERY_REPLY.BATCH_QTY_TOTAL_MISMATCH",
|
||||
)
|
||||
|
||||
# [STEP 3] 整表替换:未锁定行的旧批次全部作废,以本次提交为准。
|
||||
db.session.query(OrderDeliveryBatch).filter(OrderDeliveryBatch.line_id == line.id).delete()
|
||||
for seq, batch in enumerate(normalized, start=1):
|
||||
@@ -165,7 +177,6 @@ def save_batches(order_no: str, line_no: int, raw_batches: Any, operator_user_id
|
||||
)
|
||||
)
|
||||
|
||||
total_qty = sum((batch["qty"] for batch in normalized), Decimal(0))
|
||||
db.session.add(
|
||||
OrderDeliveryAuditEvent(
|
||||
line_id=line.id,
|
||||
|
||||
@@ -53,6 +53,44 @@ ERP_LINE_COLUMNS = (
|
||||
|
||||
_FETCH_SIZE = 500
|
||||
|
||||
_thick_init_lock = threading.Lock()
|
||||
_thick_initialized = False
|
||||
|
||||
|
||||
def _ensure_thick_client(oracledb) -> None:
|
||||
"""按 ORACLE_CLIENT_LIB_DIR(或 backend/oracle_client 约定)初始化 thick 模式;幂等且失败不掩埋。"""
|
||||
global _thick_initialized
|
||||
with _thick_init_lock:
|
||||
if _thick_initialized or not getattr(oracledb, "is_thin_mode", lambda: True)():
|
||||
_thick_initialized = True
|
||||
return
|
||||
candidates = []
|
||||
env_dir = (os.getenv("ORACLE_CLIENT_LIB_DIR") or "").strip()
|
||||
if env_dir:
|
||||
candidates.append(os.path.normpath(env_dir))
|
||||
backend_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
candidates.append(os.path.join(backend_dir, "oracle_client"))
|
||||
marker = {"oci.dll", "libclntsh.so", "libclntsh.dylib"}
|
||||
lib_dir = None
|
||||
for root in candidates:
|
||||
if not root or not os.path.isdir(root):
|
||||
continue
|
||||
if marker & {n.lower() for n in os.listdir(root)}:
|
||||
lib_dir = root
|
||||
break
|
||||
sub = [d for d in os.listdir(root) if d.startswith("instantclient_") and os.path.isdir(os.path.join(root, d))]
|
||||
if sub:
|
||||
lib_dir = os.path.join(root, sub[0])
|
||||
break
|
||||
if lib_dir:
|
||||
os.environ["PATH"] = lib_dir + os.pathsep + os.environ.get("PATH", "")
|
||||
if hasattr(os, "add_dll_directory"):
|
||||
os.add_dll_directory(lib_dir)
|
||||
oracledb.init_oracle_client(lib_dir=lib_dir)
|
||||
else:
|
||||
oracledb.init_oracle_client()
|
||||
_thick_initialized = True
|
||||
|
||||
# 进程内互斥:同一 worker 同时只跑一个同步(多 worker 由 sync_runs running 行兜底,一期单机足够)。
|
||||
_sync_lock = threading.Lock()
|
||||
|
||||
@@ -82,8 +120,6 @@ class OrderDeliverySyncService:
|
||||
"""
|
||||
import oracledb
|
||||
|
||||
from app.services.text2sql import Text2SQLService
|
||||
|
||||
user = (
|
||||
os.getenv("ERP_DB_USER")
|
||||
or os.getenv("ERP_USERNAME")
|
||||
@@ -104,8 +140,10 @@ class OrderDeliverySyncService:
|
||||
try:
|
||||
return oracledb.connect(user=user, password=password, dsn=dsn)
|
||||
except oracledb.DatabaseError:
|
||||
# thin 模式连不上时按 Text2SQL 既有路径切 thick(本地 Instant Client)。
|
||||
Text2SQLService._init_oracle_client(oracledb)
|
||||
# thin 模式连不上(topprod 为 11g 必走 thick):用 ORACLE_CLIENT_LIB_DIR 自初始化,
|
||||
# 不再依赖 services/text2sql——worker 进程 sys.path 差异曾致
|
||||
# "No module named app.services.text2sql"(2026-09-22 排程同步失败根因)。
|
||||
_ensure_thick_client(oracledb)
|
||||
return oracledb.connect(user=user, password=password, dsn=dsn)
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -173,15 +173,31 @@ def _register_builtin_platform_jobs() -> None:
|
||||
|
||||
register_platform_job(PlatformJobDefinition(
|
||||
key="order-delivery-sync", label="订单交期回复 ERP 同步", handler=run_order_delivery_sync_schedule,
|
||||
description="每天 07:00 全量同步已审核、已核准、未结案的 ERP 销售订单行快照;同步成功后按任务通知配置提醒生管查看回复。",
|
||||
description=(
|
||||
"每天 07:00 全量同步已审核、已核准、未结案的 ERP 销售订单行快照;"
|
||||
"同步成功后按任务参数「同步完成提醒收件人」提醒生管查看回复(未配置时回退本任务通知人)。"
|
||||
),
|
||||
category="order_delivery_reply",
|
||||
params_schema=(
|
||||
{
|
||||
"key": "sync_remind_user_ids",
|
||||
"type": "multi_select",
|
||||
"label": "同步完成提醒收件人(生管)",
|
||||
"required": False,
|
||||
"default": [],
|
||||
"options_source": "hxops_users",
|
||||
"help": "同步完成提醒的生管收件人,可从全部启用用户中搜索选择;"
|
||||
"与本任务「通知人」(运行结果通知)互相独立;留空时回退通知人名单以兼容旧配置。",
|
||||
},
|
||||
),
|
||||
defaults={"sync_remind_user_ids": []},
|
||||
))
|
||||
register_platform_job(PlatformJobDefinition(
|
||||
key="order-delivery-remind", label="订单交期回复 提醒", handler=run_order_delivery_remind_schedule,
|
||||
description=(
|
||||
"每天扫描:已回复行按回复交期提前 N 天企微提醒对应业务员出货;"
|
||||
"超 N 天未回复的行再次企微提醒生管(收件人取本任务通知人配置)。"
|
||||
"两类提醒可通过任务参数独立启停。"
|
||||
"超 N 天未回复的行再次企微提醒生管(收件人取任务参数「未回复提醒收件人」,"
|
||||
"未配置时回退本任务通知人)。两类提醒可通过任务参数独立启停。"
|
||||
),
|
||||
category="order_delivery_reply",
|
||||
params_schema=(
|
||||
@@ -199,7 +215,7 @@ def _register_builtin_platform_jobs() -> None:
|
||||
"label": "出货提醒提前天数",
|
||||
"required": False,
|
||||
"default": DEFAULT_SHIP_ADVANCE_DAYS,
|
||||
"help": "已回复订单的回复交期距今 ≤ 该天数时,企微提醒对应业务员安排出货。",
|
||||
"help": "已回复订单的回复交期距今 ≤ 该天数时,企微提醒对应业务员安排出货。取值 0-3650。",
|
||||
},
|
||||
{
|
||||
"key": "unreplied_remind_enabled",
|
||||
@@ -215,7 +231,17 @@ def _register_builtin_platform_jobs() -> None:
|
||||
"label": "未回复再次提醒天数",
|
||||
"required": False,
|
||||
"default": DEFAULT_UNREPLIED_DAYS,
|
||||
"help": "订单行超过该天数仍未回复交期时再次提醒生管;同一行每达到该天数最多提醒一次。",
|
||||
"help": "订单日期距今超过该天数仍未回复交期时再次提醒生管;同一行每达到该天数最多提醒一次。取值 0-3650。",
|
||||
},
|
||||
{
|
||||
"key": "unreplied_remind_user_ids",
|
||||
"type": "multi_select",
|
||||
"label": "未回复提醒收件人(生管)",
|
||||
"required": False,
|
||||
"default": [],
|
||||
"options_source": "hxops_users",
|
||||
"help": "超期未回复提醒的生管收件人,可从全部启用用户中搜索选择;"
|
||||
"与本任务「通知人」(运行结果通知)互相独立;留空时回退通知人名单以兼容旧配置。",
|
||||
},
|
||||
),
|
||||
defaults={
|
||||
@@ -223,6 +249,7 @@ def _register_builtin_platform_jobs() -> None:
|
||||
"ship_remind_advance_days": DEFAULT_SHIP_ADVANCE_DAYS,
|
||||
"unreplied_remind_enabled": DEFAULT_UNREPLIED_REMIND_ENABLED,
|
||||
"unreplied_remind_days": DEFAULT_UNREPLIED_DAYS,
|
||||
"unreplied_remind_user_ids": [],
|
||||
},
|
||||
))
|
||||
register_platform_job(PlatformJobDefinition(
|
||||
|
||||
@@ -8,7 +8,10 @@ backend/app/services/schedule/order_delivery_remind_job.py
|
||||
逻辑:从 task.job_params 读取配置(管理端排程表单「任务参数」可改,均有默认值):
|
||||
ship_remind_enabled / unreplied_remind_enabled 布尔开关独立启停两类提醒;
|
||||
ship_remind_advance_days 默认 3、unreplied_remind_days 默认 3。
|
||||
未回复提醒收件人取任务 notify_user_ids_json(notify_enabled 开关控制)。
|
||||
未回复提醒收件人优先取 job_params 的 unreplied_remind_user_ids(管理端「未回复提醒收件人」
|
||||
多选参数,与平台运行结果通知的「通知人」互相独立);未配置时回退任务 notify_user_ids_json
|
||||
兼容旧配置。天数统一钳制在 0-3650,防止表单误填巨大值导致 today+timedelta 溢出
|
||||
(OverflowError: date value out of range,2026-09-22 出货提醒扫描事故根因)。
|
||||
两个扫描互相独立:单个扫描抛错回滚后继续另一个,最终把错误计入 errors
|
||||
(failed_count>0 时平台排程标 partial_failed/failed,不影响数据快照);
|
||||
开关关闭的一侧直接跳过(summary 记 skipped=disabled),不影响另一侧。
|
||||
@@ -29,18 +32,37 @@ SHIP_REMIND_ADVANCE_DAYS_KEY = "ship_remind_advance_days"
|
||||
UNREPLIED_REMIND_DAYS_KEY = "unreplied_remind_days"
|
||||
DEFAULT_SHIP_REMIND_ENABLED = True
|
||||
DEFAULT_UNREPLIED_REMIND_ENABLED = True
|
||||
DEFAULT_UNREPLIED_USER_IDS_KEY = "unreplied_remind_user_ids"
|
||||
DEFAULT_SHIP_ADVANCE_DAYS = 3
|
||||
DEFAULT_UNREPLIED_DAYS = 3
|
||||
# 天数上限(约 10 年):date + timedelta 超过 9999 年会抛 OverflowError: date value out of range。
|
||||
MAX_REMIND_DAYS = 3650
|
||||
|
||||
|
||||
def _read_days(task: ScheduleTask, key: str, default: int) -> int:
|
||||
"""读取 job_params 中的天数配置;非法值回退默认(参数类型已由契约层校验)。"""
|
||||
"""读取 job_params 中的天数配置;非法值回退默认,并钳制到 [0, MAX_REMIND_DAYS]。
|
||||
|
||||
上限原因:today + timedelta(days=N) 在 N 巨大时溢出抛
|
||||
OverflowError: date value out of range(2026-09-22 出货提醒扫描失败根因)。
|
||||
"""
|
||||
params = task.job_params if isinstance(task.job_params, dict) else {}
|
||||
try:
|
||||
value = int(params.get(key, default))
|
||||
except (TypeError, ValueError):
|
||||
return default
|
||||
return value if value >= 0 else default
|
||||
return min(max(value, 0), MAX_REMIND_DAYS)
|
||||
|
||||
|
||||
def _read_unreplied_recipients(task: ScheduleTask) -> list[int]:
|
||||
"""读取未回复提醒的生管收件人:优先任务参数多选名单,留空回退任务通知人(旧配置兼容)。"""
|
||||
params = task.job_params if isinstance(task.job_params, dict) else {}
|
||||
raw = params.get(DEFAULT_UNREPLIED_USER_IDS_KEY)
|
||||
ids = [int(uid) for uid in raw if uid] if isinstance(raw, list) else []
|
||||
if ids:
|
||||
return ids
|
||||
if task.notify_enabled:
|
||||
return [int(uid) for uid in (task.notify_user_ids_json or []) if uid]
|
||||
return []
|
||||
|
||||
|
||||
def _read_bool(task: ScheduleTask, key: str, default: bool) -> bool:
|
||||
@@ -95,11 +117,11 @@ def run_order_delivery_remind_schedule(task: ScheduleTask, run: ScheduleRun) ->
|
||||
else:
|
||||
ship_result = {"skipped": "disabled", "advance_days": advance_days}
|
||||
|
||||
notify_user_ids = [int(uid) for uid in (task.notify_user_ids_json or []) if uid] if task.notify_enabled else []
|
||||
unreplied_recipients = _read_unreplied_recipients(task)
|
||||
if unreplied_enabled:
|
||||
unreplied_result = _run_scan(errors, "未回复提醒", lambda: run_unreplied_reminders(unreplied_days, notify_user_ids))
|
||||
unreplied_result = _run_scan(errors, "未回复提醒", lambda: run_unreplied_reminders(unreplied_days, unreplied_recipients))
|
||||
if unreplied_result.get("skipped_no_recipient"):
|
||||
errors.append("存在超期未回复订单,但该排程未配置生管通知人(通知开关关闭或名单为空),未发送提醒")
|
||||
errors.append("存在超期未回复订单,但未配置「未回复提醒收件人」(且任务通知人未配置或开关关闭),未发送提醒")
|
||||
else:
|
||||
unreplied_result = {"skipped": "disabled", "unreplied_days": unreplied_days}
|
||||
|
||||
@@ -120,6 +142,7 @@ def run_order_delivery_remind_schedule(task: ScheduleTask, run: ScheduleRun) ->
|
||||
"unreplied_remind_enabled": unreplied_enabled,
|
||||
"advance_days": advance_days,
|
||||
"unreplied_days": unreplied_days,
|
||||
"unreplied_recipients": unreplied_recipients,
|
||||
}
|
||||
step_logs = [{"step": "order_delivery_remind", "status": "success" if failed == 0 else "partial", "detail": summary}]
|
||||
return (total, success, failed, skipped, [summary], errors, step_logs)
|
||||
@@ -5,8 +5,9 @@ backend/app/services/schedule/order_delivery_reply_job.py
|
||||
依赖:services/order_delivery_reply/sync_service(同步本体)、notify_service(企微事件类型与跳转路径)、
|
||||
wecom_notify.send_wecom_event_message、ScheduleTask/ScheduleRun。
|
||||
逻辑:排程 worker 每天 07:00(Asia/Shanghai)触发 handler,内部以 trigger='scheduled'
|
||||
复用与手动刷新完全相同的 run_sync;同步成功后按任务「通知开关 + 通知人」配置
|
||||
(notify_enabled / notify_user_ids_json,管理端排程表单现成字段)给生管发提醒,
|
||||
复用与手动刷新完全相同的 run_sync;同步成功后按任务参数 sync_remind_user_ids
|
||||
(管理端「同步完成提醒收件人」多选,与运行结果通知的「通知人」互相独立;
|
||||
留空回退 notify_user_ids_json 兼容旧配置)给生管发提醒,
|
||||
并把 domain_notification_managed 写入 run 摘要,抑制通用「排程执行结果」通知避免重复;
|
||||
通知失败不改变同步结果(同步已成功落库,仅记录失败原因)。
|
||||
同步失败向上抛出,由平台排程标记本次运行失败并保留上次快照(sync_runs 已各自留痕)。
|
||||
@@ -21,25 +22,38 @@ from app.models import ScheduleRun, ScheduleTask, User
|
||||
ScheduleExecuteResult = tuple[int, int, int, int, list[dict[str, Any]], list[str], list[dict[str, Any]]]
|
||||
|
||||
|
||||
SYNC_REMIND_USER_IDS_KEY = "sync_remind_user_ids"
|
||||
|
||||
|
||||
def _read_sync_remind_recipients(task: ScheduleTask) -> list[int]:
|
||||
"""同步完成提醒收件人:优先任务参数 sync_remind_user_ids,留空回退任务通知人(旧配置兼容)。"""
|
||||
params = task.job_params if isinstance(task.job_params, dict) else {}
|
||||
raw = params.get(SYNC_REMIND_USER_IDS_KEY)
|
||||
ids = [int(uid) for uid in raw if uid] if isinstance(raw, list) else []
|
||||
if ids:
|
||||
return ids
|
||||
if task.notify_enabled:
|
||||
return [int(uid) for uid in (task.notify_user_ids_json or []) if uid]
|
||||
return []
|
||||
|
||||
|
||||
def _notify_production_after_sync(task: ScheduleTask, line_count: int) -> list[dict[str, Any]]:
|
||||
"""
|
||||
同步成功后提醒生管查看订单交期回复(通知人 = 排程任务配置的 notify_user_ids_json)。
|
||||
同步成功后提醒生管查看订单交期回复(收件人 = 任务参数 sync_remind_user_ids,回退通知人)。
|
||||
|
||||
Args:
|
||||
task: 触发本次同步的排程任务(读取 notify_enabled 与通知人列表)。
|
||||
task: 触发本次同步的排程任务。
|
||||
line_count: 本次同步的订单行数量,用于通知文案。
|
||||
Returns:
|
||||
逐人发送结果列表 [{user_id, ok, reason?}];未配置通知人时返回空列表。
|
||||
逐人发送结果列表 [{user_id, ok, reason?}];未配置收件人时返回空列表。
|
||||
"""
|
||||
from app.services.order_delivery_reply.notify_service import (
|
||||
WECOM_EVENT_TYPE,
|
||||
WORKSPACE_JUMP_PATH,
|
||||
JUMP_PATH,
|
||||
)
|
||||
from app.services.integrations.wecom.notify import send_wecom_event_message
|
||||
|
||||
if not task.notify_enabled:
|
||||
return []
|
||||
user_ids = [int(uid) for uid in (task.notify_user_ids_json or []) if uid]
|
||||
user_ids = _read_sync_remind_recipients(task)
|
||||
if not user_ids:
|
||||
return []
|
||||
|
||||
@@ -51,7 +65,9 @@ def _notify_production_after_sync(task: ScheduleTask, line_count: int) -> list[d
|
||||
user=user,
|
||||
title="订单交期回复",
|
||||
content=f"今日订单交期数据已同步完成(共 {line_count} 行),请及时查看并回复交期。",
|
||||
jump_path=WORKSPACE_JUMP_PATH,
|
||||
jump_path=JUMP_PATH,
|
||||
# 卡片带 status=not_fully_replied:生管点开直达「未完全回复」视图(待回复行)。
|
||||
jump_params={"status": "not_fully_replied"},
|
||||
)
|
||||
entry: dict[str, Any] = {"user_id": user.id, "ok": bool(result.get("ok"))}
|
||||
if not entry["ok"]:
|
||||
@@ -77,8 +93,10 @@ def run_order_delivery_sync_schedule(task: ScheduleTask, run: ScheduleRun) -> Sc
|
||||
count = int(summary.get("line_count") or 0)
|
||||
|
||||
# [STEP 2] 域内已自行通知生管:写入标记,抑制通用「排程执行结果」企微通知避免双重打扰。
|
||||
run.response_summary_json = {"domain_notification_managed": True}
|
||||
db.session.commit()
|
||||
# 直调(run=None,脚本/测试)时跳过 run 摘要写入。
|
||||
if run is not None:
|
||||
run.response_summary_json = {"domain_notification_managed": True}
|
||||
db.session.commit()
|
||||
|
||||
notify_results = _notify_production_after_sync(task, count)
|
||||
failed_notify = [item for item in notify_results if not item["ok"]]
|
||||
|
||||
@@ -73,3 +73,31 @@ def test_keyword_and_date_status_filters_stack(app):
|
||||
assert result["total"] == 0
|
||||
# 断言:status=not_fully_replied(未锁定)两行都算;有批次的行仍是未锁定(部分回复)
|
||||
assert list_lines({"keyword": "齿轮", "status": "not_fully_replied"})["total"] == 2
|
||||
|
||||
|
||||
def test_keyword_matches_salesperson_and_reply_person(app):
|
||||
"""keyword 命中业务员(姓名/工号)与交期回复人员(姓名/工号)即返回(2026-09-23 增补)。"""
|
||||
from app.models.order_delivery_reply import OrderDeliveryLineState
|
||||
|
||||
salesperson_line = _line("8301-P1", 1, cust_no="C-A")
|
||||
salesperson_line.salesperson_name = "王瑞雪"
|
||||
salesperson_line.salesperson_code = "26070045"
|
||||
replied_line = _line("8301-P2", 2, cust_no="C-B")
|
||||
replied_line.salesperson_name = "张小奇"
|
||||
db.session.flush()
|
||||
# 交期回复人员快照存于行状态表(notified_user_name / notified_employee_id)
|
||||
db.session.add(OrderDeliveryLineState(
|
||||
line_id=replied_line.id, notified_user_name="李生", notified_employee_id="10002",
|
||||
))
|
||||
db.session.commit()
|
||||
|
||||
# 断言:业务员姓名命中 → 只返回 8301-P1
|
||||
assert [i["order_no"] for i in list_lines({"keyword": "王瑞雪"})["items"]] == ["8301-P1"]
|
||||
# 断言:业务员工号命中 → 只返回 8301-P1
|
||||
assert [i["order_no"] for i in list_lines({"keyword": "26070045"})["items"]] == ["8301-P1"]
|
||||
# 断言:交期回复人员姓名命中(状态表 EXISTS 子查询)→ 只返回 8301-P2
|
||||
assert [i["order_no"] for i in list_lines({"keyword": "李生"})["items"]] == ["8301-P2"]
|
||||
# 断言:交期回复人员工号命中 → 只返回 8301-P2
|
||||
assert [i["order_no"] for i in list_lines({"keyword": "10002"})["items"]] == ["8301-P2"]
|
||||
# 断言:未命中任何人员 → 空
|
||||
assert list_lines({"keyword": "不存在的名字"})["items"] == []
|
||||
@@ -30,21 +30,18 @@ from app.services.order_delivery_reply.reminder_service import (
|
||||
)
|
||||
|
||||
|
||||
def _make_line(order_no="8301-1605280014", line_no=1, salesperson="10001", created_days_ago=0):
|
||||
"""构造一行已同步快照(created_days_ago 控制未回复超期判定)。"""
|
||||
def _make_line(order_no="8301-1605280014", line_no=1, salesperson="10001", order_days_ago=0):
|
||||
"""构造一行已同步快照(order_days_ago 控制订单日期距今天数,即未回复超期判定的锚点)。"""
|
||||
line = OrderDeliveryErpLine(
|
||||
order_no=order_no,
|
||||
line_no=line_no,
|
||||
order_date=datetime.utcnow().date(),
|
||||
order_date=datetime.utcnow().date() - timedelta(days=order_days_ago),
|
||||
customer_no="C001",
|
||||
salesperson_code=salesperson,
|
||||
qty=Decimal("100"),
|
||||
delivered_qty=Decimal("0"),
|
||||
erp_missing=False,
|
||||
)
|
||||
if created_days_ago:
|
||||
line.created_at = datetime.utcnow() - timedelta(days=created_days_ago)
|
||||
line.updated_at = line.created_at
|
||||
db.session.add(line)
|
||||
db.session.flush()
|
||||
return line
|
||||
@@ -159,8 +156,8 @@ def test_ship_reminder_records_unmapped_salesperson(app, send_recorder):
|
||||
def test_unreplied_reminder_notifies_recipients_with_cadence(app, send_recorder):
|
||||
"""超期未回复行提醒配置的生管;N 天内第二次扫描不重复提醒。"""
|
||||
_make_user("10001", "wx_admin1") # 生管收件人
|
||||
_make_line(order_no="8301-E", line_no=1, created_days_ago=5) # 超 3 天未回复
|
||||
_make_line(order_no="8301-F", line_no=2, created_days_ago=1) # 未超期,不应入选
|
||||
_make_line(order_no="8301-E", line_no=1, order_days_ago=5) # 订单日期超 3 天未回复
|
||||
_make_line(order_no="8301-F", line_no=2, order_days_ago=1) # 未超期,不应入选
|
||||
db.session.commit()
|
||||
|
||||
result = run_unreplied_reminders(unreplied_days=3, notify_user_ids=[1])
|
||||
@@ -178,7 +175,7 @@ def test_unreplied_reminder_notifies_recipients_with_cadence(app, send_recorder)
|
||||
|
||||
def test_unreplied_reminder_skips_without_recipients(app, send_recorder):
|
||||
"""未配置生管收件人(开关关闭或名单为空):跳过发送并如实标记。"""
|
||||
_make_line(order_no="8301-G", line_no=1, created_days_ago=10)
|
||||
_make_line(order_no="8301-G", line_no=1, order_days_ago=10)
|
||||
db.session.commit()
|
||||
|
||||
result = run_unreplied_reminders(unreplied_days=3, notify_user_ids=[])
|
||||
@@ -191,7 +188,7 @@ def test_unreplied_reminder_skips_without_recipients(app, send_recorder):
|
||||
def test_unreplied_reminder_failed_send_does_not_advance_cadence(app, send_recorder):
|
||||
"""发送失败不推进提醒节奏:紧接着的再次扫描仍会尝试提醒(不做 N 天静默)。"""
|
||||
_make_user("10001", "wx_admin2")
|
||||
_make_line(order_no="8301-H", line_no=1, created_days_ago=5)
|
||||
_make_line(order_no="8301-H", line_no=1, order_days_ago=5)
|
||||
db.session.commit()
|
||||
|
||||
send_recorder["ok"] = False
|
||||
@@ -242,12 +239,13 @@ def test_remind_params_defaults_backfill_both_enabled(app):
|
||||
from app.services.schedule.job_params import validate_task_params
|
||||
|
||||
normalized = validate_task_params("order-delivery-remind", {}, check_options=False)
|
||||
# 断言:四个参数齐全,开关默认 True、天数默认 3
|
||||
# 断言:五个参数齐全,开关默认 True、天数默认 3;未回复提醒收件人默认空(回退任务通知人)
|
||||
assert normalized == {
|
||||
"ship_remind_enabled": True,
|
||||
"ship_remind_advance_days": 3,
|
||||
"unreplied_remind_enabled": True,
|
||||
"unreplied_remind_days": 3,
|
||||
"unreplied_remind_user_ids": [],
|
||||
}
|
||||
|
||||
|
||||
@@ -259,7 +257,7 @@ def test_disabled_ship_reminder_skips_only_ship(app, send_recorder):
|
||||
today = date.today()
|
||||
locked_line = _make_line(order_no="8301-S1", line_no=1)
|
||||
_lock_line(locked_line, today + timedelta(days=2)) # 出货提醒候选
|
||||
_make_line(order_no="8301-S2", line_no=2, created_days_ago=5) # 未回复候选
|
||||
_make_line(order_no="8301-S2", line_no=2, order_days_ago=5) # 未回复候选
|
||||
db.session.commit()
|
||||
|
||||
task = _make_remind_task(
|
||||
@@ -288,7 +286,7 @@ def test_disabled_unreplied_reminder_skips_only_unreplied(app, send_recorder):
|
||||
today = date.today()
|
||||
locked_line = _make_line(order_no="8301-U1", line_no=1)
|
||||
_lock_line(locked_line, today + timedelta(days=2)) # 出货提醒候选
|
||||
_make_line(order_no="8301-U2", line_no=2, created_days_ago=5) # 未回复候选(应被跳过不提醒)
|
||||
_make_line(order_no="8301-U2", line_no=2, order_days_ago=5) # 未回复候选(应被跳过不提醒)
|
||||
db.session.commit()
|
||||
|
||||
task = _make_remind_task(
|
||||
@@ -316,7 +314,7 @@ def test_both_disabled_no_scan_no_send(app, send_recorder):
|
||||
_make_user("10001", "wx_any")
|
||||
locked_line = _make_line(order_no="8301-X1", line_no=1)
|
||||
_lock_line(locked_line, date.today() + timedelta(days=2))
|
||||
_make_line(order_no="8301-X2", line_no=2, created_days_ago=5)
|
||||
_make_line(order_no="8301-X2", line_no=2, order_days_ago=5)
|
||||
db.session.commit()
|
||||
|
||||
task = _make_remind_task(
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
"""
|
||||
tests/test_order_delivery_reply_validation.py
|
||||
|
||||
用途:订单交期回复保存「数量守恒」校验的单测——每行各批次合计必须等于订单数量
|
||||
(2026-09-23 由「超额仅提醒」修订)。
|
||||
依赖:conftest 的 app 夹具(testing + sqlite create_all)、reply_service.save_batches/batch_reply。
|
||||
逻辑:合计 ≠ 订单数量 → ValidationError(BATCH_QTY_TOTAL_MISMATCH)且不落任何批次/审计;
|
||||
合计 = 订单数量 → 正常保存(多批次拆分亦同);联合回复中单行不等 → 该行按行失败,
|
||||
不影响其它行(部分成功语义)。
|
||||
"""
|
||||
|
||||
from datetime import date
|
||||
from decimal import Decimal
|
||||
|
||||
import pytest
|
||||
|
||||
from app.core.errors import ValidationError
|
||||
from app.extensions import db
|
||||
from app.models.order_delivery_reply import OrderDeliveryBatch, OrderDeliveryErpLine
|
||||
from app.services.order_delivery_reply.reply_service import batch_reply, save_batches
|
||||
|
||||
|
||||
def _line(order_no, line_no=1, qty="100"):
|
||||
"""构造一行最小快照(qty 即订单数量,未回复提醒/保存校验的对照基准)。"""
|
||||
row = OrderDeliveryErpLine(
|
||||
order_no=order_no,
|
||||
line_no=line_no,
|
||||
order_date=date(2024, 6, 1),
|
||||
customer_no="C001",
|
||||
qty=Decimal(qty),
|
||||
delivered_qty=Decimal("0"),
|
||||
erp_missing=False,
|
||||
)
|
||||
db.session.add(row)
|
||||
return row
|
||||
|
||||
|
||||
def test_save_batches_rejects_total_not_equal_order_qty(app):
|
||||
"""各批次合计 90 ≠ 订单数量 100 → 422 数量守恒错误,且不落任何批次。"""
|
||||
_line("8301-V1", qty="100")
|
||||
db.session.commit()
|
||||
|
||||
with pytest.raises(ValidationError) as exc:
|
||||
save_batches("8301-V1", 1, [{"planned_date": "2026-10-01", "qty": "90"}], operator_user_id=None)
|
||||
# 断言:错误码为数量守恒专用码,便于前端与 errors.json 四语言文案对应
|
||||
assert exc.value.code == "ORDER_DELIVERY_REPLY.BATCH_QTY_TOTAL_MISMATCH"
|
||||
# 断言:校验在任何写操作之前,失败不落批次
|
||||
assert OrderDeliveryBatch.query.count() == 0
|
||||
|
||||
|
||||
def test_save_batches_accepts_exact_total_with_multi_batches(app):
|
||||
"""60 + 40 = 订单数量 100 → 保存成功,多批次拆分合法。"""
|
||||
_line("8301-V2", qty="100")
|
||||
db.session.commit()
|
||||
|
||||
data = save_batches("8301-V2", 1, [
|
||||
{"planned_date": "2026-10-01", "qty": "60"},
|
||||
{"planned_date": "2026-11-01", "qty": "40"},
|
||||
], operator_user_id=None)
|
||||
# 断言:保存成功且 total_qty 与订单数量一致
|
||||
assert data["total_qty"] == "100"
|
||||
assert len(data["batches"]) == 2
|
||||
assert OrderDeliveryBatch.query.count() == 2
|
||||
|
||||
|
||||
def test_batch_reply_mismatch_line_fails_others_succeed(app):
|
||||
"""联合回复:单行合计不等按行失败,另一行正常保存(部分成功语义不回归)。"""
|
||||
_line("8301-V3", line_no=1, qty="100")
|
||||
_line("8301-V3", line_no=2, qty="200")
|
||||
db.session.commit()
|
||||
|
||||
summary = batch_reply([
|
||||
{"order_no": "8301-V3", "line_no": 1, "batches": [{"planned_date": "2026-10-01", "qty": "100"}]},
|
||||
{"order_no": "8301-V3", "line_no": 2, "batches": [{"planned_date": "2026-10-01", "qty": "150"}]},
|
||||
], operator_user_id=None)
|
||||
# 断言:行 2 合计 150 ≠ 200 失败;行 1 保存成功
|
||||
assert summary["succeeded"] == 1
|
||||
assert summary["failed"] == 1
|
||||
assert summary["items"][1]["ok"] is False
|
||||
# 断言:仅成功行落批次
|
||||
assert OrderDeliveryBatch.query.count() == 1
|
||||
@@ -173,7 +173,7 @@ flowchart TD
|
||||
|
||||
## 7. 查询与列表
|
||||
|
||||
筛选(AND):**关键词**(合并搜索:订单单号/客户订单/客户编号/客户简称/公司全名/产品编号/品名/客户产品编号命中任一即返回,2026-09-21 由三个独立搜索框合并)、订单日期(单日)、交期回复状态。
|
||||
筛选(AND):**关键词**(合并搜索:订单单号/客户订单/客户编号/客户简称/公司全名/产品编号/品名/客户产品编号/业务员(姓名、工号)/交期回复人员(姓名、工号)命中任一即返回;2026-09-21 由三个独立搜索框合并,2026-09-23 增补人员搜索)、订单日期(单日)、交期回复状态。
|
||||
|
||||
交期回复状态筛选项:
|
||||
|
||||
@@ -213,7 +213,7 @@ flowchart TD
|
||||
14. 规格
|
||||
15. 单位
|
||||
|
||||
(2026-09-17 增补同步条件 `NVL(oeb24,0)=0` 后,「已交数量 / 未交数量」两列信息量归零,已取消展示;数量与未交口径仍由后端派生供弹窗超额判断使用。)
|
||||
(2026-09-17 增补同步条件 `NVL(oeb24,0)=0` 后,「已交数量 / 未交数量」两列信息量归零,已取消展示;数量与未交口径仍由后端派生,供回复弹窗数量守恒校验使用。)
|
||||
|
||||
不增加单别列。一期无单别管理勾选。
|
||||
|
||||
@@ -225,20 +225,20 @@ flowchart TD
|
||||
|
||||
## 9. 显示规则
|
||||
|
||||
- 超额(批次合计 > 未交)显示「超」,不拦截保存。
|
||||
- (2026-09-23 修订)回复弹窗**数量守恒**:每行各批次填写合计必须**等于订单数量**才能保存——弹窗内实时红字提示已填合计、保存时拦截,后端 422(`BATCH_QTY_TOTAL_MISMATCH`)兜底;原「超额显示『超』,不拦截保存」废止。列表行「超」标记仅对历史超额数据展示。
|
||||
- 状态:未回复红、部分回复橙、已回复绿;保存或通知后即时刷新。
|
||||
|
||||
---
|
||||
|
||||
## 10. 单行回复
|
||||
|
||||
弹窗维护 1..N 批:交期必填有效日期,数量 > 0,备注 ≤ 200。可增删批次,可快速统一交期。锁定行不可编辑。
|
||||
弹窗维护 1..N 批:交期必填有效日期,数量 > 0,备注 ≤ 200;各批次数量合计必须等于订单数量,否则不能保存(2026-09-23 增补);已填批次的交期/数量缺填、同一订单单号:项次的不同批次交期重复,均实时提示并随填写内容切换(2026-09-23 增补;交期重复后端 BATCH_INVALID 既有校验)。可增删批次,可快速统一交期。锁定行不可编辑。行上徽标展示「订单数量:X 单位」(2026-09-23 由「未交 X」改来)。
|
||||
|
||||
---
|
||||
|
||||
## 11. 联合回复与批量通知
|
||||
|
||||
1. 勾选多行 →「+ 联合回复交期」→ 按行填批次 → **保存回复**(只写批次,不通知、不锁定)。
|
||||
1. 勾选多行 →「+ 联合回复交期」→ 按行填批次 → **保存回复**(只写批次,不通知、不锁定);每行各批次合计必须等于订单数量,不等的行按行保存失败(2026-09-23 增补)。
|
||||
2. 工具栏另设「批量通知」:对当前勾选中「已有批次且未锁定」的行逐行发送通知并锁定。
|
||||
3. 无批次或已锁定的勾选行跳过;全部失败则提示,部分成功则成功行锁定、失败行保持未锁定。
|
||||
4. 行内不再提供发送按钮,通知统一走工具栏「批量通知」,单行/锁定/失败规则相同。
|
||||
@@ -271,11 +271,11 @@ flowchart TD
|
||||
|
||||
| 提醒 | 触发 | 收件人 | 天数配置 |
|
||||
| --- | --- | --- | --- |
|
||||
| 同步完成提醒 | 每天 07:00 排程同步成功后 | 生管(排程任务「通知人」配置,开关控制) | — |
|
||||
| 同步完成提醒 | 每天 07:00 排程同步成功后 | 生管(任务参数「同步完成提醒收件人」,可从全部用户搜索选择;留空回退「通知人」) | — |
|
||||
| 出货提醒 | 已回复行的回复交期距今 ≤ N 天 | 对应订单业务员(按人聚合成一条) | 默认 3,排程任务参数可配 |
|
||||
| 未回复再提醒 | 订单行超 N 天未回复(同一行每 N 天最多提醒一次) | 生管(同上,按收件人聚合成一条) | 默认 3,排程任务参数可配 |
|
||||
| 未回复再提醒 | 订单日期距今超 N 天仍未回复(同一行每 N 天最多提醒一次;2026-09-23 明确以 ERP 订单日期计超期,非入库时间) | 生管(任务参数「未回复提醒收件人」,按收件人聚合成一条) | 默认 3,排程任务参数可配 |
|
||||
|
||||
实现:新排程 `order-delivery-remind`(日批 07:10,紧随同步)。天数在管理端排程表单「任务参数」修改(`ship_remind_advance_days` / `unreplied_remind_days`);两类提醒由任务参数 `ship_remind_enabled` / `unreplied_remind_enabled`(布尔,默认开)**独立启停**;生管收件人在排程表单「通知开关 + 通知人」配置——**复用现有排程管理能力,不新增配置页面**。出货提醒同一(行,交期)只发一次,发送失败次日自动补发;两类提醒逐行写审计(`ship_remind` / `unreplied_remind`),只读业务数据、不改批次/锁定。
|
||||
实现:新排程 `order-delivery-remind`(日批 07:10,紧随同步)。天数在管理端排程表单「任务参数」修改(`ship_remind_advance_days` / `unreplied_remind_days`);两类提醒由任务参数 `ship_remind_enabled` / `unreplied_remind_enabled`(布尔,默认开)**独立启停**;生管收件人在排程表单「任务参数 → 未回复提醒收件人(生管)」多选配置(候选=全部启用用户,支持按姓名/工号/部门搜索;留空回退「通知人」兼容旧配置)——与平台运行结果通知的「通知人」**互相独立**(2026-09-22 增补,两类通知人分离)。出货提醒同一(行,交期)只发一次,发送失败次日自动补发;两类提醒逐行写审计(`ship_remind` / `unreplied_remind`),只读业务数据、不改批次/锁定。
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -190,10 +190,12 @@ erDiagram
|
||||
- **每日提醒排程(2026-09-21):** `order-delivery-remind`(日批 07:10,种子 `SCH-ORDER-DELIVERY-REMIND`),实现见 `services/order_delivery_reply/reminder_service.py`:
|
||||
- **启停开关(2026-09-21 增补):** 任务参数 `ship_remind_enabled` / `unreplied_remind_enabled`(布尔,默认开)**独立启停**两类提醒;关闭的一侧跳过(summary 记 `skipped=disabled`),不影响另一侧。
|
||||
- **出货提醒:** 已锁定(已回复)行批次 `planned_date` 落在 [今天, 今天+N](N=`ship_remind_advance_days`,默认 3)→ 按业务员聚合一条企微提醒安排出货;同一 (行,交期) 以 `audit_events action=ship_remind payload.ok=true` 去重,发送失败不落成功记录、次日自动补发;业务员工号对不上企微的记失败审计并在运行 errors 提示。
|
||||
- **未回复再提醒:** 未锁定行快照首次入库(`erp_lines.created_at`)距今 ≥ N(N=`unreplied_remind_days`,默认 3)→ 按收件人聚合一条企微提醒生管;收件人取本任务 `notify_enabled` + `notify_user_ids_json`;同一行距上次成功提醒 ≥ N 天才再次提醒(节奏锚点同为审计,`ok=true` 才计入)。
|
||||
- **未回复再提醒:** 未锁定行订单日期(快照 `order_date`,取 ERP `oea02`;2026-09-23 由快照首次入库 `created_at` 改来)距今 ≥ N(N=`unreplied_remind_days`,默认 3)→ 按收件人聚合一条企微提醒生管(订单日期为空不参与);收件人取任务参数 `unreplied_remind_user_ids`(留空回退本任务 `notify_enabled` + `notify_user_ids_json`);同一行距上次成功提醒 ≥ N 天才再次提醒(节奏锚点同为审计,`ok=true` 才计入)。
|
||||
- 两个扫描互相独立:单侧异常回滚后继续另一侧,错误计入运行 errors;提醒只读业务数据 + 写审计,绝不改批次/锁定。
|
||||
- **配置复用:** 开关与天数在管理端排程表单「任务参数」修改(boolean/number 字段);生管收件人在排程表单「通知开关 + 通知人」配置——不新增配置页面。
|
||||
- 同时只跑一个同步。Oracle 按 `oea01` 分页。失败保留快照并记 `sync_runs`。
|
||||
- - **收件人分离(2026-09-22):** 未回复提醒的生管收件人改用任务参数 `unreplied_remind_user_ids`(multi_select,候选 `hxops_users`=全部启用用户,表单内支持按姓名/工号/部门关键词搜索),与平台运行结果通知的「通知人」(`notify_user_ids_json`)互相独立;参数留空回退通知人兼容旧配置。
|
||||
- **天数钳制(2026-09-22):** 提醒天数统一钳制 0-3650——表单误填巨大值时 `today + timedelta(N)` 溢出抛 `OverflowError: date value out of range`,导致 2026-09-22 出货提醒扫描失败(未回复提醒不受影响)。
|
||||
|
||||
---
|
||||
|
||||
@@ -206,14 +208,14 @@ erDiagram
|
||||
| GET | `/lines` | 筛选分页。查询条件见下;只返回未 `erp_missing` 的已同步行 |
|
||||
| POST | `/admin/permissions/grant-by-department` | 可选:按部门给成员批量写入功能权限(一次性发放,之后仍按用户勾选判定) |
|
||||
| GET | `/lines/:orderNo/:lineNo` | 单行 + 批次 + 状态 |
|
||||
| PUT | `/lines/:orderNo/:lineNo/batches` | 保存该行批次;锁定 409 |
|
||||
| PUT | `/lines/:orderNo/:lineNo/batches` | 保存该行批次;各批次合计必须等于订单数量(422 `BATCH_QTY_TOTAL_MISMATCH`),锁定 409 |
|
||||
| POST | `/lines/:orderNo/:lineNo/notify` | 单行通知;成功则锁定(前端不出行内按钮,接口保留:批量通知逐行复用同一服务入口,也可外部调用) |
|
||||
| POST | `/batch-reply` | 联合回复,**只保存批次** |
|
||||
| POST | `/notify-batch` | 批量通知勾选行;无批次或已锁定跳过 |
|
||||
| POST | `/sync` | 手动同步 |
|
||||
| GET | `/sync/latest` | 最近一次同步 |
|
||||
|
||||
GET `/lines` 查询:`keyword`(合并搜索:订单单号/客户订单/客户编号/客户简称/公司全名/产品编号/品名/客户产品编号 OR 命中)、`order_date`、`status`(空=`全部` / `已回复` / `未完全回复`)、`page`、`page_size`。默认排序 `order_date, customer_no, order_no, line_no, part_no` 升序。`page_size` 默认 50。全选仅本页。
|
||||
GET `/lines` 查询:`keyword`(合并搜索:订单单号/客户订单/客户编号/客户简称/公司全名/产品编号/品名/客户产品编号/业务员(姓名、工号)/交期回复人员(姓名、工号,行状态快照 EXISTS,2026-09-23 增补)OR 命中)、`order_date`、`status`(空=`全部` / `已回复` / `未完全回复`)、`page`、`page_size`。默认排序 `order_date, customer_no, order_no, line_no, part_no` 升序。`page_size` 默认 50。全选仅本页。
|
||||
|
||||
直链打开 `erp_missing` 的行:按不存在处理,不在工作台展示。
|
||||
|
||||
@@ -263,14 +265,19 @@ GET `/lines` 查询:`keyword`(合并搜索:订单单号/客户订单/客
|
||||
|
||||
`frontend/src/features/order-delivery-reply/`:`constants.ts`(权限键)、`api/orderDeliveryReply.api.ts`(统一 `requestJson`)、`views/OrderDeliveryReplyPage.vue`(操作页)。交互以更新后的原型 v5 为准。工具栏:「联合回复交期」与「批量通知」分开;**通知唯一入口为「批量通知」**,列表不出「通知业务部门」列(行内不设发送按钮;已通知对象与时间并入「交期回复人员」列)。状态徽标按需求 §12,不用旧原型按数量覆盖的脚本。
|
||||
|
||||
列表(2026-09-21 修订列顺序,独立「部门」「品名」列取消)按序为:勾选、客户编号(副文案客户简称,全名 title)、订单日期、订单单号:项次、产品编号(副文案品名)、客户产品编号、数量、约定交货日、交期回复状态、交期回复、交期回复人员、业务员(副文案部门)、客户订单、规格、单位。表格浏览体验(2026-09-21):页面高度收敛至视口(滚动全部发生在表格容器内 → 列头 sticky 固定、横向滚动条常驻表格底缘);左侧冻结前四列标识区(勾选/客户编号/订单日期/订单单号:项次,冻结单元格实色背景防透出,宽度已收窄至 2/8/6/10rem);行高紧凑(表体 py-1.5,产品编号/品名/规格/客户订单/客户简称长文本单行截断 + title 悬停看全文,交期回复批次条不折行);筛选区与工具栏字号与表格统一(text-sm 14px,状态徽标例外保持 text-xs 12px 加粗)并压缩高度。列项与顺序不变。不渲染订单类型、单别、已转请购、排定交货日,亦不出「已交数量 / 未交数量」列(`NVL(oeb24,0)=0` 过滤后无信息量;未交口径仍由后端计算,供回复弹窗超额提醒);表头与工具栏提示不换行(`whitespace-nowrap`,避免窄列中文竖排)。分页复用共享 `PaginationBar`(与管理控制台-数据报表同一组件:摘要 + 每页条数 20/50/100/200 + 页码按钮)。客户列:编号 + 简称,全名作 title;产品编号列:编号 + 品名;业务员列:姓名 + 部门,同款上下两行合并展示。仅 `access` 时隐藏回复、通知、同步按钮与手动刷新。用户管理勾选两键功能权限。一期无单别管理页。
|
||||
列表(2026-09-21 修订列顺序,独立「部门」「品名」列取消)按序为:勾选、客户编号(副文案客户简称,全名 title)、订单日期、订单单号:项次、产品编号(副文案品名)、客户产品编号、数量、约定交货日、交期回复状态、交期回复、交期回复人员、业务员(副文案部门)、客户订单、规格、单位。表格浏览体验(2026-09-21):页面高度收敛至视口(滚动全部发生在表格容器内 → 列头 sticky 固定、横向滚动条常驻表格底缘);左侧冻结前四列标识区(勾选/客户编号/订单日期/订单单号:项次,冻结单元格实色背景防透出,宽度已收窄至 2/8/6/10rem);行高紧凑(表体 py-1.5,产品编号/品名/规格/客户订单/客户简称长文本单行截断 + title 悬停看全文,交期回复批次条不折行);筛选区与工具栏字号与表格统一(text-sm 14px,状态徽标例外保持 text-xs 12px 加粗)并压缩高度。列项与顺序不变。不渲染订单类型、单别、已转请购、排定交货日,亦不出「已交数量 / 未交数量」列(`NVL(oeb24,0)=0` 过滤后无信息量;未交口径仍由后端计算,供回复弹窗数量守恒校验——各批次合计必须等于订单数量,2026-09-23 由「超额仅提醒」修订);表头与工具栏提示不换行(`whitespace-nowrap`,避免窄列中文竖排)。分页复用共享 `PaginationBar`(与管理控制台-数据报表同一组件:摘要 + 每页条数 20/50/100/200 + 页码按钮)。客户列:编号 + 简称,全名作 title;产品编号列:编号 + 品名;业务员列:姓名 + 部门,同款上下两行合并展示。仅 `access` 时隐藏回复、通知、同步按钮与手动刷新。用户管理勾选两键功能权限。一期无单别管理页。
|
||||
|
||||
### 8.1 路由与入口
|
||||
|
||||
- **路由**:`workspace-order-delivery-reply`(`workspace.routes.ts`),`meta.requiresFeaturePermission = order_delivery_reply.access`,由既有 `guards.ts` 守卫;路径常量 `WORKSPACE_PATHS.orderDeliveryReply`。
|
||||
- **工作台侧栏**:**不设菜单项**(需求 Q-03 修订:不在「货代发货通知」分组下挂入口,导航一律走应用入口)。
|
||||
- **应用入口(R-ENTRY-02)**:注册到应用管理——`app_seed.py` 幂等创建 `Agent(agent_code='order_delivery_reply', runtime_provider='iframe', iframe_url='/apps/order-delivery-reply')`(**不接 Dify**,`dify_app_id/api_key` 为空);admin 自动可见全部启用应用,普通用户经用户管理 Agent 权限授权后可见;点击进入 `/chat/{id}` 由聊天壳按 iframe provider 整页渲染免布局嵌入路由 `app-order-delivery-reply`(`routes/index.ts` 顶层注册,同页组件 + 同功能权限守卫)。管理员可在应用管理改名称/描述/图标/排序,但不应把 runtime_provider 改回 dify。页面与 API 仍受 access/manage 功能权限守卫(两层各司其职:Agent 权限管入口可见性,功能权限管页面/接口)。
|
||||
- **企微直达**:卡片 `jump_path=/workspace/order-delivery-reply` 带 `order_no/line_no` 查询参数,操作页 `onMounted` 自动填入订单单号筛选。
|
||||
- **企微直达**:四类卡片 `jump_path` 均为 `/apps/order-delivery-reply`(免布局嵌入路由,企微内打开不带工作台侧栏;2026-09-22 由 /workspace 路由改来),带查询参数定位「该 Agent 对应的内容及位置」,点击后未登录先走 `/login?redirect=深链`、登录成功原样回跳:
|
||||
- 行级通知卡:`order_no` + `line_no` → 页面自动填关键词筛选、按行滚动定位并高亮 8 秒(提示 toast);
|
||||
- 未回复提醒卡:`status=not_fully_replied` → 还原「未完全回复」筛选;
|
||||
- 出货提醒卡:`status=replied` → 还原「已回复」筛选;
|
||||
- 同步完成提醒卡:`status=not_fully_replied` → 还原「未完全回复」筛选(生管待回复行)。
|
||||
所有卡片另带 `wecom_trace`,操作页加载后调 `/api/user/wecom/deeplink-opened` 上报打开回执(与工作台 deeplink 同一接口,失败静默)。
|
||||
|
||||
### 8.2 提示与刷新(需求 §9 即时刷新)
|
||||
|
||||
|
||||
+6
-6
@@ -4,13 +4,13 @@
|
||||
|
||||
| 功能项 | 状态 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| ERP 订单行同步 | 已实现 | 每天 07:00(Asia/Shanghai)排程 + 生管手动全量同步;开发环境无独立 schedule-worker 进程时由 Web 进程内兜底扫描线程触发到期排程(`SCHEDULE_WEB_SCANNER_ENABLED`,生产默认关);只拉已审核(`oeaconf='Y'`)+ 已核准(`oea49='1'`)+ 未结案(`oeb70≠Y`)+ 完全未交(`NVL(oeb24,0)=0`,已有交货的行不同步)的订单行到本地快照(`order_delivery_erp_lines`),upsert 仅更新 ERP 列白名单不覆盖回复;本轮未命中行标 `erp_missing` 不删除;失败保留上次快照并展示最近同步时间。 |
|
||||
| ERP 订单行同步 | 已实现 | 每天 07:00(Asia/Shanghai)排程 + 生管手动全量同步,同步成功后按任务参数「同步完成提醒收件人」提醒生管(与「通知人」互相独立,留空回退通知人);开发环境无独立 schedule-worker 进程时由 Web 进程内兜底扫描线程触发到期排程(`SCHEDULE_WEB_SCANNER_ENABLED`,生产默认关);只拉已审核(`oeaconf='Y'`)+ 已核准(`oea49='1'`)+ 未结案(`oeb70≠Y`)+ 完全未交(`NVL(oeb24,0)=0`,已有交货的行不同步)的订单行到本地快照(`order_delivery_erp_lines`),upsert 仅更新 ERP 列白名单不覆盖回复;本轮未命中行标 `erp_missing` 不删除;失败保留上次快照并展示最近同步时间。 |
|
||||
| 同步完成提醒生管 | 已实现 | 07:00 排程同步成功后,按该排程任务的「通知开关 + 通知人」(管理端排程表单现成配置,人员可配置)给生管发企微提醒查看当天交期回复(复用 `send_wecom_event_message`,事件 `order_delivery_reply_notify`);通知失败不影响同步结果;已置 `domain_notification_managed` 抑制通用排程完成通知避免双重打扰。 |
|
||||
| 订单行查询台 | 已实现 | 工作台操作页筛选分页:**关键词合并搜索**(订单单号/客户订单/客户编号/客户简称/公司全名/产品编号/品名/客户产品编号命中任一,2026-09-21 由三框合并)+ 订单日期 + 状态(全部·已回复·未完全回复),默认排序订单日期→客户→单号→项次,分页默认 50;列顺序:客户编号(副文案简称) → 订单日期 → 订单单号:项次 → 产品编号(副文案品名) → 客户产品编号 → 数量 → 约定交货日 → 交期回复状态 → 交期回复 → 交期回复人员 → 业务员(副文案部门) → 客户订单 → 规格 → 单位(独立的部门列/品名列已取消,与业务员/产品编号合并展示);表格浏览体验:页面高度收敛至视口(列头固定、横向滚动条常驻)、左侧冻结前四列标识区(勾选/客户编号/订单日期/订单单号:项次,已收窄)、行高紧凑(长文本截断悬停看全文、批次条不折行)、筛选区与工具栏字号与表格统一并压缩高度(全页 text-sm 14px,状态徽标例外 text-xs 12px 加粗);列表不出已交/未交两列(完全未交过滤后无信息量);行状态读时推导未回复/部分回复/已回复;列表不出单别、订单类型、已转请购、排定交货日。 |
|
||||
| 每日提醒(出货 + 未回复) | 已实现 | 新排程 `order-delivery-remind`(日批 07:10,种子 `SCH-ORDER-DELIVERY-REMIND`):① 已回复(已锁定)行的回复交期距今 ≤「出货提醒提前天数」(默认 3,任务参数可配)时按业务员聚合发一条企微提醒安排出货,同一(行,交期)只提醒一次、发送失败次日自动补发;② 超过「未回复再次提醒天数」(默认 3,任务参数可配)仍未回复的行按收件人聚合一并企微提醒生管(收件人=该排程任务通知人配置,开关控制),同一行每 N 天最多提醒一次;两类提醒由任务参数 `ship_remind_enabled` / `unreplied_remind_enabled`(布尔,默认开)独立启停;提醒逐行写审计 `ship_remind` / `unreplied_remind`,只读业务数据不改批次/锁定。 |
|
||||
| 单行 / 拆分回复 | 已实现 | 弹窗维护 1..20 批「交期 + 数量 + 备注」,交期必填、数量>0、备注≤200、交期不重复,支持快速统一交期;未锁定行整表替换批次;超额仅标「超」提醒不拦截;已锁定行 409。 |
|
||||
| 联合回复与批量通知 | 已实现 | 勾选多行(全选仅本页)「联合回复交期」逐行保存批次(单次≤200 行,单行失败不回滚其它行);通知唯一入口为工具栏「批量通知」(列表不出通知列,已通知对象与时间并入「交期回复人员」列),对已有批次且未锁定的行逐行发送并锁定,无批次/已锁定跳过并汇总提示。 |
|
||||
| 企微通知与行级锁定 | 已实现 | 复用平台 `send_wecom_event_message`(textcard 壳 + 既有回执审计,不自绘卡片);收件人按订单业务员 `oea14`→`User.employee_id`→企微 userid,对不上该行失败不锁定;发送成功与 locked 同事务(禁止已通知未锁定);正文「您有订单号:项次{单号}:{项次}的订单需要填写/确认/查看交期。」;卡片跳转操作页并按单号预填筛选。 |
|
||||
| 订单行查询台 | 已实现 | 工作台操作页筛选分页:**关键词合并搜索**(订单单号/客户订单/客户编号/客户简称/公司全名/产品编号/品名/客户产品编号/业务员/交期回复人员命中任一,2026-09-21 由三框合并、2026-09-23 增补人员搜索)+ 订单日期 + 状态(全部·已回复·未完全回复),默认排序订单日期→客户→单号→项次,分页默认 50;列顺序:客户编号(副文案简称) → 订单日期 → 订单单号:项次 → 产品编号(副文案品名) → 客户产品编号 → 数量 → 约定交货日 → 交期回复状态 → 交期回复 → 交期回复人员 → 业务员(副文案部门) → 客户订单 → 规格 → 单位(独立的部门列/品名列已取消,与业务员/产品编号合并展示);表格浏览体验:页面高度收敛至视口(列头固定、横向滚动条常驻)、左侧冻结前四列标识区(勾选/客户编号/订单日期/订单单号:项次,已收窄)、行高紧凑(长文本截断悬停看全文、批次条不折行)、筛选区与工具栏字号与表格统一并压缩高度(全页 text-sm 14px,状态徽标例外 text-xs 12px 加粗);列表不出已交/未交两列(完全未交过滤后无信息量);行状态读时推导未回复/部分回复/已回复;列表不出单别、订单类型、已转请购、排定交货日。 |
|
||||
| 每日提醒(出货 + 未回复) | 已实现 | 新排程 `order-delivery-remind`(日批 07:10,种子 `SCH-ORDER-DELIVERY-REMIND`):① 已回复(已锁定)行的回复交期距今 ≤「出货提醒提前天数」(默认 3,任务参数可配)时按业务员聚合发一条企微提醒安排出货,同一(行,交期)只提醒一次、发送失败次日自动补发;② 超过「未回复再次提醒天数」(默认 3,任务参数可配)仍未回复的行按收件人聚合一并企微提醒生管(收件人=任务参数「未回复提醒收件人」多选,候选全部启用用户可搜索,与运行结果通知的「通知人」互相独立,留空回退通知人),同一行每 N 天最多提醒一次;两类提醒由任务参数 `ship_remind_enabled` / `unreplied_remind_enabled`(布尔,默认开)独立启停;提醒逐行写审计 `ship_remind` / `unreplied_remind`,只读业务数据不改批次/锁定;提醒天数钳制 0-3650(防日期溢出崩溃,2026-09-22 修复)。 |
|
||||
| 单行 / 拆分回复 | 已实现 | 弹窗维护 1..20 批「交期 + 数量 + 备注」,交期必填、数量>0、备注≤200、交期不重复,支持快速统一交期;行徽标展示「订单数量:X 单位」;**数量守恒**:各批次合计必须等于订单数量才能保存;缺交期/缺数量、同单批次交期重复均按批次序号实时提示并随填写切换(2026-09-23 由「超额仅提醒」修订,后端 422 `BATCH_QTY_TOTAL_MISMATCH` / `BATCH_INVALID` 兜底);未锁定行整表替换批次;已锁定行 409。 |
|
||||
| 联合回复与批量通知 | 已实现 | 勾选多行(全选仅本页)「联合回复交期」逐行保存批次(单次≤200 行,单行失败不回滚其它行;每行各批次合计须等于订单数量,不等行按行失败);通知唯一入口为工具栏「批量通知」(列表不出通知列,已通知对象与时间并入「交期回复人员」列),对已有批次且未锁定的行逐行发送并锁定,无批次/已锁定跳过并汇总提示。 |
|
||||
| 企微通知与行级锁定 | 已实现 | 复用平台 `send_wecom_event_message`(textcard 壳 + 既有回执审计,不自绘卡片);收件人按订单业务员 `oea14`→`User.employee_id`→企微 userid,对不上该行失败不锁定;发送成功与 locked 同事务(禁止已通知未锁定);正文「您有订单号:项次{单号}:{项次}的订单需要填写/确认/查看交期。」;四类卡片按类型带参直达操作页(行通知带单号+项次定位高亮、提醒卡带状态筛选),未登录先登录后原样回跳。 |
|
||||
| 功能权限与审计 | 已实现 | 用户功能权限 `order_delivery_reply.manage`(生管可写)/ `access`(业务只读),admin 默认开,用户管理表单勾选(四语言),可选按部门一次性批量发放;保存/通知/锁定/同步/出货提醒/未回复提醒六类审计(`order_delivery_audit_events`)。单别白名单管理为后期(`slip_code` 已落库预留)。 |
|
||||
| 入口(独立应用) | 已实现 | 应用管理注册内置 iframe 应用(`agent_code=order_delivery_reply`,不接 Dify):出现在应用管理/全部应用/聊天侧栏,点击在聊天壳内整页打开操作页(免布局嵌入路由);入口可见性走 Agent 权限(admin 自动可见),页面与 API 仍受 `access`/`manage` 功能权限守卫;工作台侧栏货代分组不设菜单项。 |
|
||||
|
||||
|
||||
@@ -133,6 +133,20 @@ const loadOptions = async (source: string): Promise<void> => {
|
||||
}
|
||||
};
|
||||
|
||||
/** multi_select 选项本地搜索词(按字段 key 隔离)。 */
|
||||
const multiSearch = reactive<Record<string, string>>({});
|
||||
|
||||
/** multi_select 选项按关键词过滤(匹配 label/描述,大小写不敏感)。 */
|
||||
const filteredMultiOptions = (field: PlatformTaskParamField) => {
|
||||
const keyword = (multiSearch[field.key] || '').trim().toLowerCase();
|
||||
const all = optionsCache[field.options_source || ''] || [];
|
||||
if (!keyword) return all;
|
||||
return all.filter((o) =>
|
||||
String(o.label || '').toLowerCase().includes(keyword) ||
|
||||
String(o.description || '').toLowerCase().includes(keyword),
|
||||
);
|
||||
};
|
||||
|
||||
/** multi_select 勾选切换。 */
|
||||
const toggleMultiValue = (key: string, value: string | number): void => {
|
||||
const current: Array<string | number> = Array.isArray(params.value[key]) ? [...params.value[key]] : [];
|
||||
@@ -323,6 +337,12 @@ watch(
|
||||
v-else-if="field.type === 'multi_select'"
|
||||
class="max-h-52 space-y-1 overflow-y-auto rounded-xl border border-default bg-surface p-2"
|
||||
>
|
||||
<input
|
||||
v-model="multiSearch[field.key]"
|
||||
type="text"
|
||||
class="mb-1 w-full rounded-lg border border-default px-2 py-1.5 text-sm outline-none focus:border-blue-500"
|
||||
:placeholder="$t('admin.schedule.form.dynamicParamsSearchPlaceholder')"
|
||||
/>
|
||||
<p v-if="optionsLoading[field.options_source || '']" class="px-2 py-1 text-xs text-muted">
|
||||
{{ $t('admin.schedule.form.dynamicParamsOptionsLoading') }}
|
||||
</p>
|
||||
@@ -332,8 +352,14 @@ watch(
|
||||
>
|
||||
{{ $t('admin.schedule.form.dynamicParamsNoOptions') }}
|
||||
</p>
|
||||
<p
|
||||
v-else-if="!filteredMultiOptions(field).length"
|
||||
class="px-2 py-1 text-xs text-muted"
|
||||
>
|
||||
{{ $t('admin.schedule.form.dynamicParamsSearchNoMatch') }}
|
||||
</p>
|
||||
<label
|
||||
v-for="option in optionsCache[field.options_source || ''] || []"
|
||||
v-for="option in filteredMultiOptions(field)"
|
||||
:key="String(option.value)"
|
||||
class="flex cursor-pointer items-start gap-2 rounded-lg px-2 py-1.5 text-sm transition hover:bg-surface-soft"
|
||||
>
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
* 依赖:api/orderDeliveryReply.api(统一 requestJson)、useMessage、auth store(manage/access 权限)。
|
||||
* 逻辑:所有数据只读本地快照;保存与通知是两步(联合回复只保存,批量通知才发送并锁定);
|
||||
* 保存/通知成功后即时刷新列表(需求 §9);仅 access 用户隐藏全部写操作。
|
||||
* 回复弹窗数量守恒(2026-09-23 由「超额仅提醒」修订):每行各批次合计必须等于订单数量
|
||||
* 才能保存,弹窗实时红字提示 + 保存拦截,后端 422 兜底。
|
||||
* 企微卡片直达:登录回跳后 query 仍在,按 status/order_no/line_no 还原筛选并滚动高亮目标行,
|
||||
* wecom_trace 上报打开回执——保证「点卡片 → 登录 → 直达该 Agent 对应内容与位置」。
|
||||
* 列顺序:客户编号(简称副文案) → 订单日期 → 订单单号:项次 → 产品编号(品名副文案) →
|
||||
* 客户产品编号 → 数量 → 约定交货日 → 交期回复状态 → 交期回复 → 交期回复人员 →
|
||||
* 业务员(部门副文案) → 客户订单 → 规格 → 单位;独立的部门列/品名列已并入合并展示。
|
||||
@@ -13,11 +17,12 @@
|
||||
*/
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, onMounted, reactive, ref } from 'vue';
|
||||
import { computed, nextTick, onMounted, reactive, ref } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useAuthStore } from '@/features/auth/stores/auth.store';
|
||||
import { useMessage } from '@/shared/composables/useMessage';
|
||||
import { requestJson } from '@/shared/api/client';
|
||||
import PaginationBar from '@/shared/components/PaginationBar.vue';
|
||||
import {
|
||||
ORDER_DELIVERY_REPLY_MANAGE_PERMISSION,
|
||||
@@ -75,6 +80,7 @@ async function loadLatestSync() {
|
||||
}
|
||||
|
||||
function doSearch() {
|
||||
clearHighlight();
|
||||
Object.assign(appliedFilters, filters);
|
||||
page.value = 1;
|
||||
void loadLines();
|
||||
@@ -208,16 +214,47 @@ function applyQuickDate() {
|
||||
modalLines.value.forEach((entry) => entry.batches.forEach((batch) => { batch.planned_date = quickDate.value; }));
|
||||
}
|
||||
|
||||
/** 拆分合计超出未交数量时仅提醒不拦截(需求 §9)。 */
|
||||
const overQtyEntries = computed(() =>
|
||||
modalLines.value
|
||||
.filter((entry) => entry.batches.some((batch) => batch.planned_date && Number(batch.qty) > 0))
|
||||
.map((entry) => ({
|
||||
entry,
|
||||
total: entry.batches.reduce((sum, batch) => sum + (batch.planned_date && Number(batch.qty) > 0 ? Number(batch.qty) : 0), 0),
|
||||
}))
|
||||
.filter(({ entry, total }) => total > undelivered(entry.line)),
|
||||
);
|
||||
/**
|
||||
* 行填写问题文案(实时校验,2026-09-23):
|
||||
* [规则 1] 已填数量但未填交期的批次 → 「第 N 批未填交期」;
|
||||
* [规则 2] 已填交期但未填数量的批次 → 「第 N 批未填数量」;
|
||||
* [规则 3] 同一订单行不同批次交期重复 → 「同一订单单号:项次的不同批次交期时间不能相同」;
|
||||
* [规则 4] 批次填写完整时合计 ≠ 订单数量 → 「各批次合计 X,须等于订单数量 Y」。
|
||||
* 只有交期与数量都齐全的批次计入合计;完全空白的批次忽略;缺填/重复错误优先于数量错误展示,
|
||||
* 保证报错随填写内容实时切换。锁定行不可编辑不校验。
|
||||
*/
|
||||
function lineIssueText(entry: EditableLine): string {
|
||||
if (entry.line.locked) return '';
|
||||
const missingDates: number[] = [];
|
||||
const missingQtys: number[] = [];
|
||||
let total = 0;
|
||||
let hasInput = false;
|
||||
entry.batches.forEach((batch, idx) => {
|
||||
const hasDate = !!batch.planned_date;
|
||||
const hasQty = batch.qty !== '' && Number(batch.qty) > 0;
|
||||
if (!hasDate && !hasQty) return; // 空白批次忽略
|
||||
hasInput = true;
|
||||
if (hasDate && hasQty) {
|
||||
total += Number(batch.qty);
|
||||
} else if (!hasDate) {
|
||||
missingDates.push(idx + 1);
|
||||
} else {
|
||||
missingQtys.push(idx + 1);
|
||||
}
|
||||
});
|
||||
if (!hasInput) return '';
|
||||
const parts: string[] = [];
|
||||
if (missingDates.length) parts.push(t('workspace.orderDeliveryReply.batchMissingDate', { batches: missingDates.join('、') }));
|
||||
if (missingQtys.length) parts.push(t('workspace.orderDeliveryReply.batchMissingQty', { batches: missingQtys.join('、') }));
|
||||
// 同单不同批次交期重复(后端 _parse_batches 亦拒绝重复交期,此处实时提示)
|
||||
const filledDates = entry.batches.filter((batch) => batch.planned_date).map((batch) => batch.planned_date);
|
||||
const duplicatedDates = [...new Set(filledDates.filter((d, i) => filledDates.indexOf(d) !== i))];
|
||||
if (duplicatedDates.length) parts.push(t('workspace.orderDeliveryReply.batchDuplicateDate', { dates: duplicatedDates.join('、') }));
|
||||
if (!parts.length && Math.abs(total - Number(entry.line.qty || 0)) > 1e-6) {
|
||||
parts.push(t('workspace.orderDeliveryReply.qtyTotalMismatchLine', { total, qty: Number(entry.line.qty || 0) }));
|
||||
}
|
||||
return parts.join(';');
|
||||
}
|
||||
|
||||
async function saveReplies() {
|
||||
const validItems: { order_no: string; line_no: number; batches: { planned_date: string; qty: string; remark: string | null }[] }[] = [];
|
||||
@@ -229,6 +266,17 @@ async function saveReplies() {
|
||||
if (!cleaned.length) continue;
|
||||
validItems.push({ order_no: line.order_no, line_no: line.line_no, batches: cleaned });
|
||||
}
|
||||
// 填写校验(2026-09-23,与实时提示同口径):缺交期/缺数量、合计≠订单数量都按行拦截。
|
||||
const issueTexts: string[] = [];
|
||||
for (const entry of modalLines.value) {
|
||||
if (entry.line.locked) continue;
|
||||
const text = lineIssueText(entry);
|
||||
if (text) issueTexts.push(`${entry.line.order_no}:${entry.line.line_no} ${text}`);
|
||||
}
|
||||
if (issueTexts.length) {
|
||||
msg.warning(t('workspace.orderDeliveryReply.saveBlocked', { detail: issueTexts.join(';') }));
|
||||
return;
|
||||
}
|
||||
if (!validItems.length) {
|
||||
msg.warning(t('workspace.orderDeliveryReply.noValidBatches'));
|
||||
return;
|
||||
@@ -305,15 +353,75 @@ const latestSyncText = computed(() => {
|
||||
});
|
||||
const latestSyncFailed = computed(() => latestSync.value?.status === 'failed');
|
||||
|
||||
onMounted(() => {
|
||||
// 企微卡片 jump_path 带 order_no/line_no 直达:自动填入关键词筛选并命中该行(关键词命中订单单号)。
|
||||
const query = useRoute().query;
|
||||
if (typeof query.order_no === 'string' && query.order_no) {
|
||||
filters.keyword = query.order_no;
|
||||
Object.assign(appliedFilters, filters);
|
||||
/* ============ 企微卡片直达定位 ============ */
|
||||
// 企微卡片「查看详情」→(未登录先登录,守卫以 redirect 原样回跳)→ 本页按 query 还原内容与位置:
|
||||
// status=交期回复状态筛选(提醒卡)、order_no=关键词筛选、line_no=滚动定位并高亮该行(行通知卡);
|
||||
// wecom_trace 上报卡片打开回执(与工作台 deeplink 同一后端接口,失败静默只留痕)。
|
||||
const route = useRoute();
|
||||
const highlightKey = ref('');
|
||||
let highlightTimer: ReturnType<typeof setTimeout> | null = null;
|
||||
|
||||
function clearHighlight() {
|
||||
if (highlightTimer) {
|
||||
clearTimeout(highlightTimer);
|
||||
highlightTimer = null;
|
||||
}
|
||||
void loadLines();
|
||||
highlightKey.value = '';
|
||||
}
|
||||
|
||||
const isLineHighlighted = (line: OrderDeliveryLine) => highlightKey.value === lineKey(line);
|
||||
const rowCls = (line: OrderDeliveryLine) =>
|
||||
isLineHighlighted(line) ? 'bg-amber-50' : selected.value.includes(lineKey(line)) ? 'bg-blue-50/60' : '';
|
||||
/** 冻结单元格必须实色背景(防透出滚动内容),且与整行高亮/勾选色联动;高亮优先于勾选。 */
|
||||
const frozenCellCls = (line: OrderDeliveryLine) =>
|
||||
isLineHighlighted(line)
|
||||
? 'bg-amber-100 group-hover:bg-amber-200'
|
||||
: selected.value.includes(lineKey(line))
|
||||
? 'bg-blue-100 group-hover:bg-blue-200'
|
||||
: 'bg-white group-hover:bg-slate-100';
|
||||
|
||||
/** 列表就绪后定位目标行:滚动到视口中央 + 高亮 8 秒;行不在当前筛选结果中时静默跳过。 */
|
||||
async function focusTargetLine(orderNo: string, lineNo: number) {
|
||||
const key = `${orderNo}:${lineNo}`;
|
||||
if (!items.value.some((line) => lineKey(line) === key)) return;
|
||||
highlightKey.value = key;
|
||||
await nextTick();
|
||||
document.querySelector(`[data-line-key="${key}"]`)?.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||
msg.success(t('workspace.orderDeliveryReply.deepLinkLocated', { order: orderNo, item: lineNo }));
|
||||
if (highlightTimer) clearTimeout(highlightTimer);
|
||||
highlightTimer = setTimeout(clearHighlight, 8000);
|
||||
}
|
||||
|
||||
/** 上报企微卡片打开回执(WecomNotifyAudit.opened_at);仅留痕,失败不影响页面使用。 */
|
||||
async function reportWecomTraceOpened(traceId: string) {
|
||||
try {
|
||||
await requestJson('/api/user/wecom/deeplink-opened', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ trace_id: traceId }),
|
||||
});
|
||||
} catch {
|
||||
// 回执只留痕:失败不打扰用户。
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
const query = route.query;
|
||||
const orderNo = typeof query.order_no === 'string' ? query.order_no.trim() : '';
|
||||
const lineNo = typeof query.line_no === 'string' ? Number(query.line_no) : NaN;
|
||||
const status = typeof query.status === 'string' ? query.status : '';
|
||||
const traceId = typeof query.wecom_trace === 'string' ? query.wecom_trace : '';
|
||||
|
||||
// [STEP 1] 还原筛选(登录回跳后 query 仍在):关键词命中订单单号;状态筛选定位提醒卡对应视图。
|
||||
if (orderNo) filters.keyword = orderNo;
|
||||
if (status === 'replied' || status === 'not_fully_replied') filters.status = status;
|
||||
if (orderNo || status) Object.assign(appliedFilters, filters);
|
||||
|
||||
if (traceId) void reportWecomTraceOpened(traceId);
|
||||
|
||||
// [STEP 2] 加载列表后按 line_no 滚动定位 + 高亮(行级通知卡直达场景)。
|
||||
await loadLines();
|
||||
void loadLatestSync();
|
||||
if (orderNo && Number.isInteger(lineNo) && lineNo > 0) await focusTargetLine(orderNo, lineNo);
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -407,19 +515,20 @@ onMounted(() => {
|
||||
<tr
|
||||
v-for="line in items"
|
||||
:key="lineKey(line)"
|
||||
:data-line-key="lineKey(line)"
|
||||
class="group border-t border-default hover:bg-slate-50"
|
||||
:class="selected.includes(lineKey(line)) ? 'bg-blue-50/60' : ''"
|
||||
:class="rowCls(line)"
|
||||
>
|
||||
<!-- 冻结单元格必须实色背景(半透明会透出滚动内容),并用 group-hover 与整行悬停/选中联动 -->
|
||||
<!-- 冻结单元格必须实色背景(半透明会透出滚动内容),并用 group-hover 与整行悬停/选中/直达高亮联动 -->
|
||||
<td
|
||||
class="sticky left-0 z-20 px-2 py-1.5"
|
||||
:class="selected.includes(lineKey(line)) ? 'bg-blue-100 group-hover:bg-blue-200' : 'bg-white group-hover:bg-slate-100'"
|
||||
:class="frozenCellCls(line)"
|
||||
>
|
||||
<input type="checkbox" class="h-4 w-4 rounded border-default text-blue-600" :checked="selected.includes(lineKey(line))" @change="toggleLine(line, ($event.target as HTMLInputElement).checked)" />
|
||||
</td>
|
||||
<td
|
||||
class="sticky left-8 z-20 w-32 min-w-[8rem] max-w-[8rem] px-2 py-1.5"
|
||||
:class="selected.includes(lineKey(line)) ? 'bg-blue-100 group-hover:bg-blue-200' : 'bg-white group-hover:bg-slate-100'"
|
||||
:class="frozenCellCls(line)"
|
||||
:title="line.customer_full_name || line.customer_short_name || ''"
|
||||
>
|
||||
<div>{{ line.customer_no || '—' }}</div>
|
||||
@@ -427,11 +536,11 @@ onMounted(() => {
|
||||
</td>
|
||||
<td
|
||||
class="sticky left-[10rem] z-20 w-24 min-w-[6rem] max-w-[6rem] overflow-hidden px-2 py-1.5"
|
||||
:class="selected.includes(lineKey(line)) ? 'bg-blue-100 group-hover:bg-blue-200' : 'bg-white group-hover:bg-slate-100'"
|
||||
:class="frozenCellCls(line)"
|
||||
>{{ line.order_date || '—' }}</td>
|
||||
<td
|
||||
class="sticky left-[16rem] z-20 w-40 min-w-[10rem] max-w-[10rem] overflow-hidden whitespace-nowrap border-r border-default px-2 py-1.5 font-mono shadow-[2px_0_6px_-2px_rgba(15,23,42,0.12)]"
|
||||
:class="selected.includes(lineKey(line)) ? 'bg-blue-100 group-hover:bg-blue-200' : 'bg-white group-hover:bg-slate-100'"
|
||||
:class="frozenCellCls(line)"
|
||||
>{{ line.order_no }}:{{ line.line_no }}</td>
|
||||
<td class="px-2 py-1.5" :title="line.part_name || ''">
|
||||
<div class="max-w-[10rem] truncate font-mono">{{ line.part_no || '—' }}</div>
|
||||
@@ -551,8 +660,8 @@ onMounted(() => {
|
||||
<span>{{ t('workspace.orderDeliveryReply.itemLabel', { item: entry.line.line_no }) }}</span>
|
||||
<span class="text-muted">{{ entry.line.customer_no }} · {{ entry.line.customer_short_name }}</span>
|
||||
<span class="text-muted">{{ entry.line.part_no }} · {{ entry.line.part_name }}</span>
|
||||
<span class="ml-auto">
|
||||
{{ t('workspace.orderDeliveryReply.undeliveredLabel', { remain: undelivered(entry.line), unit: entry.line.unit || '' }) }}
|
||||
<span class="ml-auto whitespace-nowrap">
|
||||
{{ t('workspace.orderDeliveryReply.orderQtyLabel', { qty: entry.line.qty ?? 0, unit: entry.line.unit || '' }) }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="flex flex-col gap-2 px-3 py-3">
|
||||
@@ -565,11 +674,10 @@ onMounted(() => {
|
||||
<button type="button" class="w-full rounded-lg border border-dashed border-slate-300 py-2 text-blue-600" @click="entry.batches.push({ planned_date: '', qty: '', remark: '' })">
|
||||
{{ t('workspace.orderDeliveryReply.addBatch') }}
|
||||
</button>
|
||||
<!-- 行级实时校验提示:缺交期/缺数量按批次序号指出,合计不等给出已填/应填;随填写实时切换 -->
|
||||
<p v-if="lineIssueText(entry)" class="text-rose-500">{{ lineIssueText(entry) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<p v-if="overQtyEntries.length" class="text-orange-500">
|
||||
{{ t('workspace.orderDeliveryReply.overWarning', { detail: overQtyEntries.map(({ entry, total }) => `${entry.line.order_no}:${entry.line.line_no} ${total} > ${undelivered(entry.line)}`).join(';') }) }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex justify-end gap-3 border-t border-default bg-slate-50 px-5 py-3">
|
||||
<button type="button" class="btn-ghost" @click="modalVisible = false">{{ t('common.cancel') }}</button>
|
||||
|
||||
@@ -47,7 +47,8 @@
|
||||
"linkedServices": "Linked Services",
|
||||
"procurementContract": "Procurement Contract Review",
|
||||
"trainingConfig": "Training Config",
|
||||
"integrationConnector": "Integration Connector"
|
||||
"integrationConnector": "Integration Connector",
|
||||
"contractPayment": "Contract Payment Alerts"
|
||||
},
|
||||
"shippingOrderExtractionRuns": {
|
||||
"eyebrow": "READ-ONLY RUN DIAGNOSTICS",
|
||||
@@ -1120,7 +1121,12 @@
|
||||
"status": "Status",
|
||||
"enable": "Enable",
|
||||
"disable": "Disable",
|
||||
"save": "Save"
|
||||
"save": "Save",
|
||||
"guideUsage": "Material Usage",
|
||||
"generalGuide": "General Guide",
|
||||
"trainingVideo": "Employee Training Video",
|
||||
"trainingExamPdf": "Employee Training Exam PDF",
|
||||
"guideUsageHint": "The training workspace prioritizes \"Employee Training Video\" and \"Employee Training Exam PDF\" materials."
|
||||
},
|
||||
"dash": {
|
||||
"activeAgents": "Active Agents",
|
||||
@@ -2564,7 +2570,9 @@
|
||||
"voucherCheckNotifyMissing": "Notify on missing materials",
|
||||
"voucherCheckNotifyMissingHint": "Master switch. Set missing-file recipients in Chat “Accounting voucher check → Notification config” by file type. The schedule people picker is only for failure alerts.",
|
||||
"voucherCheckNotifyFailure": "Failure alert",
|
||||
"voucherCheckNotifyFailureHint": "Technical failures go to the people selected below."
|
||||
"voucherCheckNotifyFailureHint": "Technical failures go to the people selected below.",
|
||||
"dynamicParamsSearchPlaceholder": "Search options (name / ID / dept)…",
|
||||
"dynamicParamsSearchNoMatch": "No matching options"
|
||||
},
|
||||
"testRun": {
|
||||
"title": "Test run — {name}",
|
||||
@@ -2647,7 +2655,8 @@
|
||||
"notConfiguredUseDefault": "(Not configured; using Dify workflow default prompt)",
|
||||
"notEnabledTest": "Dify was not enabled for this test",
|
||||
"notEnabledRun": "Dify Agent was not enabled for this run"
|
||||
}
|
||||
},
|
||||
"excelExportFailedHint": "Inventory source succeeded, but schedule Excel generation failed"
|
||||
},
|
||||
"shippingIdentityRules": {
|
||||
"eyebrow": "Shipping customer governance",
|
||||
@@ -4291,7 +4300,8 @@
|
||||
"rejected": "Rejected",
|
||||
"needs_review": "Needs review"
|
||||
},
|
||||
"confirmRequiresNativePreview": "Load the native PDF preview before confirming a visual binding"
|
||||
"confirmRequiresNativePreview": "Load the native PDF preview before confirming a visual binding",
|
||||
"createBlockersTitle": "Pre-creation Blockers"
|
||||
},
|
||||
"xfaAutoMark": {
|
||||
"title": "Auto-mark suggestions",
|
||||
@@ -5149,7 +5159,18 @@
|
||||
"review": "Needs review"
|
||||
},
|
||||
"sessionHint": "Chat and history are hidden in this phase. Use the tabs above to open the ledger.",
|
||||
"moreActions": "More"
|
||||
"moreActions": "More",
|
||||
"reparse": "Reparse contract original",
|
||||
"reparseSuccess": "Reparsed with attachment \"{attachment}\"",
|
||||
"reparseFailed": "Failed to reparse contract",
|
||||
"reviewTitle": "Contracts Pending Confirmation",
|
||||
"reviewSubtitle": "Contracts without matching title groups, failed payment-ratio validation, or key field conflicts will not enter payment alerts; download the original for review.",
|
||||
"reviewSearchPlaceholder": "Contract no., purchase order no., or supplier",
|
||||
"reviewLoadFailed": "Failed to load pending-confirmation contracts",
|
||||
"reviewContractWorkflow": "Contract No. / Workflow No.",
|
||||
"reviewReason": "Pending-confirmation reason",
|
||||
"reviewFallbackIssue": "Parse result requires manual confirmation",
|
||||
"reviewEmpty": "No contracts pending confirmation"
|
||||
},
|
||||
"contractPaymentReview": {
|
||||
"title": "Contracts for Confirmation",
|
||||
@@ -5502,7 +5523,17 @@
|
||||
"trainingAgentRequired": "The Employee Training agent was not found, so a video resource cannot be created",
|
||||
"videoUploaded": "Training video uploaded and added to configuration resources",
|
||||
"videoUploadFailed": "Failed to upload training video"
|
||||
}
|
||||
},
|
||||
"eyebrow": "Training Operations Center",
|
||||
"pageHint": "Configuration changes take effect after saving",
|
||||
"footerHint": "All configuration items can be adjusted after saving",
|
||||
"stats": {
|
||||
"total": "Total Configs",
|
||||
"published": "Published",
|
||||
"resources": "Current Materials",
|
||||
"levels": "Configured Levels"
|
||||
},
|
||||
"questionBankTitle": "Onboarding Question Bank"
|
||||
},
|
||||
"integrationConnector": {
|
||||
"title": "Integration Connector",
|
||||
|
||||
@@ -1187,7 +1187,11 @@
|
||||
"departmentLabel": "Department",
|
||||
"allStatuses": "All statuses",
|
||||
"allDepartments": "All departments",
|
||||
"noLimit": "No limit"
|
||||
"noLimit": "No limit",
|
||||
"typeLabel": "Training Type",
|
||||
"allTypes": "All Training",
|
||||
"typeOnboarding": "Onboarding Training",
|
||||
"typeSafety": "Safety Training"
|
||||
},
|
||||
"columns": {
|
||||
"joinDate": "Join date",
|
||||
@@ -1542,6 +1546,75 @@
|
||||
"Which employees have not finished training?",
|
||||
"I want this month training score statistics"
|
||||
]
|
||||
},
|
||||
"safety": {
|
||||
"tabs": {
|
||||
"onboarding": "入职培训",
|
||||
"safety": "安全培训"
|
||||
},
|
||||
"progressTitle": "三级安全教育培训进度",
|
||||
"progressHint": "按国家安全生产法要求,新员工须依次完成公司级、部门级、班组级三级安全教育。学完三级的全部资料/视频后,进入1次统一考试,≥90分及格方可结业。",
|
||||
"steps": {
|
||||
"company": "01 · 公司级",
|
||||
"department": "02 · 部门级",
|
||||
"team": "03 · 班组级",
|
||||
"exam": "04 · 统一考试"
|
||||
},
|
||||
"stepStatus": {
|
||||
"watchVideo": "观看视频",
|
||||
"examReq": "≥90 分及格",
|
||||
"completed": "已完成",
|
||||
"inProgress": "进行中",
|
||||
"pending": "待学习",
|
||||
"examPending": "需先学完三级"
|
||||
},
|
||||
"videoPanelTitle": "{level} 第{step}步",
|
||||
"videoPanelSubtitle": "观看安全教育培训视频",
|
||||
"videoPanelPassLine": "及格线:≥ 90分方可进入考试",
|
||||
"videoTitle": "部门安全生产管理制度宣导",
|
||||
"videoDuration": "时长 35 分钟 · 已完成 12%",
|
||||
"materialsTitle": "培训资料清单 (共 3 个文件/视频)",
|
||||
"materials": {
|
||||
"m1": "部门安全生产管理制度宣导.mp4",
|
||||
"m2": "危险化学品安全操作规程.pdf",
|
||||
"m3": "消防应急疏散演练视频.mp4"
|
||||
},
|
||||
"flowTitle": "学习与考试流程",
|
||||
"flowSteps": {
|
||||
"company": "公司级安全教育",
|
||||
"department": "部门级安全教育",
|
||||
"team": "班组级安全教育",
|
||||
"exam": "统一考试 ≥90分"
|
||||
},
|
||||
"summaryTitle": "培训总结",
|
||||
"summaryContent": {
|
||||
"company": [
|
||||
"1公司教育:国家有关安全生产方针、政策、法律、法规和有关规定。",
|
||||
"2公司安全生产特点、有关安全管理标准和制度、安全生产情况及安全生产基本知识。",
|
||||
"3企业安全生产规章制度、安全纪律和劳动纪律。",
|
||||
"4安全生产和职业卫生的基本知识(防机械伤害、安全用电、防火防爆、防尘防毒、急救、危险因素、应急预案等)。",
|
||||
"5作业场所和工作岗位存在的危险因素、防范措施及事故应急措施;",
|
||||
"6安全生产正反方面的经验和教训,及重大事故安全案例教训。",
|
||||
"7从业人员安全生产权利和义务;"
|
||||
],
|
||||
"department": [
|
||||
"1部门概况、生产或作业特点、可能存在的不安全因素及必须遵守的事项。",
|
||||
"2公司、部门安全生产状况、管理制度规定和安全注意事项。",
|
||||
"3所从事工种的安全技术操作规程、安全职责、操作技能及强制性标准。",
|
||||
"4一般的机械设备、电气、触电、中暑、中毒急救安全基础知识",
|
||||
"5作业场所和工作岗位存在的风险、部门危险因素分布、安全通道、职业危害、伤亡事故、应急救缓预案内容。防火、防毒、防尘、防爆知识及紧急情况安全处置、自救互救、急救方法、疏散和现场紧急情况的处理。",
|
||||
"6部门安全设施(工具)、安全警示标志、急救器材、消防器材和个人防护用品的性能、使用方法和维护。",
|
||||
"7部门以往发生的典型安全和职业危害事故教育、岗位预防措施等。",
|
||||
"8有关事故案例。"
|
||||
],
|
||||
"team": [
|
||||
"1本班组(岗位)生产工艺流程、作业特点和注意事项、安全操作规程及细则。",
|
||||
"2本班组安全活动制度及纪律、岗位之间工作衔接配合的安全与职业卫生事项。",
|
||||
"3本班组(岗位)设备、工具的性能和安全装置、安全设施、监控仪器的作用原理、正确使用方法、防护用品及消防器材的使用和保管方法等。",
|
||||
"4危害因素及防范、应急措施,本岗位易发生事故的不安全因素及其防范对策,本工种事故案例剖析。",
|
||||
"5本岗位发现紧急情况应采取的应救措施和报告办法。"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"shippingOrderReview": {
|
||||
@@ -2677,7 +2750,8 @@
|
||||
"inventory_source_unresolved": "Inventory source unresolved",
|
||||
"effective_reservation_missing": "A valid reservation number is missing",
|
||||
"unknown": "The system found an item that needs confirmation"
|
||||
}
|
||||
},
|
||||
"autoCreateBlocked": "Manual creation qualified, but auto-creation is not; after confirmation it will proceed manually."
|
||||
},
|
||||
"inventoryCandidates": {
|
||||
"title": "Manual inventory selection",
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
"ORDER_DELIVERY_REPLY.BATCHES_REQUIRED": "Please provide at least one delivery batch.",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_COUNT_EXCEEDED": "Too many batches for a single line.",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_INVALID": "Invalid batch format. Check the date, quantity, or remark.",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_QTY_TOTAL_MISMATCH": "The total of all batch quantities must equal the order quantity. Please adjust and save again.",
|
||||
"SHIPPING.NOTICE_ODM_CHOICE_INVALID": "The selected ODM ID is not among the feasible candidates. Please choose again.",
|
||||
"SHIPPING.FULFILLMENT_POLICY_INVALID": "The fulfillment policy or field capability binding is invalid.",
|
||||
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "The fulfillment policy was not found.",
|
||||
|
||||
@@ -203,7 +203,21 @@
|
||||
"resend": "Resend to WeCom",
|
||||
"failedUnits": "Failed receipt units",
|
||||
"retry": "Retry with reason",
|
||||
"retryReasonPrompt": "Enter the reason for retrying {target}"
|
||||
"retryReasonPrompt": "Enter the reason for retrying {target}",
|
||||
"batch": {
|
||||
"selectAll": "全選目前頁通知單",
|
||||
"selected": "已選 {count} 張",
|
||||
"download": "批次下載 Excel",
|
||||
"confirm": "批次確認已上傳",
|
||||
"rpa": "批次啟動 RPA",
|
||||
"downloadStarted": "已開始下載所選發貨通知 Excel",
|
||||
"success": "{action}:已處理 {count} 張通知單",
|
||||
"partialResult": "{action}:成功 {accepted} 張,阻斷 {blocked} 張,請查看重新整理後的通知狀態。",
|
||||
"lines": "項次",
|
||||
"parts": "料號",
|
||||
"quantities": "本次發貨 / 可用庫存",
|
||||
"uploadStatus": "貨代狀態"
|
||||
}
|
||||
},
|
||||
"shippingNotice": {
|
||||
"title": "Shipping Notice Tasks",
|
||||
@@ -971,6 +985,7 @@
|
||||
"downloadExcelFailed": "Failed to download Excel"
|
||||
},
|
||||
"orderDeliveryReply": {
|
||||
"deepLinkLocated": "Located the order line from the notification: {order}:{item}",
|
||||
"search": "Search",
|
||||
"reset": "Reset",
|
||||
"saving": "Saving…",
|
||||
@@ -983,8 +998,8 @@
|
||||
"syncDone": "Sync completed, {count} lines",
|
||||
"syncSkipped": "A sync is already running; try again later",
|
||||
"syncFailedTitle": "Sync failed; last snapshot kept",
|
||||
"filterKeyword": "Keyword (order / product / customer)",
|
||||
"filterKeywordPh": "Search by order no., product no., name, customer part no., or customer no.",
|
||||
"filterKeyword": "Keyword (order / product / customer / salesperson / replier)",
|
||||
"filterKeywordPh": "Search by order no., part no., name, customer part no., customer, salesperson, or reply person",
|
||||
"filterOrderDate": "Order Date",
|
||||
"filterStatus": "Reply Status",
|
||||
"statusAll": "All",
|
||||
@@ -1035,14 +1050,12 @@
|
||||
"modalTitleBatch": "Batch reply ({count} lines)",
|
||||
"quickDate": "Quick unified date",
|
||||
"applyQuickDate": "Apply to all",
|
||||
"modalHint": "Fill one date, or split into multiple date+qty batches; over-quantity is allowed with a warning only.",
|
||||
"modalHint": "Fill one date, or split into multiple date+qty batches; the batch quantity total must equal the order quantity.",
|
||||
"itemLabel": "Item {item}",
|
||||
"undeliveredLabel": "Undelivered {remain} {unit}",
|
||||
"qtyPh": "Qty",
|
||||
"remarkPh": "Remark (optional)",
|
||||
"removeBatch": "Remove batch",
|
||||
"addBatch": "+ Add batch (date + qty + remark)",
|
||||
"overWarning": "⚠ These lines exceed undelivered qty (savable, warning only): {detail}",
|
||||
"saveReply": "Save reply",
|
||||
"noValidBatches": "Fill a date and quantity for at least one line",
|
||||
"saveSingleDone": "Batches saved (not notified; still editable)",
|
||||
@@ -1058,6 +1071,12 @@
|
||||
"notifyBatchDone": "Notified and locked {ok} lines, skipped {skip}",
|
||||
"notifyFailedTitle": "Notification failed; line not locked",
|
||||
"entryHint": "Query orders, reply delivery, notify sales",
|
||||
"notNotified": "Not notified"
|
||||
"notNotified": "Not notified",
|
||||
"orderQtyLabel": "Order qty: {qty} {unit}",
|
||||
"batchMissingDate": "Batch {batches}: delivery date missing",
|
||||
"batchMissingQty": "Batch {batches}: quantity missing",
|
||||
"qtyTotalMismatchLine": "Batch total {total} must equal order quantity {qty}",
|
||||
"saveBlocked": "These lines are incomplete and cannot be saved: {detail}",
|
||||
"batchDuplicateDate": "Different batches of the same order line cannot have the same delivery date (duplicates: {dates})"
|
||||
}
|
||||
}
|
||||
@@ -47,7 +47,8 @@
|
||||
"platformApps": "แอปแพลตฟอร์ม",
|
||||
"procurementContract": "ตรวจสอบสัญญาจัดซื้อ",
|
||||
"trainingConfig": "การกำหนดค่าการฝึกอบรม",
|
||||
"integrationConnector": "ตัวเชื่อมต่อระบบ"
|
||||
"integrationConnector": "ตัวเชื่อมต่อระบบ",
|
||||
"contractPayment": "合同付款预警"
|
||||
},
|
||||
"shippingOrderExtractionRuns": {
|
||||
"eyebrow": "การวินิจฉัยการทำงานแบบอ่านอย่างเดียว",
|
||||
@@ -1120,7 +1121,12 @@
|
||||
"status": "สถานะ",
|
||||
"enable": "เปิดใช้",
|
||||
"disable": "ปิดใช้",
|
||||
"save": "บันทึก"
|
||||
"save": "บันทึก",
|
||||
"guideUsage": "资料用途",
|
||||
"generalGuide": "通用指南",
|
||||
"trainingVideo": "员工培训视频",
|
||||
"trainingExamPdf": "员工培训试题 PDF",
|
||||
"guideUsageHint": "培训工作区会优先读取“员工培训视频”和“员工培训试题 PDF”这两类资料。"
|
||||
},
|
||||
"dash": {
|
||||
"activeAgents": "ตัวแทนที่ใช้งานอยู่",
|
||||
@@ -1226,11 +1232,13 @@
|
||||
"name": "ชื่อ",
|
||||
"code": "รหัส",
|
||||
"company": "บริษัท",
|
||||
"actions": "การกระทำ"
|
||||
"actions": "การกระทำ",
|
||||
"members": "Members"
|
||||
},
|
||||
"actions": {
|
||||
"edit": "แก้ไข",
|
||||
"delete": "ลบ"
|
||||
"delete": "ลบ",
|
||||
"viewMembers": "View department members"
|
||||
},
|
||||
"fields": {
|
||||
"name": "ชื่อ",
|
||||
@@ -1245,6 +1253,11 @@
|
||||
"confirmDelete": "ลบแผนกนี้หรือไม่?",
|
||||
"msg": {
|
||||
"nameRequired": "กรุณากรอกชื่อแผนก"
|
||||
},
|
||||
"members": {
|
||||
"title": "{name} Members",
|
||||
"count": "{count} members",
|
||||
"empty": "No members"
|
||||
}
|
||||
},
|
||||
"agent": {
|
||||
@@ -1782,7 +1795,8 @@
|
||||
"callbackUrl": "URL คอลแบ็ก",
|
||||
"homepageUrl": "URL หน้าแรกแอป",
|
||||
"trustedDomain": "โดเมนที่เชื่อถือ",
|
||||
"publicBaseUrl": "Public HTTPS base"
|
||||
"publicBaseUrl": "Public HTTPS base",
|
||||
"userId": "User ID (user_id)"
|
||||
},
|
||||
"bindModes": {
|
||||
"match_rules": "จับคู่อัตโนมัติ",
|
||||
@@ -2078,7 +2092,10 @@
|
||||
"feedback_score": "คะแนน",
|
||||
"feedback_comment": "หมายเหตุคะแนน",
|
||||
"negative_feedback_count": "จำนวนข้อเสนอแนะเชิงลบ",
|
||||
"actions": "การทำงาน"
|
||||
"actions": "การทำงาน",
|
||||
"feedback_module": "Feedback Module",
|
||||
"feedback_type": "Feedback Type",
|
||||
"source_page": "Source Page"
|
||||
},
|
||||
"tables": {
|
||||
"users": "ผู้ใช้",
|
||||
@@ -2288,6 +2305,24 @@
|
||||
"90d": "3 เดือนล่าสุด",
|
||||
"180d": "6 เดือนล่าสุด",
|
||||
"365d": "12 เดือนล่าสุด"
|
||||
},
|
||||
"feedbackValues": {
|
||||
"types": {
|
||||
"feature_suggestion": "Feature Suggestion",
|
||||
"issue_feedback": "Issue Feedback",
|
||||
"experience_optimization": "Experience Optimization"
|
||||
},
|
||||
"modules": {
|
||||
"knowledge_base": "Knowledge Base",
|
||||
"general": "General",
|
||||
"workflow": "Workflow",
|
||||
"account_permission": "Account & Permissions"
|
||||
},
|
||||
"pages": {
|
||||
"workspace": "Workspace",
|
||||
"chat": "Chat",
|
||||
"unknown": "Unknown"
|
||||
}
|
||||
}
|
||||
},
|
||||
"batchEdit": {
|
||||
@@ -2430,7 +2465,35 @@
|
||||
"voucherCheckNotifyMissing": "แจ้งเตือนเมื่อขาดเอกสาร",
|
||||
"voucherCheckNotifyMissingHint": "สวิตช์หลัก กำหนดผู้รับไฟล์ขาดในแชท 「ตรวจเอกสารบัญชี → ตั้งค่าการแจ้งเตือน」 ตามประเภทไฟล์ การเลือกคนด้านล่างใช้สำหรับแจ้งเตือนเมื่อล้มเหลวเท่านั้น",
|
||||
"voucherCheckNotifyFailure": "แจ้งเตือนเมื่อล้มเหลว",
|
||||
"voucherCheckNotifyFailureHint": "เมื่อล้มเหลวทางเทคนิคจะส่งให้ผู้ที่เลือกด้านล่าง"
|
||||
"voucherCheckNotifyFailureHint": "เมื่อล้มเหลวทางเทคนิคจะส่งให้ผู้ที่เลือกด้านล่าง",
|
||||
"editTitle": "Edit schedule",
|
||||
"createTitle": "Add schedule",
|
||||
"name": "Schedule name",
|
||||
"namePlaceholder": "e.g. RoHS auto review schedule",
|
||||
"owner": "Schedule owner",
|
||||
"noUsers": "No users available",
|
||||
"selectOwner": "Select an owner",
|
||||
"faqHotAggregate": "FAQ hot aggregate",
|
||||
"querying": "Querying...",
|
||||
"testQuery": "Test query",
|
||||
"expandConfig": "Expand config",
|
||||
"collapseConfig": "Collapse config",
|
||||
"dataSourceSection": "Data source config",
|
||||
"waitSeconds": "Wait time (seconds)",
|
||||
"noAgents": "No agents available",
|
||||
"agentDisabled": "Disabled",
|
||||
"minuteInterval": "Minute interval",
|
||||
"minuteOfHour": "Minute of hour",
|
||||
"weekday": "Weekday",
|
||||
"notifyEnabled": "Enable notifications",
|
||||
"selectNotifyUsers": "Select notification recipients...",
|
||||
"enableOnCreate": "Enable after creation",
|
||||
"cancel": "Cancel",
|
||||
"saving": "Saving...",
|
||||
"saveChanges": "Save changes",
|
||||
"createSchedule": "Create schedule",
|
||||
"dynamicParamsSearchPlaceholder": "ค้นหาตัวเลือก (ชื่อ/รหัส/แผนก)…",
|
||||
"dynamicParamsSearchNoMatch": "ไม่มีตัวเลือกที่ตรง"
|
||||
},
|
||||
"status": {
|
||||
"all": "ทุกสถานะ",
|
||||
@@ -2467,7 +2530,25 @@
|
||||
"noKbGroupHint": "โปรดเปิดใช้การซิงค์คลังความรู้และเลือกกลุ่มในการแก้ไขตารางเวลาก่อน",
|
||||
"kbSyncNoStatus": "มีการขอเขียนคลังความรู้แล้ว แต่ไม่ได้รับสถานะซิงค์ โปรดตรวจการตั้งค่าคลังความรู้หรือบันทึก backend",
|
||||
"baseFetchSqlReadonly": "SQL ดึงข้อมูลพื้นฐาน (base_fetch_sql) — อ่านอย่างเดียว",
|
||||
"limitRows": "จำกัดจำนวนแถว (limit)"
|
||||
"limitRows": "จำกัดจำนวนแถว (limit)",
|
||||
"title": "Test run — {name}",
|
||||
"subtitle": "Edit WHERE clause, limit rows, run quickly and inspect each step",
|
||||
"close": "Close",
|
||||
"running": "Running...",
|
||||
"start": "Start test run",
|
||||
"waitingHint": "Dify calls may take a while, please wait...",
|
||||
"total": "Total",
|
||||
"success": "Success",
|
||||
"failed": "Failed",
|
||||
"skipped": "Skipped",
|
||||
"limitSummary": "Limit {limit} rows | Dify Agent ID: {agentId}",
|
||||
"noAgent": "None",
|
||||
"stepLogs": "Step logs",
|
||||
"viewSql": "View execution SQL",
|
||||
"errors": "Errors ({count})",
|
||||
"queryResult": "Query result",
|
||||
"resultSummary": "{total} total, showing {showing}",
|
||||
"viewGeneratedSql": "View generated SQL"
|
||||
},
|
||||
"deleteDialogTitle": "ลบตารางเวลา",
|
||||
"excelExportFailedHint": "แหล่งสต็อกสำเร็จแล้ว แต่การส่งออก Excel ของตารางเวลาล้มเหลว",
|
||||
@@ -2478,7 +2559,18 @@
|
||||
"rawInventoryZipWecomHint": "การแจ้งเตือนนี้มีแพ็กสต็อกดิบ กรุณากดปุ่มด้านล่างเพื่อดาวน์โหลดด้วยตนเอง",
|
||||
"inventoryRawZip": "สต็อกดิบ",
|
||||
"columns": {
|
||||
"skippedCount": "ข้าม"
|
||||
"skippedCount": "ข้าม",
|
||||
"runNo": "Run ID",
|
||||
"startedAt": "Started at",
|
||||
"finishedAt": "Finished at",
|
||||
"status": "Status",
|
||||
"totalCount": "Processed",
|
||||
"successCount": "Success",
|
||||
"failedCount": "Failed",
|
||||
"excelExportFailedHint": "Inventory sources succeeded, but schedule Excel export failed",
|
||||
"wecomNotified": "WeCom notify",
|
||||
"detail": "Detail",
|
||||
"log": "Log"
|
||||
},
|
||||
"deleteConfirmMessage": "ยืนยันการลบตารางเวลา \"{name}\"?",
|
||||
"msg": {
|
||||
@@ -2492,7 +2584,8 @@
|
||||
"runNowWaitTimeout": "รอการรันเสร็จสิ้นเกินเวลาที่กำหนด (ประมาณ 15 นาที) หยุดรีเฟรชอัตโนมัติแล้ว โปรดค้นหาบันทึกด้วยตนเอง",
|
||||
"downloadExcelFailed": "ดาวน์โหลด Excel ล้มเหลว",
|
||||
"downloadInventoryRawZipFailed": "ดาวน์โหลด ZIP สต็อกดิบล้มเหลว",
|
||||
"deleteFailed": "ลบตารางเวลาล้มเหลว"
|
||||
"deleteFailed": "ลบตารางเวลาล้มเหลว",
|
||||
"testQueryFailed": "Test query failed"
|
||||
},
|
||||
"difySnapshot": {
|
||||
"title": "สแนปช็อตการทำงาน Dify (ตรวจสอบ)",
|
||||
@@ -2504,6 +2597,65 @@
|
||||
"notConfiguredUseDefault": "(ยังไม่ได้ตั้งค่า ใช้ prompt เริ่มต้นใน Dify workflow)",
|
||||
"notEnabledTest": "การทดสอบนี้ไม่ได้เปิดใช้ Dify",
|
||||
"notEnabledRun": "การรันนี้ไม่ได้เปิดใช้ Dify Agent"
|
||||
},
|
||||
"overviewTitle": "Schedule Management Overview",
|
||||
"workbenchTitle": "Schedule Management Workbench",
|
||||
"overviewSubtitle": "Click a schedule card to open the workbench.",
|
||||
"workbenchSubtitle": "Schedule list on the left, run records on the right.",
|
||||
"refresh": "Refresh schedules",
|
||||
"stats": {
|
||||
"total": "Total schedules",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"running": "Running"
|
||||
},
|
||||
"sectionOverview": "Schedule Management Overview",
|
||||
"switchByCard": "Switch by card",
|
||||
"addTitle": "Add schedule",
|
||||
"addHint": "Click the button to fill in schedule fields in a dialog.",
|
||||
"addButton": "Add schedule",
|
||||
"emptyList": "No schedules yet. Create one first.",
|
||||
"loading": "Loading...",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"scheduleNo": "No.",
|
||||
"config": "Config",
|
||||
"owner": "Owner",
|
||||
"lastRun": "Last run",
|
||||
"nextRun": "Next run",
|
||||
"nextRunDisabled": "Disabled",
|
||||
"nextRunPending": "Not computed (save or restart schedule)",
|
||||
"noSelection": "No schedule selected",
|
||||
"selectedHint": "Selected schedule · Last run {time}",
|
||||
"runBatches": "Run batches",
|
||||
"totalProcessed": "Total processed",
|
||||
"totalSuccess": "Total success",
|
||||
"totalFailed": "Total failed",
|
||||
"listTitle": "Schedule list",
|
||||
"recordsTitle": "{name} · Run records",
|
||||
"recordsSubtitle": "Run record details are shown below.",
|
||||
"noSelectionHint": "Select a schedule from the list on the left first.",
|
||||
"filterStart": "Start",
|
||||
"filterEnd": "End",
|
||||
"query": "Search",
|
||||
"reset": "Reset",
|
||||
"queryingRuns": "Loading records...",
|
||||
"noRunRecords": "No run records yet.",
|
||||
"runLogs": "Run logs",
|
||||
"stepsCount": "{count} steps",
|
||||
"viewDetail": "View details",
|
||||
"resizeColumn": "Drag to resize {label} column",
|
||||
"notified": "Notified",
|
||||
"notifyError": "Error",
|
||||
"download": "Download",
|
||||
"log": "Log",
|
||||
"actions": {
|
||||
"edit": "Edit",
|
||||
"start": "Start",
|
||||
"pause": "Pause",
|
||||
"run": "Run",
|
||||
"test": "Test",
|
||||
"delete": "Delete"
|
||||
}
|
||||
},
|
||||
"shippingIdentityRules": {
|
||||
@@ -4148,7 +4300,8 @@
|
||||
"rejected": "ปฏิเสธแล้ว",
|
||||
"needs_review": "ต้องตรวจ"
|
||||
},
|
||||
"confirmRequiresNativePreview": "โหลดตัวอย่าง PDF ดั้งเดิมก่อนยืนยันการผูกภาพ"
|
||||
"confirmRequiresNativePreview": "โหลดตัวอย่าง PDF ดั้งเดิมก่อนยืนยันการผูกภาพ",
|
||||
"createBlockersTitle": "创建前阻断项"
|
||||
},
|
||||
"xfaAutoMark": {
|
||||
"title": "คำแนะนำทำเครื่องหมายอัตโนมัติ",
|
||||
@@ -5006,7 +5159,18 @@
|
||||
"review": "ต้องตรวจสอบ"
|
||||
},
|
||||
"sessionHint": "ระยะนี้ยังไม่ใช้แชทและประวัติการสนทนา เปิดบัญชีจากแท็บด้านบน",
|
||||
"moreActions": "เพิ่มเติม"
|
||||
"moreActions": "เพิ่มเติม",
|
||||
"reparse": "重新解析合同原文",
|
||||
"reparseSuccess": "已使用附件“{attachment}”重新解析",
|
||||
"reparseFailed": "重新解析合同失败",
|
||||
"reviewTitle": "待确认合同",
|
||||
"reviewSubtitle": "未匹配设备采购合同同义标题组、付款比例校验失败或关键字段冲突的合同不会进入付款预警,请下载原文核对。",
|
||||
"reviewSearchPlaceholder": "合同编号、采购编号或供应商",
|
||||
"reviewLoadFailed": "待确认合同加载失败",
|
||||
"reviewContractWorkflow": "合同号 / 流程编号",
|
||||
"reviewReason": "待确认原因",
|
||||
"reviewFallbackIssue": "解析结果待人工确认",
|
||||
"reviewEmpty": "暂无待确认合同"
|
||||
},
|
||||
"contractPaymentReview": {
|
||||
"title": "สัญญาที่รอยืนยัน",
|
||||
@@ -5359,7 +5523,17 @@
|
||||
"trainingAgentRequired": "ไม่พบ Agent การฝึกอบรมพนักงาน จึงไม่สามารถสร้างทรัพยากรวิดีโอได้",
|
||||
"videoUploaded": "อัปโหลดวิดีโอการฝึกอบรมและเพิ่มในทรัพยากรการกำหนดค่าแล้ว",
|
||||
"videoUploadFailed": "อัปโหลดวิดีโอการฝึกอบรมไม่สำเร็จ"
|
||||
}
|
||||
},
|
||||
"eyebrow": "培训运营中心",
|
||||
"pageHint": "配置变更将在保存后生效",
|
||||
"footerHint": "所有配置项均支持保存后继续调整",
|
||||
"stats": {
|
||||
"total": "配置总数",
|
||||
"published": "已发布",
|
||||
"resources": "当前资料",
|
||||
"levels": "已配置级别"
|
||||
},
|
||||
"questionBankTitle": "入职培训题库"
|
||||
},
|
||||
"integrationConnector": {
|
||||
"title": "ตัวเชื่อมต่อระบบ",
|
||||
|
||||
@@ -129,7 +129,17 @@
|
||||
"notInScopeAction": "ให้ผู้ดูแลเพิ่มสมาชิกคนนี้หรือแผนกของสมาชิกเข้าไปในขอบเขตการมองเห็นของแอป WeCom",
|
||||
"retryLogin": "เริ่มต้นการเข้าสู่ระบบ WeCom ใหม่อีกครั้ง",
|
||||
"contactAdmin": "กรุณาติดต่อผู้ดูแลระบบเพื่อขอความช่วยเหลือ"
|
||||
}
|
||||
},
|
||||
"newPassword": "New Password",
|
||||
"passwordResetSuccess": "Password reset successfully. Please login.",
|
||||
"featuredAgents": "Featured AI Agents",
|
||||
"pleaseLoginFirst": "Please login to access this agent.",
|
||||
"userNotFound": "User not found",
|
||||
"incorrectPassword": "Incorrect password",
|
||||
"accountDisabled": "Account is disabled",
|
||||
"dbConnectionFailed": "Database connection failed. Please check if the database service is running.",
|
||||
"internalError": "Internal server error. Please try again later.",
|
||||
"passwordResetEmailSent": "If the account exists, a reset link has been sent to your email."
|
||||
},
|
||||
"landing": {
|
||||
"hero": {
|
||||
@@ -156,7 +166,8 @@
|
||||
"realName": "ชื่อจริง",
|
||||
"employeeId": "รหัสพนักงาน",
|
||||
"phone": "หมายเลขโทรศัพท์"
|
||||
}
|
||||
},
|
||||
"emailRequired": "Email is required"
|
||||
},
|
||||
"resetPassword": {
|
||||
"title": "รีเซ็ตรหัสผ่าน",
|
||||
|
||||
@@ -1187,7 +1187,11 @@
|
||||
"departmentLabel": "แผนก",
|
||||
"allStatuses": "ทุกสถานะ",
|
||||
"allDepartments": "ทุกแผนก",
|
||||
"noLimit": "ไม่จำกัด"
|
||||
"noLimit": "ไม่จำกัด",
|
||||
"typeLabel": "培训类型",
|
||||
"allTypes": "全部培训",
|
||||
"typeOnboarding": "入职培训",
|
||||
"typeSafety": "安全培训"
|
||||
},
|
||||
"columns": {
|
||||
"joinDate": "วันที่เริ่มงาน",
|
||||
@@ -1542,6 +1546,75 @@
|
||||
"พนักงานคนไหนยังไม่จบการอบรม?",
|
||||
"อยากดูสถิติคะแนนอบรมเดือนนี้"
|
||||
]
|
||||
},
|
||||
"safety": {
|
||||
"tabs": {
|
||||
"onboarding": "入职培训",
|
||||
"safety": "安全培训"
|
||||
},
|
||||
"progressTitle": "三级安全教育培训进度",
|
||||
"progressHint": "按国家安全生产法要求,新员工须依次完成公司级、部门级、班组级三级安全教育。学完三级的全部资料/视频后,进入1次统一考试,≥90分及格方可结业。",
|
||||
"steps": {
|
||||
"company": "01 · 公司级",
|
||||
"department": "02 · 部门级",
|
||||
"team": "03 · 班组级",
|
||||
"exam": "04 · 统一考试"
|
||||
},
|
||||
"stepStatus": {
|
||||
"watchVideo": "观看视频",
|
||||
"examReq": "≥90 分及格",
|
||||
"completed": "已完成",
|
||||
"inProgress": "进行中",
|
||||
"pending": "待学习",
|
||||
"examPending": "需先学完三级"
|
||||
},
|
||||
"videoPanelTitle": "{level} 第{step}步",
|
||||
"videoPanelSubtitle": "观看安全教育培训视频",
|
||||
"videoPanelPassLine": "及格线:≥ 90分方可进入考试",
|
||||
"videoTitle": "部门安全生产管理制度宣导",
|
||||
"videoDuration": "时长 35 分钟 · 已完成 12%",
|
||||
"materialsTitle": "培训资料清单 (共 3 个文件/视频)",
|
||||
"materials": {
|
||||
"m1": "部门安全生产管理制度宣导.mp4",
|
||||
"m2": "危险化学品安全操作规程.pdf",
|
||||
"m3": "消防应急疏散演练视频.mp4"
|
||||
},
|
||||
"flowTitle": "学习与考试流程",
|
||||
"flowSteps": {
|
||||
"company": "公司级安全教育",
|
||||
"department": "部门级安全教育",
|
||||
"team": "班组级安全教育",
|
||||
"exam": "统一考试 ≥90分"
|
||||
},
|
||||
"summaryTitle": "培训总结",
|
||||
"summaryContent": {
|
||||
"company": [
|
||||
"1公司教育:国家有关安全生产方针、政策、法律、法规和有关规定。",
|
||||
"2公司安全生产特点、有关安全管理标准和制度、安全生产情况及安全生产基本知识。",
|
||||
"3企业安全生产规章制度、安全纪律和劳动纪律。",
|
||||
"4安全生产和职业卫生的基本知识(防机械伤害、安全用电、防火防爆、防尘防毒、急救、危险因素、应急预案等)。",
|
||||
"5作业场所和工作岗位存在的危险因素、防范措施及事故应急措施;",
|
||||
"6安全生产正反方面的经验和教训,及重大事故安全案例教训。",
|
||||
"7从业人员安全生产权利和义务;"
|
||||
],
|
||||
"department": [
|
||||
"1部门概况、生产或作业特点、可能存在的不安全因素及必须遵守的事项。",
|
||||
"2公司、部门安全生产状况、管理制度规定和安全注意事项。",
|
||||
"3所从事工种的安全技术操作规程、安全职责、操作技能及强制性标准。",
|
||||
"4一般的机械设备、电气、触电、中暑、中毒急救安全基础知识",
|
||||
"5作业场所和工作岗位存在的风险、部门危险因素分布、安全通道、职业危害、伤亡事故、应急救缓预案内容。防火、防毒、防尘、防爆知识及紧急情况安全处置、自救互救、急救方法、疏散和现场紧急情况的处理。",
|
||||
"6部门安全设施(工具)、安全警示标志、急救器材、消防器材和个人防护用品的性能、使用方法和维护。",
|
||||
"7部门以往发生的典型安全和职业危害事故教育、岗位预防措施等。",
|
||||
"8有关事故案例。"
|
||||
],
|
||||
"team": [
|
||||
"1本班组(岗位)生产工艺流程、作业特点和注意事项、安全操作规程及细则。",
|
||||
"2本班组安全活动制度及纪律、岗位之间工作衔接配合的安全与职业卫生事项。",
|
||||
"3本班组(岗位)设备、工具的性能和安全装置、安全设施、监控仪器的作用原理、正确使用方法、防护用品及消防器材的使用和保管方法等。",
|
||||
"4危害因素及防范、应急措施,本岗位易发生事故的不安全因素及其防范对策,本工种事故案例剖析。",
|
||||
"5本岗位发现紧急情况应采取的应救措施和报告办法。"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"shippingOrderReview": {
|
||||
@@ -2677,7 +2750,8 @@
|
||||
"inventory_source_unresolved": "ยังไม่ระบุแหล่งสต็อก",
|
||||
"effective_reservation_missing": "ไม่มีหมายเลขการจองที่ถูกต้อง",
|
||||
"unknown": "ระบบพบรายการที่ต้องยืนยันด้วยตนเอง"
|
||||
}
|
||||
},
|
||||
"autoCreateBlocked": "人工建单资格已通过,但自动建单资格未通过;确认后将由人工推进。"
|
||||
},
|
||||
"inventoryCandidates": {
|
||||
"title": "เลือกแหล่งสต็อกด้วยตนเอง",
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
"ORDER_DELIVERY_REPLY.BATCHES_REQUIRED": "กรุณาระบุอย่างน้อยหนึ่งงวดการส่งมอบ",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_COUNT_EXCEEDED": "จำนวนงวดเกินขีดจำกัดของรายการเดียว",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_INVALID": "รูปแบบงวดไม่ถูกต้อง โปรดตรวจสอบวันที่ จำนวน หรือหมายเหตุ",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_QTY_TOTAL_MISMATCH": "ผลรวมจำนวนทุกงวดต้องเท่ากับจำนวนของคำสั่งซื้อ โปรดปรับแล้วบันทึกอีกครั้ง",
|
||||
"SHIPPING.NOTICE_ODM_CHOICE_INVALID": "ODM ID ที่เลือกไม่อยู่ในตัวเลือกที่ทำได้ โปรดเลือกใหม่",
|
||||
"SHIPPING.FULFILLMENT_POLICY_INVALID": "นโยบายการปฏิบัติตามหรือการผูกความสามารถของฟิลด์ไม่ถูกต้อง",
|
||||
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "ไม่พบนโยบายการปฏิบัติตาม",
|
||||
|
||||
@@ -907,6 +907,7 @@
|
||||
"downloadExcelFailed": "ดาวน์โหลด Excel ไม่สำเร็จ"
|
||||
},
|
||||
"orderDeliveryReply": {
|
||||
"deepLinkLocated": "พบบรรทัดคำสั่งขายจากการแจ้งเตือนแล้ว: {order}:{item}",
|
||||
"search": "ค้นหา",
|
||||
"reset": "ล้าง",
|
||||
"saving": "กำลังบันทึก…",
|
||||
@@ -919,8 +920,8 @@
|
||||
"syncDone": "ซิงค์สำเร็จ รวม {count} รายการ",
|
||||
"syncSkipped": "มีการซิงค์กำลังทำงานอยู่ โปรดลองอีกครั้งภายหลัง",
|
||||
"syncFailedTitle": "ซิงค์ล้มเหลว ยังคงภาพรวมเดิมไว้",
|
||||
"filterKeyword": "คำค้นหา (คำสั่งซื้อ / สินค้า / ลูกค้า)",
|
||||
"filterKeywordPh": "ค้นหาเลขที่คำสั่งซื้อ รหัสสินค้า ชื่อสินค้า รหัสสินค้าลูกค้า หรือรหัสลูกค้า",
|
||||
"filterKeyword": "คำค้นหา (คำสั่งซื้อ / ผลิตภัณฑ์ / ลูกค้า / พนักงานขาย / ผู้ตอบกำหนดส่ง)",
|
||||
"filterKeywordPh": "ค้นหาด้วยเลขที่คำสั่งซื้อ รหัสสินค้า ชื่อสินค้า รหัสสินค้าลูกค้า ลูกค้า พนักงานขาย หรือผู้ตอบกำหนดส่งได้",
|
||||
"filterOrderDate": "วันที่สั่งซื้อ",
|
||||
"filterStatus": "สถานะการตอบกลับ",
|
||||
"statusAll": "ทั้งหมด",
|
||||
@@ -971,14 +972,12 @@
|
||||
"modalTitleBatch": "ตอบกลับหลายรายการ ({count} รายการ)",
|
||||
"quickDate": "วันที่รวมด่วน",
|
||||
"applyQuickDate": "ใช้กับทั้งหมด",
|
||||
"modalHint": "กรอกวันที่เดียว หรือแยกเป็นหลายงวด (วันที่+จำนวน) ได้ ถ้าเกินจำนวนที่ต้องส่งจะเตือนแต่ไม่ป้องกันการบันทึก",
|
||||
"modalHint": "กรอกวันที่เดียว หรือแยกเป็นหลายงวด (วันที่+จำนวน) ได้ โดยผลรวมจำนวนทุกงวดต้องเท่ากับจำนวนของคำสั่งซื้อ",
|
||||
"itemLabel": "รายการ {item}",
|
||||
"undeliveredLabel": "ยังไม่ส่ง {remain} {unit}",
|
||||
"qtyPh": "จำนวน",
|
||||
"remarkPh": "หมายเหตุ (ไม่บังคับ)",
|
||||
"removeBatch": "ลบงวดนี้",
|
||||
"addBatch": "+ เพิ่มงวด (วันที่ + จำนวน + หมายเหตุ)",
|
||||
"overWarning": "⚠ รายการต่อไปนี้รวมเกินจำนวนที่ยังไม่ส่ง (บันทึกได้ เตือนเท่านั้น): {detail}",
|
||||
"saveReply": "บันทึกการตอบกลับ",
|
||||
"noValidBatches": "กรุณากรอกวันที่และจำนวนอย่างน้อยหนึ่งรายการ",
|
||||
"saveSingleDone": "บันทึกงวดแล้ว (ยังไม่แจ้งเตือน แก้ไขได้)",
|
||||
@@ -994,6 +993,90 @@
|
||||
"notifyBatchDone": "แจ้งเตือนและล็อก {ok} รายการ ข้าม {skip} รายการ",
|
||||
"notifyFailedTitle": "ส่งแจ้งเตือนไม่สำเร็จ รายการยังไม่ถูกล็อก",
|
||||
"entryHint": "ค้นคำสั่งซื้อ ตอบกำหนดส่ง แจ้งพนักงานขาย",
|
||||
"notNotified": "ยังไม่แจ้ง"
|
||||
"notNotified": "ยังไม่แจ้ง",
|
||||
"orderQtyLabel": "จำนวนคำสั่งซื้อ: {qty} {unit}",
|
||||
"batchMissingDate": "งวดที่ {batches}: ยังไม่ได้กรอกวันที่",
|
||||
"batchMissingQty": "งวดที่ {batches}: ยังไม่ได้กรอกจำนวน",
|
||||
"qtyTotalMismatchLine": "ผลรวมทุกงวด {total} ต้องเท่ากับจำนวนคำสั่งซื้อ {qty}",
|
||||
"saveBlocked": "รายการต่อไปนี้กรอกไม่ครบถ้วน จึงบันทึกไม่ได้: {detail}",
|
||||
"batchDuplicateDate": "งวดต่างๆ ของคำสั่งซื้อ:รายการเดียวกันต้องไม่มีวันที่กำหนดส่งเดียวกัน (ซ้ำ: {dates})"
|
||||
},
|
||||
"lang": {
|
||||
"zhCN": "Simplified Chinese",
|
||||
"zhTW": "Traditional Chinese"
|
||||
},
|
||||
"schedule": {
|
||||
"title": "Schedule Runs",
|
||||
"refresh": "Refresh",
|
||||
"batch": {
|
||||
"selectAll": "Select all notices on this page",
|
||||
"selected": "{count} selected",
|
||||
"download": "Download Excel",
|
||||
"confirm": "Confirm uploaded",
|
||||
"rpa": "Start RPA upload",
|
||||
"downloadStarted": "Downloading the selected shipping-notice Excel files.",
|
||||
"success": "{action}: {count} notice(s) processed.",
|
||||
"partialResult": "{action}: {accepted} accepted and {blocked} blocked. Refresh to see the latest notice status.",
|
||||
"lines": "Lines",
|
||||
"parts": "Parts",
|
||||
"quantities": "Shipment / available",
|
||||
"uploadStatus": "Freight status"
|
||||
},
|
||||
"uploadNotices": "Upload shipping notices",
|
||||
"search": "Search",
|
||||
"reset": "Reset",
|
||||
"loading": "Loading...",
|
||||
"empty": "No schedule runs",
|
||||
"download": "Download",
|
||||
"noPendingData": "No pending data",
|
||||
"filters": {
|
||||
"name": "Schedule Name",
|
||||
"namePlaceholder": "Enter schedule name",
|
||||
"start": "Start Time",
|
||||
"end": "End Time",
|
||||
"status": "Status"
|
||||
},
|
||||
"columns": {
|
||||
"name": "Schedule Name",
|
||||
"runNo": "Run No.",
|
||||
"triggerType": "Trigger",
|
||||
"start": "Start Time",
|
||||
"end": "End Time",
|
||||
"duration": "Duration",
|
||||
"status": "Status",
|
||||
"total": "Total",
|
||||
"success": "Success",
|
||||
"failed": "Failed",
|
||||
"detail": "Detail"
|
||||
},
|
||||
"trigger": {
|
||||
"manual": "Manual",
|
||||
"test": "Test",
|
||||
"timed": "Scheduled"
|
||||
},
|
||||
"status": {
|
||||
"all": "All",
|
||||
"success": "Success",
|
||||
"partialFailed": "Partial Success",
|
||||
"failed": "Failed",
|
||||
"running": "Running",
|
||||
"queued": "Queued"
|
||||
},
|
||||
"msg": {
|
||||
"downloadExcelFailed": "Failed to download Excel"
|
||||
}
|
||||
},
|
||||
"profile": {
|
||||
"msg": {
|
||||
"loadFailed": "Failed to load profile",
|
||||
"saveFailed": "Failed to save profile",
|
||||
"saved": "Profile saved",
|
||||
"changePasswordFailed": "Failed to change password"
|
||||
}
|
||||
},
|
||||
"msg": {
|
||||
"casdoorNotMatchedContactAdmin": "Casdoor login succeeded, but no local account matched. Please contact the administrator.",
|
||||
"casdoorNotMatchedNeedLocalUser": "Casdoor login succeeded, but no local account matched. Ask the administrator to create a local user with the same username or email.",
|
||||
"localAccountDisabled": "This local account is disabled. Please contact the administrator."
|
||||
}
|
||||
}
|
||||
@@ -1923,7 +1923,8 @@
|
||||
"encodingAesKey": "EncodingAESKey",
|
||||
"callbackUrl": "回调URL",
|
||||
"homepageUrl": "应用主页URL",
|
||||
"trustedDomain": "可信域名"
|
||||
"trustedDomain": "可信域名",
|
||||
"userId": "用户 ID(user_id)"
|
||||
},
|
||||
"bindModes": {
|
||||
"match_rules": "按规则自动匹配",
|
||||
@@ -2219,7 +2220,10 @@
|
||||
"feedback_score": "评分",
|
||||
"feedback_comment": "评分备注",
|
||||
"negative_feedback_count": "负面反馈数",
|
||||
"actions": "操作"
|
||||
"actions": "操作",
|
||||
"feedback_module": "反馈模块",
|
||||
"feedback_type": "反馈类型",
|
||||
"source_page": "来源页面"
|
||||
},
|
||||
"tables": {
|
||||
"users": "用户",
|
||||
@@ -2230,7 +2234,8 @@
|
||||
"agents": "应用运营",
|
||||
"ops_overview": "运营总览",
|
||||
"issue_analysis": "问题分析",
|
||||
"usage_analysis": "使用分析"
|
||||
"usage_analysis": "使用分析",
|
||||
"permission_requests": "权限申请"
|
||||
},
|
||||
"usageIntro": "查看 AI 应用调用趋势、活跃用户、低使用应用与异常高峰。",
|
||||
"usageTotalSessions": "对话总量",
|
||||
@@ -2420,6 +2425,32 @@
|
||||
"topApp": "优先优化应用",
|
||||
"topAppHint": "需要关注信号占比 {ratio}%"
|
||||
}
|
||||
},
|
||||
"usageRangeLabel": "统计范围",
|
||||
"usageRanges": {
|
||||
"7d": "近一周",
|
||||
"30d": "近一月",
|
||||
"90d": "近三月",
|
||||
"180d": "近半年",
|
||||
"365d": "近一年"
|
||||
},
|
||||
"feedbackValues": {
|
||||
"types": {
|
||||
"feature_suggestion": "功能建议",
|
||||
"issue_feedback": "问题反馈",
|
||||
"experience_optimization": "体验优化"
|
||||
},
|
||||
"modules": {
|
||||
"knowledge_base": "知识库",
|
||||
"general": "通用",
|
||||
"workflow": "工作流",
|
||||
"account_permission": "账号与权限"
|
||||
},
|
||||
"pages": {
|
||||
"workspace": "工作台",
|
||||
"chat": "聊天",
|
||||
"unknown": "未知"
|
||||
}
|
||||
}
|
||||
},
|
||||
"batchEdit": {
|
||||
@@ -2667,7 +2698,9 @@
|
||||
"voucherCheckNotifyMissing": "缺资料通知",
|
||||
"voucherCheckNotifyMissingHint": "总开关。缺件接收人请到 Chat「立账凭证 → 通知配置」按文件类型设置;排程选人只用于技术失败告警。",
|
||||
"voucherCheckNotifyFailure": "失败告警",
|
||||
"voucherCheckNotifyFailureHint": "技术失败发给下方「选择通知人员」。"
|
||||
"voucherCheckNotifyFailureHint": "技术失败发给下方「选择通知人员」。",
|
||||
"dynamicParamsSearchPlaceholder": "搜索选项(姓名/工号/部门)…",
|
||||
"dynamicParamsSearchNoMatch": "没有匹配的选项"
|
||||
},
|
||||
"testRun": {
|
||||
"title": "测试执行 — {name}",
|
||||
@@ -2750,7 +2783,8 @@
|
||||
"notConfiguredUseDefault": "(未配置,使用 Dify 编排内默认提示词)",
|
||||
"notEnabledTest": "本次测试未启用 Dify",
|
||||
"notEnabledRun": "本次执行未启用 Dify Agent"
|
||||
}
|
||||
},
|
||||
"excelExportFailedHint": "库存来源已成功,但排程 Excel 生成失败"
|
||||
},
|
||||
"shippingIdentityRules": {
|
||||
"eyebrow": "货代客户治理",
|
||||
@@ -5003,9 +5037,10 @@
|
||||
"due": "即将到期",
|
||||
"dueHint": "7日内",
|
||||
"overdue": "逾期未付",
|
||||
"needsCompletion": "待补充",
|
||||
"active": "进行中",
|
||||
"dueThisMonth": "本月应付",
|
||||
"dueThisMonthHint": "本自然月"
|
||||
"dueThisMonthHint": "本自然月",
|
||||
"needsCompletion": "待补充"
|
||||
},
|
||||
"status": {
|
||||
"completed": "已完成",
|
||||
@@ -5024,10 +5059,6 @@
|
||||
"acceptance": "验收款",
|
||||
"warranty": "质保款"
|
||||
},
|
||||
"stats": {"contracts": "合同总数", "pendingParse": "待处理合同", "readyPlans": "计划已生成", "alerts": "待预警节点"},
|
||||
"ledgerFocus": {"due": "即将到期", "dueHint": "7日内", "overdue": "逾期未付", "active": "进行中", "dueThisMonth": "本月应付", "dueThisMonthHint": "本自然月"},
|
||||
"status": {"completed": "已完成", "needs_review": "待复核", "pending": "待解析"}, "stateLabel": {"parsed": "已解析", "needs_review": "待复核", "pending": "待解析", "active": "已生效"},
|
||||
"nodeType": {"prepayment": "预付款", "shipment": "出货款", "acceptance": "验收款", "warranty": "质保款"},
|
||||
"ruleConfirmed": "已确定",
|
||||
"prepaymentRule": "合同归档后第 7/14/21 天预警;请款以 OA 厂商预付款请款作业为准。",
|
||||
"shipmentRule": "交货期限前 7 天、到期日、到期后 14 天预警;请款以 OA 厂商预付款请款作业为准。",
|
||||
@@ -5144,7 +5175,7 @@
|
||||
"contractPaymentReview": {
|
||||
"title": "待确认合同",
|
||||
"subtitle": "未匹配设备采购合同同义标题组、付款比例校验失败或关键字段冲突的合同不会进入付款预警,请下载原文核对。",
|
||||
"searchPlaceholder": "合同编号、采购编号或供应商",
|
||||
"searchPlaceholder": "合同编号、采购编号、供应商或申请人",
|
||||
"loadFailed": "待确认合同加载失败",
|
||||
"contractWorkflow": "合同号 / 流程编号",
|
||||
"reason": "待确认原因",
|
||||
@@ -5156,8 +5187,6 @@
|
||||
"success": "已使用附件“{attachment}”重新解析",
|
||||
"failed": "重新解析合同失败"
|
||||
},
|
||||
"contractPaymentReview": {"title": "待确认合同", "subtitle": "未匹配设备采购合同同义标题组、付款比例校验失败或关键字段冲突的合同不会进入付款预警,请下载原文核对。", "searchPlaceholder": "合同编号、采购编号、供应商或申请人", "loadFailed": "待确认合同加载失败", "contractWorkflow": "合同号 / 流程编号", "reason": "待确认原因", "fallbackIssue": "解析结果待人工确认", "empty": "暂无待确认合同"},
|
||||
"contractPaymentReparse": {"action": "重新解析合同原文", "success": "已使用附件“{attachment}”重新解析", "failed": "重新解析合同失败"},
|
||||
"procurementContract": {
|
||||
"title": "采购合同审查",
|
||||
"subtitle": "维护标准合同模板、风险红线规则并查看审查历史",
|
||||
|
||||
@@ -1,188 +1,189 @@
|
||||
{
|
||||
"title": "企业级 AI 网关",
|
||||
"login": {
|
||||
"username": "用户名",
|
||||
"password": "密码",
|
||||
"submit": "登录",
|
||||
"registerLink": "点击注册",
|
||||
"noAccount": "没有账号?",
|
||||
"subtitle": "欢迎回来!请输入您的详细信息。",
|
||||
"placeholder": {
|
||||
"username": "请输入用户名",
|
||||
"password": "密码"
|
||||
"title": "企业级 AI 网关",
|
||||
"login": {
|
||||
"username": "用户名",
|
||||
"password": "密码",
|
||||
"submit": "登录",
|
||||
"registerLink": "点击注册",
|
||||
"noAccount": "没有账号?",
|
||||
"subtitle": "欢迎回来!请输入您的详细信息。",
|
||||
"placeholder": {
|
||||
"username": "请输入用户名",
|
||||
"password": "密码"
|
||||
},
|
||||
"failed": "登录失败",
|
||||
"inputError": "请输入用户名和密码",
|
||||
"usernameRequired": "用户名不能为空",
|
||||
"usernameRequiredHint": "请输入用户名",
|
||||
"passwordRequired": "密码不能为空",
|
||||
"passwordRequiredHint": "请输入密码",
|
||||
"loginRequired": "请先登录",
|
||||
"sessionExpired": "登录已失效",
|
||||
"sessionExpiredHint": "请重新登录后继续使用。",
|
||||
"requestFailed": "登录请求失败",
|
||||
"forgotPassword": "忘记密码?",
|
||||
"newPassword": "新密码",
|
||||
"passwordResetSuccess": "密码重置成功,请重新登录。",
|
||||
"featuredAgents": "推荐 AI 应用",
|
||||
"pleaseLoginFirst": "请先登录以使用此应用。",
|
||||
"userNotFound": "用户不存在",
|
||||
"incorrectPassword": "密码错误",
|
||||
"accountDisabled": "账号已禁用",
|
||||
"dbConnectionFailed": "数据库连接失败,请检查数据库服务是否运行。",
|
||||
"internalError": "服务器内部错误,请稍后重试。",
|
||||
"rememberMe": "记住我",
|
||||
"forgotPasswordDesc": "输入工号和用户名,重置链接将发送到您的企业微信",
|
||||
"findPassword": "找回密码",
|
||||
"employeeIdRequired": "请输入工号",
|
||||
"passwordResetWecomSent": "若账号存在且已绑定企业微信,重置链接已发送到您的企业微信。",
|
||||
"passwordResetEmailSent": "若账号存在,重置链接已发送到您的邮箱。",
|
||||
"passwordResetRequestFailed": "请求密码重置失败",
|
||||
"passwordResetRateLimited": "操作过于频繁,请 {minutes} 分钟后再试",
|
||||
"announcements": "公告",
|
||||
"casdoorLogin": "Casdoor 登录",
|
||||
"casdoorErrors": {
|
||||
"invalidCredentials": "用户名或密码错误",
|
||||
"codeExpired": "登录会话已过期,请重新登录",
|
||||
"stateExpired": "登录会话已过期,请重试",
|
||||
"accessDenied": "登录已取消或被拒绝",
|
||||
"configError": "认证服务暂不可用,请联系管理员",
|
||||
"authFailed": "登录失败,请稍后重试",
|
||||
"passwordPolicy": "新密码不符合安全要求",
|
||||
"setPasswordFailed": "修改密码失败,请稍后重试或联系管理员",
|
||||
"incorrectCurrentPassword": "原:当前密码不正确,新:您输入的原密码有误,请重新输入",
|
||||
"passwordUnchanged": "新密码不能与当前密码相同",
|
||||
"userNotInIdp": "您的账号尚未在统一认证系统中开通,请联系管理员同步账号后再修改密码。"
|
||||
},
|
||||
"casdoorDialogTitles": {
|
||||
"userNotFound": "未匹配到本地账号",
|
||||
"userNotInIdp": "认证系统中无此账号",
|
||||
"accountDisabled": "账号已禁用",
|
||||
"sessionExpired": "登录会话已过期",
|
||||
"configError": "认证服务异常",
|
||||
"accessDenied": "登录未完成",
|
||||
"loginFailed": "登录失败"
|
||||
},
|
||||
"casdoorDialogDetails": {
|
||||
"contactAdmin": "若问题持续出现,请联系管理员处理。",
|
||||
"retryLogin": "请关闭此窗口后重新登录。"
|
||||
},
|
||||
"wecomLogin": "企业微信登录",
|
||||
"wecomComingSoon": "企业微信登录功能正在开发中,敬请期待",
|
||||
"wecomConnecting": "正在连接企业微信...",
|
||||
"wecomStartFailed": "启动企业微信登录失败",
|
||||
"wecomInvalidState": "企业微信登录状态无效",
|
||||
"wecomStateExpired": "企业微信登录会话已过期,请重试。",
|
||||
"wecomBindRequired": "当前企业微信账号未绑定本地用户,请联系管理员。",
|
||||
"wecomAccountDisabled": "账号已禁用,请联系管理员。",
|
||||
"wecomLoginFailed": "企业微信登录失败",
|
||||
"wecomMatchAmbiguous": "该企业微信账号匹配到多个本地账号,请联系管理员处理。",
|
||||
"wecomMatchAttrMissing": "企业微信缺少必要匹配字段,请联系管理员。",
|
||||
"wecomRetry": "重新发起企业微信登录",
|
||||
"wecomTechnicalInfo": "技术信息:{detail}",
|
||||
"wecomBindPromptTitle": "首次登录请校验并绑定本站账号",
|
||||
"wecomBindPromptDesc": "当前企业微信身份为 {name}。请输入一个允许的字段,用来绑定你已有的本站账号。",
|
||||
"wecomBindField": "校验字段",
|
||||
"wecomBindValue": "校验值",
|
||||
"wecomBindValuePlaceholder": "请输入你的{field}",
|
||||
"wecomBindPromptHint": "输入值必须和本站已有账号完全匹配。绑定成功后,当前企业微信账号会自动写回该用户表。",
|
||||
"wecomBindSubmit": "校验并登录",
|
||||
"wecomBindInputNotFound": "没有找到与你输入内容匹配的本站账号。",
|
||||
"wecomBindInputAmbiguous": "你输入的内容匹配到了多个本站账号,请联系管理员处理。",
|
||||
"wecomBindSessionExpired": "本次企业微信绑定会话已过期,请重新发起企业微信登录。",
|
||||
"wecomBindConflict": "当前企业微信账号已绑定到其他本站账号。",
|
||||
"wecomBindFieldNotAllowed": "当前选择的校验字段不被允许。",
|
||||
"wecomBindValueRequired": "请输入校验值。",
|
||||
"wecomFieldLabels": {
|
||||
"employee_id": "工号",
|
||||
"mobile": "手机号",
|
||||
"email": "邮箱",
|
||||
"match_rules": "匹配规则"
|
||||
},
|
||||
"wecomRuleJoin": {
|
||||
"and": "且",
|
||||
"or": "或"
|
||||
},
|
||||
"wecomFieldGuides": {
|
||||
"employee_id": "请管理员检查“工号来源字段”配置,并确认该成员在企业微信里能返回工号。",
|
||||
"mobile": "请管理员在企业微信通讯录中补齐该成员手机号,或调整匹配规则,不再强依赖手机号。",
|
||||
"email": "请管理员在企业微信通讯录中维护该成员邮箱,或调整匹配规则。",
|
||||
"default": "请管理员检查企业微信通讯录字段是否齐全,以及当前匹配规则是否合理。"
|
||||
},
|
||||
"wecomDialogTitles": {
|
||||
"matchAttrMissing": "企业微信资料不完整",
|
||||
"matchAmbiguous": "匹配到了多个本站账号",
|
||||
"bindRequired": "未找到可绑定的本站账号",
|
||||
"bindInputRequired": "首次绑定前需要人工校验",
|
||||
"bindConflict": "该企业微信账号已绑定到别的账号",
|
||||
"notInScope": "当前成员未被该应用授权",
|
||||
"stateExpired": "企业微信登录已过期",
|
||||
"accountDisabled": "本地账号已被禁用",
|
||||
"loginFailed": "企业微信登录失败"
|
||||
},
|
||||
"wecomDialogSummaries": {
|
||||
"matchAttrMissing": "企业微信没有返回“{field}”,所以系统无法按当前规则自动匹配你的本站账号。",
|
||||
"matchAmbiguous": "当前企业微信账号匹配到了多个本站账号,系统无法自动判断该登录哪一个。",
|
||||
"matchAmbiguousWithCount": "当前企业微信账号匹配到了 {count} 个本站账号,系统无法自动判断该登录哪一个。",
|
||||
"bindRequired": "企业微信侧认证已经成功,但本站没有找到符合当前规则的账号。",
|
||||
"bindInputRequired": "企业微信侧认证已经成功,请先输入一个本站字段完成首次绑定。",
|
||||
"bindConflict": "当前企业微信账号已经绑定到其他本站账号。",
|
||||
"notInScope": "当前成员不在企业微信应用可见范围内,或不是本企业成员。"
|
||||
},
|
||||
"wecomDialogDetails": {
|
||||
"currentRules": "当前匹配规则:{rules}",
|
||||
"bindFallback": "如果你已经有本站账号,可以请管理员先手动绑定当前企业微信账号。",
|
||||
"ambiguousAction": "请管理员清理重复的工号、手机号或邮箱数据,或者收紧匹配规则。",
|
||||
"bindRequiredAction": "请管理员先创建或绑定本站账号,或者开启自动创建用户。",
|
||||
"bindInputRequiredAction": "下一步请输入你的工号、手机号或邮箱中的一个,校验成功后就会把当前企业微信账号绑定到已有本站账号。",
|
||||
"bindConflictAction": "请管理员先解除旧绑定,再重新绑定当前企业微信账号。",
|
||||
"notInScopeAction": "请管理员到企业微信后台,把该成员或其所在部门加入该应用的可见范围。",
|
||||
"retryLogin": "请重新发起一次企业微信登录。",
|
||||
"contactAdmin": "如需帮助,请联系管理员。"
|
||||
}
|
||||
},
|
||||
"failed": "登录失败",
|
||||
"inputError": "请输入用户名和密码",
|
||||
"usernameRequired": "用户名不能为空",
|
||||
"usernameRequiredHint": "请输入用户名",
|
||||
"passwordRequired": "密码不能为空",
|
||||
"passwordRequiredHint": "请输入密码",
|
||||
"loginRequired": "请先登录",
|
||||
"sessionExpired": "登录已失效",
|
||||
"sessionExpiredHint": "请重新登录后继续使用。",
|
||||
"requestFailed": "登录请求失败",
|
||||
"forgotPassword": "忘记密码?",
|
||||
"newPassword": "新密码",
|
||||
"passwordResetSuccess": "密码重置成功,请重新登录。",
|
||||
"featuredAgents": "推荐 AI 应用",
|
||||
"pleaseLoginFirst": "请先登录以使用此应用。",
|
||||
"userNotFound": "用户不存在",
|
||||
"incorrectPassword": "密码错误",
|
||||
"accountDisabled": "账号已禁用",
|
||||
"dbConnectionFailed": "数据库连接失败,请检查数据库服务是否运行。",
|
||||
"internalError": "服务器内部错误,请稍后重试。",
|
||||
"rememberMe": "记住我",
|
||||
"forgotPasswordDesc": "输入工号和用户名,重置链接将发送到您的企业微信",
|
||||
"findPassword": "找回密码",
|
||||
"employeeIdRequired": "请输入工号",
|
||||
"passwordResetWecomSent": "若账号存在且已绑定企业微信,重置链接已发送到您的企业微信。",
|
||||
"passwordResetEmailSent": "若账号存在,重置链接已发送到您的邮箱。",
|
||||
"passwordResetRequestFailed": "请求密码重置失败",
|
||||
"passwordResetRateLimited": "操作过于频繁,请 {minutes} 分钟后再试",
|
||||
"announcements": "公告",
|
||||
"casdoorLogin": "Casdoor 登录",
|
||||
"casdoorErrors": {
|
||||
"invalidCredentials": "用户名或密码错误",
|
||||
"codeExpired": "登录会话已过期,请重新登录",
|
||||
"stateExpired": "登录会话已过期,请重试",
|
||||
"accessDenied": "登录已取消或被拒绝",
|
||||
"configError": "认证服务暂不可用,请联系管理员",
|
||||
"authFailed": "登录失败,请稍后重试",
|
||||
"passwordPolicy": "新密码不符合安全要求",
|
||||
"setPasswordFailed": "修改密码失败,请稍后重试或联系管理员",
|
||||
"incorrectCurrentPassword": "原:当前密码不正确,新:您输入的原密码有误,请重新输入",
|
||||
"passwordUnchanged": "新密码不能与当前密码相同",
|
||||
"userNotInIdp": "您的账号尚未在统一认证系统中开通,请联系管理员同步账号后再修改密码。"
|
||||
"landing": {
|
||||
"hero": {
|
||||
"prefix": "和信精密",
|
||||
"highlight": "AI智能体 应用平台",
|
||||
"subtitle": "AI的世界,期望让你开心工作,快乐生活。"
|
||||
},
|
||||
"agent": {
|
||||
"role": "AI 助手"
|
||||
}
|
||||
},
|
||||
"casdoorDialogTitles": {
|
||||
"userNotFound": "未匹配到本地账号",
|
||||
"userNotInIdp": "认证系统中无此账号",
|
||||
"accountDisabled": "账号已禁用",
|
||||
"sessionExpired": "登录会话已过期",
|
||||
"configError": "认证服务异常",
|
||||
"accessDenied": "登录未完成",
|
||||
"loginFailed": "登录失败"
|
||||
"register": {
|
||||
"title": "注册新账号",
|
||||
"username": "用户名",
|
||||
"password": "密码",
|
||||
"email": "邮箱",
|
||||
"cancel": "取消",
|
||||
"submit": "提交注册",
|
||||
"success": "注册申请已提交,请等待管理员审批",
|
||||
"failed": "注册失败",
|
||||
"inputError": "请输入用户名和密码",
|
||||
"requestFailed": "请求失败",
|
||||
"fields": {
|
||||
"realName": "真实姓名",
|
||||
"employeeId": "工号",
|
||||
"phone": "手机号"
|
||||
},
|
||||
"emailRequired": "请输入邮箱"
|
||||
},
|
||||
"casdoorDialogDetails": {
|
||||
"contactAdmin": "若问题持续出现,请联系管理员处理。",
|
||||
"retryLogin": "请关闭此窗口后重新登录。"
|
||||
},
|
||||
"wecomLogin": "企业微信登录",
|
||||
"wecomComingSoon": "企业微信登录功能正在开发中,敬请期待",
|
||||
"wecomConnecting": "正在连接企业微信...",
|
||||
"wecomStartFailed": "启动企业微信登录失败",
|
||||
"wecomInvalidState": "企业微信登录状态无效",
|
||||
"wecomStateExpired": "企业微信登录会话已过期,请重试。",
|
||||
"wecomBindRequired": "当前企业微信账号未绑定本地用户,请联系管理员。",
|
||||
"wecomAccountDisabled": "账号已禁用,请联系管理员。",
|
||||
"wecomLoginFailed": "企业微信登录失败",
|
||||
"wecomMatchAmbiguous": "该企业微信账号匹配到多个本地账号,请联系管理员处理。",
|
||||
"wecomMatchAttrMissing": "企业微信缺少必要匹配字段,请联系管理员。",
|
||||
"wecomRetry": "重新发起企业微信登录",
|
||||
"wecomTechnicalInfo": "技术信息:{detail}",
|
||||
"wecomBindPromptTitle": "首次登录请校验并绑定本站账号",
|
||||
"wecomBindPromptDesc": "当前企业微信身份为 {name}。请输入一个允许的字段,用来绑定你已有的本站账号。",
|
||||
"wecomBindField": "校验字段",
|
||||
"wecomBindValue": "校验值",
|
||||
"wecomBindValuePlaceholder": "请输入你的{field}",
|
||||
"wecomBindPromptHint": "输入值必须和本站已有账号完全匹配。绑定成功后,当前企业微信账号会自动写回该用户表。",
|
||||
"wecomBindSubmit": "校验并登录",
|
||||
"wecomBindInputNotFound": "没有找到与你输入内容匹配的本站账号。",
|
||||
"wecomBindInputAmbiguous": "你输入的内容匹配到了多个本站账号,请联系管理员处理。",
|
||||
"wecomBindSessionExpired": "本次企业微信绑定会话已过期,请重新发起企业微信登录。",
|
||||
"wecomBindConflict": "当前企业微信账号已绑定到其他本站账号。",
|
||||
"wecomBindFieldNotAllowed": "当前选择的校验字段不被允许。",
|
||||
"wecomBindValueRequired": "请输入校验值。",
|
||||
"wecomFieldLabels": {
|
||||
"employee_id": "工号",
|
||||
"mobile": "手机号",
|
||||
"email": "邮箱",
|
||||
"match_rules": "匹配规则"
|
||||
},
|
||||
"wecomRuleJoin": {
|
||||
"and": "且",
|
||||
"or": "或"
|
||||
},
|
||||
"wecomFieldGuides": {
|
||||
"employee_id": "请管理员检查“工号来源字段”配置,并确认该成员在企业微信里能返回工号。",
|
||||
"mobile": "请管理员在企业微信通讯录中补齐该成员手机号,或调整匹配规则,不再强依赖手机号。",
|
||||
"email": "请管理员在企业微信通讯录中维护该成员邮箱,或调整匹配规则。",
|
||||
"default": "请管理员检查企业微信通讯录字段是否齐全,以及当前匹配规则是否合理。"
|
||||
},
|
||||
"wecomDialogTitles": {
|
||||
"matchAttrMissing": "企业微信资料不完整",
|
||||
"matchAmbiguous": "匹配到了多个本站账号",
|
||||
"bindRequired": "未找到可绑定的本站账号",
|
||||
"bindInputRequired": "首次绑定前需要人工校验",
|
||||
"bindConflict": "该企业微信账号已绑定到别的账号",
|
||||
"notInScope": "当前成员未被该应用授权",
|
||||
"stateExpired": "企业微信登录已过期",
|
||||
"accountDisabled": "本地账号已被禁用",
|
||||
"loginFailed": "企业微信登录失败"
|
||||
},
|
||||
"wecomDialogSummaries": {
|
||||
"matchAttrMissing": "企业微信没有返回“{field}”,所以系统无法按当前规则自动匹配你的本站账号。",
|
||||
"matchAmbiguous": "当前企业微信账号匹配到了多个本站账号,系统无法自动判断该登录哪一个。",
|
||||
"matchAmbiguousWithCount": "当前企业微信账号匹配到了 {count} 个本站账号,系统无法自动判断该登录哪一个。",
|
||||
"bindRequired": "企业微信侧认证已经成功,但本站没有找到符合当前规则的账号。",
|
||||
"bindInputRequired": "企业微信侧认证已经成功,请先输入一个本站字段完成首次绑定。",
|
||||
"bindConflict": "当前企业微信账号已经绑定到其他本站账号。",
|
||||
"notInScope": "当前成员不在企业微信应用可见范围内,或不是本企业成员。"
|
||||
},
|
||||
"wecomDialogDetails": {
|
||||
"currentRules": "当前匹配规则:{rules}",
|
||||
"bindFallback": "如果你已经有本站账号,可以请管理员先手动绑定当前企业微信账号。",
|
||||
"ambiguousAction": "请管理员清理重复的工号、手机号或邮箱数据,或者收紧匹配规则。",
|
||||
"bindRequiredAction": "请管理员先创建或绑定本站账号,或者开启自动创建用户。",
|
||||
"bindInputRequiredAction": "下一步请输入你的工号、手机号或邮箱中的一个,校验成功后就会把当前企业微信账号绑定到已有本站账号。",
|
||||
"bindConflictAction": "请管理员先解除旧绑定,再重新绑定当前企业微信账号。",
|
||||
"notInScopeAction": "请管理员到企业微信后台,把该成员或其所在部门加入该应用的可见范围。",
|
||||
"retryLogin": "请重新发起一次企业微信登录。",
|
||||
"contactAdmin": "如需帮助,请联系管理员。"
|
||||
"resetPassword": {
|
||||
"title": "重置密码",
|
||||
"desc": "请在下方输入新密码",
|
||||
"newPassword": "新密码",
|
||||
"confirmPassword": "确认密码",
|
||||
"newPasswordPlaceholder": "请输入新密码",
|
||||
"confirmPasswordPlaceholder": "请再次输入新密码",
|
||||
"submit": "重置密码",
|
||||
"submitting": "正在重置...",
|
||||
"backToLogin": "返回登录",
|
||||
"fillAllFields": "请填写所有字段",
|
||||
"passwordMismatch": "两次输入的密码不一致",
|
||||
"successRedirect": "密码重置成功,即将跳转到登录页...",
|
||||
"failed": "密码重置失败",
|
||||
"invalidLink": "重置链接无效或缺少 token,请重新申请找回密码",
|
||||
"tokenInvalid": "链接已失效或已过期(可能已使用过或重新申请过),请回到登录页重新发起找回密码"
|
||||
}
|
||||
},
|
||||
"landing": {
|
||||
"hero": {
|
||||
"prefix": "和信精密",
|
||||
"highlight": "AI智能体 应用平台",
|
||||
"subtitle": "AI的世界,期望让你开心工作,快乐生活。"
|
||||
},
|
||||
"agent": {
|
||||
"role": "AI 助手"
|
||||
}
|
||||
},
|
||||
"register": {
|
||||
"title": "注册新账号",
|
||||
"username": "用户名",
|
||||
"password": "密码",
|
||||
"email": "邮箱",
|
||||
"cancel": "取消",
|
||||
"submit": "提交注册",
|
||||
"success": "注册申请已提交,请等待管理员审批",
|
||||
"failed": "注册失败",
|
||||
"inputError": "请输入用户名和密码",
|
||||
"requestFailed": "请求失败",
|
||||
"fields": {
|
||||
"realName": "真实姓名",
|
||||
"employeeId": "工号",
|
||||
"phone": "手机号"
|
||||
}
|
||||
},
|
||||
"resetPassword": {
|
||||
"title": "重置密码",
|
||||
"desc": "请在下方输入新密码",
|
||||
"newPassword": "新密码",
|
||||
"confirmPassword": "确认密码",
|
||||
"newPasswordPlaceholder": "请输入新密码",
|
||||
"confirmPasswordPlaceholder": "请再次输入新密码",
|
||||
"submit": "重置密码",
|
||||
"submitting": "正在重置...",
|
||||
"backToLogin": "返回登录",
|
||||
"fillAllFields": "请填写所有字段",
|
||||
"passwordMismatch": "两次输入的密码不一致",
|
||||
"successRedirect": "密码重置成功,即将跳转到登录页...",
|
||||
"failed": "密码重置失败",
|
||||
"invalidLink": "重置链接无效或缺少 token,请重新申请找回密码",
|
||||
"tokenInvalid": "链接已失效或已过期(可能已使用过或重新申请过),请回到登录页重新发起找回密码"
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,7 @@
|
||||
"ORDER_DELIVERY_REPLY.BATCHES_REQUIRED": "请至少填写一条交期批次。",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_COUNT_EXCEEDED": "单行批次数量超过上限。",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_INVALID": "批次格式不合法,请检查交期、数量或备注。",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_QTY_TOTAL_MISMATCH": "各批次数量合计必须等于订单数量,请调整后重新保存。",
|
||||
"SHIPPING.NOTICE_ODM_CHOICE_INVALID": "所选 ODM ID 不在当前可行候选内,请重新选择。",
|
||||
"SHIPPING.FULFILLMENT_POLICY_INVALID": "货代履约策略或字段能力绑定无效。",
|
||||
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "未找到货代履约策略。",
|
||||
|
||||
@@ -203,7 +203,21 @@
|
||||
"resend": "重发企微",
|
||||
"failedUnits": "失败的收料单元",
|
||||
"retry": "填写原因后重试",
|
||||
"retryReasonPrompt": "请填写重试 {target} 的原因"
|
||||
"retryReasonPrompt": "请填写重试 {target} 的原因",
|
||||
"batch": {
|
||||
"selectAll": "全选当前页通知单",
|
||||
"selected": "已选 {count} 张",
|
||||
"download": "批量下载 Excel",
|
||||
"confirm": "批量确认已上传",
|
||||
"rpa": "批量启动 RPA",
|
||||
"downloadStarted": "已开始下载所选发货通知 Excel",
|
||||
"success": "{action}:已处理 {count} 张通知单",
|
||||
"partialResult": "{action}:成功 {accepted} 张,阻断 {blocked} 张,请查看刷新后的通知状态。",
|
||||
"lines": "项次",
|
||||
"parts": "料号",
|
||||
"quantities": "本次发货 / 可用库存",
|
||||
"uploadStatus": "货代状态"
|
||||
}
|
||||
},
|
||||
"shippingNotice": {
|
||||
"title": "货代发货通知",
|
||||
@@ -971,6 +985,7 @@
|
||||
"downloadExcelFailed": "下载 Excel 失败"
|
||||
},
|
||||
"orderDeliveryReply": {
|
||||
"deepLinkLocated": "已定位到通知对应的订单行 {order}:{item}",
|
||||
"search": "查询",
|
||||
"reset": "重置",
|
||||
"saving": "保存中…",
|
||||
@@ -983,8 +998,8 @@
|
||||
"syncDone": "同步完成,共 {count} 行",
|
||||
"syncSkipped": "已有同步正在进行,请稍后再试",
|
||||
"syncFailedTitle": "同步失败,已保留上次快照",
|
||||
"filterKeyword": "关键词(订单 / 产品 / 客户)",
|
||||
"filterKeywordPh": "订单单号、产品编号、品名、客户料号、客户编号均可搜索",
|
||||
"filterKeyword": "关键词(订单 / 产品 / 客户 / 业务员 / 回复人员)",
|
||||
"filterKeywordPh": "订单单号、产品编号、品名、客户料号、客户编号、业务员、交期回复人员均可搜索",
|
||||
"filterOrderDate": "订单日期",
|
||||
"filterStatus": "交期回复状态",
|
||||
"statusAll": "全部",
|
||||
@@ -1035,14 +1050,12 @@
|
||||
"modalTitleBatch": "联合回复交期({count} 行)",
|
||||
"quickDate": "快速统一交期",
|
||||
"applyQuickDate": "应用到全部",
|
||||
"modalHint": "可填 1 个交期,或点「增加批次」拆成多个「交期+数量」;允许超额,仅提醒不拦截。",
|
||||
"modalHint": "可填 1 个交期,或点「增加批次」拆成多个「交期+数量」;各批次数量合计须等于订单数量。",
|
||||
"itemLabel": "项次 {item}",
|
||||
"undeliveredLabel": "未交 {remain} {unit}",
|
||||
"qtyPh": "数量",
|
||||
"remarkPh": "备注(可选)",
|
||||
"removeBatch": "删除本行批次",
|
||||
"addBatch": "+ 增加拆分批次(交期 + 数量 + 备注)",
|
||||
"overWarning": "⚠ 以下行拆分合计超出未交(可保存,仅提醒):{detail}",
|
||||
"saveReply": "保存回复",
|
||||
"noValidBatches": "请至少为一行填写交期和数量",
|
||||
"saveSingleDone": "交期批次已保存(未通知,可继续修改)",
|
||||
@@ -1058,6 +1071,12 @@
|
||||
"notifyBatchDone": "已通知并锁定 {ok} 行,跳过 {skip} 行",
|
||||
"notifyFailedTitle": "通知发送失败,该行未锁定",
|
||||
"entryHint": "查单 → 填交期 → 通知业务员",
|
||||
"notNotified": "未通知"
|
||||
"notNotified": "未通知",
|
||||
"orderQtyLabel": "订单数量:{qty} {unit}",
|
||||
"batchMissingDate": "第 {batches} 批未填交期",
|
||||
"batchMissingQty": "第 {batches} 批未填数量",
|
||||
"qtyTotalMismatchLine": "各批次合计 {total},须等于订单数量 {qty}",
|
||||
"saveBlocked": "以下行填写未完成,无法保存:{detail}",
|
||||
"batchDuplicateDate": "同一订单单号:项次的不同批次交期时间不能相同(重复:{dates})"
|
||||
}
|
||||
}
|
||||
@@ -47,7 +47,8 @@
|
||||
"platformApps": "平台應用說明",
|
||||
"procurementContract": "採購合同審查",
|
||||
"trainingConfig": "培訓配置",
|
||||
"integrationConnector": "整合連接器"
|
||||
"integrationConnector": "整合連接器",
|
||||
"contractPayment": "合同付款预警"
|
||||
},
|
||||
"shippingOrderExtractionRuns": {
|
||||
"eyebrow": "唯讀執行診斷",
|
||||
@@ -1231,11 +1232,13 @@
|
||||
"name": "名稱",
|
||||
"code": "編碼",
|
||||
"company": "公司",
|
||||
"actions": "操作"
|
||||
"actions": "操作",
|
||||
"members": "Members"
|
||||
},
|
||||
"actions": {
|
||||
"edit": "編輯",
|
||||
"delete": "刪除"
|
||||
"delete": "刪除",
|
||||
"viewMembers": "View department members"
|
||||
},
|
||||
"fields": {
|
||||
"name": "名稱",
|
||||
@@ -1250,6 +1253,11 @@
|
||||
"confirmDelete": "確定刪除該部門嗎?",
|
||||
"msg": {
|
||||
"nameRequired": "部門名稱必填"
|
||||
},
|
||||
"members": {
|
||||
"title": "{name} Members",
|
||||
"count": "{count} members",
|
||||
"empty": "No members"
|
||||
}
|
||||
},
|
||||
"agent": {
|
||||
@@ -1787,7 +1795,8 @@
|
||||
"callbackUrl": "回呼URL",
|
||||
"homepageUrl": "應用主頁URL",
|
||||
"trustedDomain": "可信任網域",
|
||||
"publicBaseUrl": "外網 HTTPS 基地址"
|
||||
"publicBaseUrl": "外網 HTTPS 基地址",
|
||||
"userId": "User ID (user_id)"
|
||||
},
|
||||
"bindModes": {
|
||||
"match_rules": "按規則自動匹配",
|
||||
@@ -2083,7 +2092,10 @@
|
||||
"feedback_score": "評分",
|
||||
"feedback_comment": "評分備註",
|
||||
"negative_feedback_count": "負面反饋數",
|
||||
"actions": "操作"
|
||||
"actions": "操作",
|
||||
"feedback_module": "Feedback Module",
|
||||
"feedback_type": "Feedback Type",
|
||||
"source_page": "Source Page"
|
||||
},
|
||||
"tables": {
|
||||
"users": "用戶",
|
||||
@@ -2293,6 +2305,24 @@
|
||||
"90d": "近三月",
|
||||
"180d": "近半年",
|
||||
"365d": "近一年"
|
||||
},
|
||||
"feedbackValues": {
|
||||
"types": {
|
||||
"feature_suggestion": "Feature Suggestion",
|
||||
"issue_feedback": "Issue Feedback",
|
||||
"experience_optimization": "Experience Optimization"
|
||||
},
|
||||
"modules": {
|
||||
"knowledge_base": "Knowledge Base",
|
||||
"general": "General",
|
||||
"workflow": "Workflow",
|
||||
"account_permission": "Account & Permissions"
|
||||
},
|
||||
"pages": {
|
||||
"workspace": "Workspace",
|
||||
"chat": "Chat",
|
||||
"unknown": "Unknown"
|
||||
}
|
||||
}
|
||||
},
|
||||
"batchEdit": {
|
||||
@@ -2435,7 +2465,35 @@
|
||||
"voucherCheckNotifyMissing": "缺資料通知",
|
||||
"voucherCheckNotifyMissingHint": "總開關。缺件接收人請到 Chat「立帳憑證 → 通知設定」依檔案類型設定;排程選人只用於技術失敗告警。",
|
||||
"voucherCheckNotifyFailure": "失敗告警",
|
||||
"voucherCheckNotifyFailureHint": "技術失敗會發給下方「選擇通知人員」。"
|
||||
"voucherCheckNotifyFailureHint": "技術失敗會發給下方「選擇通知人員」。",
|
||||
"editTitle": "Edit schedule",
|
||||
"createTitle": "Add schedule",
|
||||
"name": "Schedule name",
|
||||
"namePlaceholder": "e.g. RoHS auto review schedule",
|
||||
"owner": "Schedule owner",
|
||||
"noUsers": "No users available",
|
||||
"selectOwner": "Select an owner",
|
||||
"faqHotAggregate": "FAQ hot aggregate",
|
||||
"querying": "Querying...",
|
||||
"testQuery": "Test query",
|
||||
"expandConfig": "Expand config",
|
||||
"collapseConfig": "Collapse config",
|
||||
"dataSourceSection": "Data source config",
|
||||
"waitSeconds": "Wait time (seconds)",
|
||||
"noAgents": "No agents available",
|
||||
"agentDisabled": "Disabled",
|
||||
"minuteInterval": "Minute interval",
|
||||
"minuteOfHour": "Minute of hour",
|
||||
"weekday": "Weekday",
|
||||
"notifyEnabled": "Enable notifications",
|
||||
"selectNotifyUsers": "Select notification recipients...",
|
||||
"enableOnCreate": "Enable after creation",
|
||||
"cancel": "Cancel",
|
||||
"saving": "Saving...",
|
||||
"saveChanges": "Save changes",
|
||||
"createSchedule": "Create schedule",
|
||||
"dynamicParamsSearchPlaceholder": "搜尋選項(姓名/工號/部門)…",
|
||||
"dynamicParamsSearchNoMatch": "沒有符合的選項"
|
||||
},
|
||||
"status": {
|
||||
"all": "全部狀態",
|
||||
@@ -2472,7 +2530,25 @@
|
||||
"noKbGroupHint": "請先在排程編輯中啟用知識庫同步並選擇分組。",
|
||||
"kbSyncNoStatus": "已請求寫入知識庫,但未返回同步狀態,請檢查排程知識庫配置或後端日誌。",
|
||||
"baseFetchSqlReadonly": "基礎查詢 SQL (base_fetch_sql) — 唯讀",
|
||||
"limitRows": "限制行數 (limit)"
|
||||
"limitRows": "限制行數 (limit)",
|
||||
"title": "Test run — {name}",
|
||||
"subtitle": "Edit WHERE clause, limit rows, run quickly and inspect each step",
|
||||
"close": "Close",
|
||||
"running": "Running...",
|
||||
"start": "Start test run",
|
||||
"waitingHint": "Dify calls may take a while, please wait...",
|
||||
"total": "Total",
|
||||
"success": "Success",
|
||||
"failed": "Failed",
|
||||
"skipped": "Skipped",
|
||||
"limitSummary": "Limit {limit} rows | Dify Agent ID: {agentId}",
|
||||
"noAgent": "None",
|
||||
"stepLogs": "Step logs",
|
||||
"viewSql": "View execution SQL",
|
||||
"errors": "Errors ({count})",
|
||||
"queryResult": "Query result",
|
||||
"resultSummary": "{total} total, showing {showing}",
|
||||
"viewGeneratedSql": "View generated SQL"
|
||||
},
|
||||
"deleteDialogTitle": "刪除排程",
|
||||
"excelExportFailedHint": "庫存來源已成功,但排程 Excel 生成失敗",
|
||||
@@ -2483,7 +2559,18 @@
|
||||
"rawInventoryZipWecomHint": "本通知含原始庫存包,請點擊下方按鈕手動下載。",
|
||||
"inventoryRawZip": "原始庫存",
|
||||
"columns": {
|
||||
"skippedCount": "跳過"
|
||||
"skippedCount": "跳過",
|
||||
"runNo": "Run ID",
|
||||
"startedAt": "Started at",
|
||||
"finishedAt": "Finished at",
|
||||
"status": "Status",
|
||||
"totalCount": "Processed",
|
||||
"successCount": "Success",
|
||||
"failedCount": "Failed",
|
||||
"excelExportFailedHint": "Inventory sources succeeded, but schedule Excel export failed",
|
||||
"wecomNotified": "WeCom notify",
|
||||
"detail": "Detail",
|
||||
"log": "Log"
|
||||
},
|
||||
"deleteConfirmMessage": "確認刪除排程「{name}」?",
|
||||
"msg": {
|
||||
@@ -2497,7 +2584,8 @@
|
||||
"runNowWaitTimeout": "等待執行完成逾時(約 15 分鐘),已停止自動重新整理,可手動查詢記錄",
|
||||
"downloadExcelFailed": "下載 Excel 失敗",
|
||||
"downloadInventoryRawZipFailed": "下載原始庫存包失敗",
|
||||
"deleteFailed": "刪除排程失敗"
|
||||
"deleteFailed": "刪除排程失敗",
|
||||
"testQueryFailed": "Test query failed"
|
||||
},
|
||||
"difySnapshot": {
|
||||
"title": "Dify 執行快照(審計)",
|
||||
@@ -2509,6 +2597,65 @@
|
||||
"notConfiguredUseDefault": "(未配置,使用 Dify 編排內預設提示詞)",
|
||||
"notEnabledTest": "本次測試未啟用 Dify",
|
||||
"notEnabledRun": "本次執行未啟用 Dify Agent"
|
||||
},
|
||||
"overviewTitle": "Schedule Management Overview",
|
||||
"workbenchTitle": "Schedule Management Workbench",
|
||||
"overviewSubtitle": "Click a schedule card to open the workbench.",
|
||||
"workbenchSubtitle": "Schedule list on the left, run records on the right.",
|
||||
"refresh": "Refresh schedules",
|
||||
"stats": {
|
||||
"total": "Total schedules",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"running": "Running"
|
||||
},
|
||||
"sectionOverview": "Schedule Management Overview",
|
||||
"switchByCard": "Switch by card",
|
||||
"addTitle": "Add schedule",
|
||||
"addHint": "Click the button to fill in schedule fields in a dialog.",
|
||||
"addButton": "Add schedule",
|
||||
"emptyList": "No schedules yet. Create one first.",
|
||||
"loading": "Loading...",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"scheduleNo": "No.",
|
||||
"config": "Config",
|
||||
"owner": "Owner",
|
||||
"lastRun": "Last run",
|
||||
"nextRun": "Next run",
|
||||
"nextRunDisabled": "Disabled",
|
||||
"nextRunPending": "Not computed (save or restart schedule)",
|
||||
"noSelection": "No schedule selected",
|
||||
"selectedHint": "Selected schedule · Last run {time}",
|
||||
"runBatches": "Run batches",
|
||||
"totalProcessed": "Total processed",
|
||||
"totalSuccess": "Total success",
|
||||
"totalFailed": "Total failed",
|
||||
"listTitle": "Schedule list",
|
||||
"recordsTitle": "{name} · Run records",
|
||||
"recordsSubtitle": "Run record details are shown below.",
|
||||
"noSelectionHint": "Select a schedule from the list on the left first.",
|
||||
"filterStart": "Start",
|
||||
"filterEnd": "End",
|
||||
"query": "Search",
|
||||
"reset": "Reset",
|
||||
"queryingRuns": "Loading records...",
|
||||
"noRunRecords": "No run records yet.",
|
||||
"runLogs": "Run logs",
|
||||
"stepsCount": "{count} steps",
|
||||
"viewDetail": "View details",
|
||||
"resizeColumn": "Drag to resize {label} column",
|
||||
"notified": "Notified",
|
||||
"notifyError": "Error",
|
||||
"download": "Download",
|
||||
"log": "Log",
|
||||
"actions": {
|
||||
"edit": "Edit",
|
||||
"start": "Start",
|
||||
"pause": "Pause",
|
||||
"run": "Run",
|
||||
"test": "Test",
|
||||
"delete": "Delete"
|
||||
}
|
||||
},
|
||||
"shippingIdentityRules": {
|
||||
@@ -4153,7 +4300,8 @@
|
||||
"rejected": "已駁回",
|
||||
"needs_review": "待複核"
|
||||
},
|
||||
"confirmRequiresNativePreview": "請先載入原生 PDF 預覽後再確認視覺綁定"
|
||||
"confirmRequiresNativePreview": "請先載入原生 PDF 預覽後再確認視覺綁定",
|
||||
"createBlockersTitle": "创建前阻断项"
|
||||
},
|
||||
"xfaAutoMark": {
|
||||
"title": "自動標記建議",
|
||||
@@ -5011,7 +5159,18 @@
|
||||
"review": "待複核"
|
||||
},
|
||||
"sessionHint": "本期不使用對話和歷史會話,請從上方 Tab 查看台帳。",
|
||||
"moreActions": "更多"
|
||||
"moreActions": "更多",
|
||||
"reparse": "重新解析合同原文",
|
||||
"reparseSuccess": "已使用附件“{attachment}”重新解析",
|
||||
"reparseFailed": "重新解析合同失败",
|
||||
"reviewTitle": "待确认合同",
|
||||
"reviewSubtitle": "未匹配设备采购合同同义标题组、付款比例校验失败或关键字段冲突的合同不会进入付款预警,请下载原文核对。",
|
||||
"reviewSearchPlaceholder": "合同编号、采购编号或供应商",
|
||||
"reviewLoadFailed": "待确认合同加载失败",
|
||||
"reviewContractWorkflow": "合同号 / 流程编号",
|
||||
"reviewReason": "待确认原因",
|
||||
"reviewFallbackIssue": "解析结果待人工确认",
|
||||
"reviewEmpty": "暂无待确认合同"
|
||||
},
|
||||
"contractPaymentReview": {
|
||||
"title": "待確認合約",
|
||||
@@ -5364,7 +5523,17 @@
|
||||
"trainingAgentRequired": "未找到員工培訓 Agent,無法建立影片資源",
|
||||
"videoUploaded": "培訓影片已上傳並加入配置資源",
|
||||
"videoUploadFailed": "培訓影片上傳失敗"
|
||||
}
|
||||
},
|
||||
"eyebrow": "培训运营中心",
|
||||
"pageHint": "配置变更将在保存后生效",
|
||||
"footerHint": "所有配置项均支持保存后继续调整",
|
||||
"stats": {
|
||||
"total": "配置总数",
|
||||
"published": "已发布",
|
||||
"resources": "当前资料",
|
||||
"levels": "已配置级别"
|
||||
},
|
||||
"questionBankTitle": "入职培训题库"
|
||||
},
|
||||
"integrationConnector": {
|
||||
"title": "整合連接器",
|
||||
|
||||
@@ -129,7 +129,17 @@
|
||||
"notInScopeAction": "請管理員到企業微信後台,把該成員或其所在部門加入該應用的可見範圍。",
|
||||
"retryLogin": "請重新發起一次企業微信登入。",
|
||||
"contactAdmin": "如需協助,請聯繫管理員。"
|
||||
}
|
||||
},
|
||||
"newPassword": "New Password",
|
||||
"passwordResetSuccess": "Password reset successfully. Please login.",
|
||||
"featuredAgents": "Featured AI Agents",
|
||||
"pleaseLoginFirst": "Please login to access this agent.",
|
||||
"userNotFound": "User not found",
|
||||
"incorrectPassword": "Incorrect password",
|
||||
"accountDisabled": "Account is disabled",
|
||||
"dbConnectionFailed": "Database connection failed. Please check if the database service is running.",
|
||||
"internalError": "Internal server error. Please try again later.",
|
||||
"passwordResetEmailSent": "If the account exists, a reset link has been sent to your email."
|
||||
},
|
||||
"landing": {
|
||||
"hero": {
|
||||
@@ -156,7 +166,8 @@
|
||||
"realName": "真實姓名",
|
||||
"employeeId": "工號",
|
||||
"phone": "手機號"
|
||||
}
|
||||
},
|
||||
"emailRequired": "Email is required"
|
||||
},
|
||||
"resetPassword": {
|
||||
"title": "重設密碼",
|
||||
|
||||
@@ -1187,7 +1187,11 @@
|
||||
"departmentLabel": "部門",
|
||||
"allStatuses": "全部狀態",
|
||||
"allDepartments": "全部部門",
|
||||
"noLimit": "不限"
|
||||
"noLimit": "不限",
|
||||
"typeLabel": "培训类型",
|
||||
"allTypes": "全部培训",
|
||||
"typeOnboarding": "入职培训",
|
||||
"typeSafety": "安全培训"
|
||||
},
|
||||
"columns": {
|
||||
"joinDate": "入職日期",
|
||||
@@ -1542,6 +1546,75 @@
|
||||
"哪些員工還沒有完成培訓?",
|
||||
"我想查看本月培訓成績統計"
|
||||
]
|
||||
},
|
||||
"safety": {
|
||||
"tabs": {
|
||||
"onboarding": "入职培训",
|
||||
"safety": "安全培训"
|
||||
},
|
||||
"progressTitle": "三级安全教育培训进度",
|
||||
"progressHint": "按国家安全生产法要求,新员工须依次完成公司级、部门级、班组级三级安全教育。学完三级的全部资料/视频后,进入1次统一考试,≥90分及格方可结业。",
|
||||
"steps": {
|
||||
"company": "01 · 公司级",
|
||||
"department": "02 · 部门级",
|
||||
"team": "03 · 班组级",
|
||||
"exam": "04 · 统一考试"
|
||||
},
|
||||
"stepStatus": {
|
||||
"watchVideo": "观看视频",
|
||||
"examReq": "≥90 分及格",
|
||||
"completed": "已完成",
|
||||
"inProgress": "进行中",
|
||||
"pending": "待学习",
|
||||
"examPending": "需先学完三级"
|
||||
},
|
||||
"videoPanelTitle": "{level} 第{step}步",
|
||||
"videoPanelSubtitle": "观看安全教育培训视频",
|
||||
"videoPanelPassLine": "及格线:≥ 90分方可进入考试",
|
||||
"videoTitle": "部门安全生产管理制度宣导",
|
||||
"videoDuration": "时长 35 分钟 · 已完成 12%",
|
||||
"materialsTitle": "培训资料清单 (共 3 个文件/视频)",
|
||||
"materials": {
|
||||
"m1": "部门安全生产管理制度宣导.mp4",
|
||||
"m2": "危险化学品安全操作规程.pdf",
|
||||
"m3": "消防应急疏散演练视频.mp4"
|
||||
},
|
||||
"flowTitle": "学习与考试流程",
|
||||
"flowSteps": {
|
||||
"company": "公司级安全教育",
|
||||
"department": "部门级安全教育",
|
||||
"team": "班组级安全教育",
|
||||
"exam": "统一考试 ≥90分"
|
||||
},
|
||||
"summaryTitle": "培训总结",
|
||||
"summaryContent": {
|
||||
"company": [
|
||||
"1公司教育:国家有关安全生产方针、政策、法律、法规和有关规定。",
|
||||
"2公司安全生产特点、有关安全管理标准和制度、安全生产情况及安全生产基本知识。",
|
||||
"3企业安全生产规章制度、安全纪律和劳动纪律。",
|
||||
"4安全生产和职业卫生的基本知识(防机械伤害、安全用电、防火防爆、防尘防毒、急救、危险因素、应急预案等)。",
|
||||
"5作业场所和工作岗位存在的危险因素、防范措施及事故应急措施;",
|
||||
"6安全生产正反方面的经验和教训,及重大事故安全案例教训。",
|
||||
"7从业人员安全生产权利和义务;"
|
||||
],
|
||||
"department": [
|
||||
"1部门概况、生产或作业特点、可能存在的不安全因素及必须遵守的事项。",
|
||||
"2公司、部门安全生产状况、管理制度规定和安全注意事项。",
|
||||
"3所从事工种的安全技术操作规程、安全职责、操作技能及强制性标准。",
|
||||
"4一般的机械设备、电气、触电、中暑、中毒急救安全基础知识",
|
||||
"5作业场所和工作岗位存在的风险、部门危险因素分布、安全通道、职业危害、伤亡事故、应急救缓预案内容。防火、防毒、防尘、防爆知识及紧急情况安全处置、自救互救、急救方法、疏散和现场紧急情况的处理。",
|
||||
"6部门安全设施(工具)、安全警示标志、急救器材、消防器材和个人防护用品的性能、使用方法和维护。",
|
||||
"7部门以往发生的典型安全和职业危害事故教育、岗位预防措施等。",
|
||||
"8有关事故案例。"
|
||||
],
|
||||
"team": [
|
||||
"1本班组(岗位)生产工艺流程、作业特点和注意事项、安全操作规程及细则。",
|
||||
"2本班组安全活动制度及纪律、岗位之间工作衔接配合的安全与职业卫生事项。",
|
||||
"3本班组(岗位)设备、工具的性能和安全装置、安全设施、监控仪器的作用原理、正确使用方法、防护用品及消防器材的使用和保管方法等。",
|
||||
"4危害因素及防范、应急措施,本岗位易发生事故的不安全因素及其防范对策,本工种事故案例剖析。",
|
||||
"5本岗位发现紧急情况应采取的应救措施和报告办法。"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"shippingOrderReview": {
|
||||
@@ -2677,7 +2750,8 @@
|
||||
"inventory_source_unresolved": "庫存源未解析",
|
||||
"effective_reservation_missing": "缺少有效的預約單號",
|
||||
"unknown": "系統發現一項需要人工確認的內容"
|
||||
}
|
||||
},
|
||||
"autoCreateBlocked": "人工建单资格已通过,但自动建单资格未通过;确认后将由人工推进。"
|
||||
},
|
||||
"inventoryCandidates": {
|
||||
"title": "人工選擇庫存源",
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
"ORDER_DELIVERY_REPLY.BATCHES_REQUIRED": "請至少填寫一條交期批次。",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_COUNT_EXCEEDED": "單行批次數量超過上限。",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_INVALID": "批次格式不合法,請檢查交期、數量或備註。",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_QTY_TOTAL_MISMATCH": "各批次數量合計必須等於訂單數量,請調整後重新保存。",
|
||||
"SHIPPING.NOTICE_ODM_CHOICE_INVALID": "所選 ODM ID 不在當前可行候選內,請重新選擇。",
|
||||
"SHIPPING.FULFILLMENT_POLICY_INVALID": "貨代履約策略或欄位能力綁定無效。",
|
||||
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "找不到貨代履約策略。",
|
||||
|
||||
@@ -171,6 +171,20 @@
|
||||
},
|
||||
"msg": {
|
||||
"downloadExcelFailed": "下載 Excel 失敗"
|
||||
},
|
||||
"batch": {
|
||||
"selectAll": "Select all notices on this page",
|
||||
"selected": "{count} selected",
|
||||
"download": "Download Excel",
|
||||
"confirm": "Confirm uploaded",
|
||||
"rpa": "Start RPA upload",
|
||||
"downloadStarted": "Downloading the selected shipping-notice Excel files.",
|
||||
"success": "{action}: {count} notice(s) processed.",
|
||||
"partialResult": "{action}: {accepted} accepted and {blocked} blocked. Refresh to see the latest notice status.",
|
||||
"lines": "Lines",
|
||||
"parts": "Parts",
|
||||
"quantities": "Shipment / available",
|
||||
"uploadStatus": "Freight status"
|
||||
}
|
||||
},
|
||||
"receiptReports": {
|
||||
@@ -971,6 +985,7 @@
|
||||
"downloadExcelFailed": "下載 Excel 失敗"
|
||||
},
|
||||
"orderDeliveryReply": {
|
||||
"deepLinkLocated": "已定位到通知對應的訂單行 {order}:{item}",
|
||||
"search": "查詢",
|
||||
"reset": "重置",
|
||||
"saving": "儲存中…",
|
||||
@@ -983,8 +998,8 @@
|
||||
"syncDone": "同步完成,共 {count} 行",
|
||||
"syncSkipped": "已有同步正在進行,請稍後再試",
|
||||
"syncFailedTitle": "同步失敗,已保留上次快照",
|
||||
"filterKeyword": "關鍵詞(訂單 / 產品 / 客戶)",
|
||||
"filterKeywordPh": "訂單單號、產品編號、品名、客戶料號、客戶編號均可搜尋",
|
||||
"filterKeyword": "關鍵詞(訂單 / 產品 / 客戶 / 業務員 / 回覆人員)",
|
||||
"filterKeywordPh": "訂單單號、產品編號、品名、客戶料號、客戶編號、業務員、交期回覆人員均可搜尋",
|
||||
"filterOrderDate": "訂單日期",
|
||||
"filterStatus": "交期回覆狀態",
|
||||
"statusAll": "全部",
|
||||
@@ -1035,14 +1050,12 @@
|
||||
"modalTitleBatch": "聯合回覆交期({count} 行)",
|
||||
"quickDate": "快速統一交期",
|
||||
"applyQuickDate": "應用到全部",
|
||||
"modalHint": "可填 1 個交期,或點「增加批次」拆成多個「交期+數量」;允許超額,僅提醒不攔截。",
|
||||
"modalHint": "可填 1 個交期,或點「增加批次」拆成多個「交期+數量」;各批次數量合計須等於訂單數量。",
|
||||
"itemLabel": "項次 {item}",
|
||||
"undeliveredLabel": "未交 {remain} {unit}",
|
||||
"qtyPh": "數量",
|
||||
"remarkPh": "備註(可選)",
|
||||
"removeBatch": "刪除本行批次",
|
||||
"addBatch": "+ 增加拆分批次(交期 + 數量 + 備註)",
|
||||
"overWarning": "⚠ 以下行拆分合計超出未交(可儲存,僅提醒):{detail}",
|
||||
"saveReply": "儲存回覆",
|
||||
"noValidBatches": "請至少為一行填寫交期和數量",
|
||||
"saveSingleDone": "交期批次已儲存(未通知,可繼續修改)",
|
||||
@@ -1058,6 +1071,12 @@
|
||||
"notifyBatchDone": "已通知並鎖定 {ok} 行,跳過 {skip} 行",
|
||||
"notifyFailedTitle": "通知發送失敗,該行未鎖定",
|
||||
"entryHint": "查單 → 填交期 → 通知業務員",
|
||||
"notNotified": "未通知"
|
||||
"notNotified": "未通知",
|
||||
"orderQtyLabel": "訂單數量:{qty} {unit}",
|
||||
"batchMissingDate": "第 {batches} 批未填交期",
|
||||
"batchMissingQty": "第 {batches} 批未填數量",
|
||||
"qtyTotalMismatchLine": "各批次合計 {total},須等於訂單數量 {qty}",
|
||||
"saveBlocked": "以下行填寫未完成,無法保存:{detail}",
|
||||
"batchDuplicateDate": "同一訂單單號:項次的不同批次交期時間不能相同(重複:{dates})"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user