fix(contract-plan): 采购合同请款支持根据公司查不同账套

This commit is contained in:
sophie committed 2026-09-24 16:49:28 +08:00
1 parent 6867aeb90c
commit 89c8da2990
20 files changed
+381 -116

No files matched your search

+4 -1
View File
@@ -6,7 +6,7 @@ backend/app/api/contract_payment.py
逻辑:页面查询合同、节点、本周待发送摘要、四张汇总卡和周汇总批次;失败批次返回可展示原因。同步和预警操作入队,避免请求线程执行外部系统和企微调用;发送后可按 Job 查询是否真正完成。
下载和单合同重解析走 read_contract_attachment_bytes:原文还在则直接读,被临时清理删掉则按附件 ID 从 OA/DMS 重新下载。
待确认合同的人工复核走 apply_manual_review:比例合计 100% 后改为已解析并进入台账。
合同序列化时对 parse_issues 去重,避免 MinerU 重复抽取把同一原因展示多遍。
合同序列化时对 parse_issues 去重,避免 MinerU 重复抽取把同一原因展示多遍;同时返回 OA 公司及对应 ERP 账套。
鉴权:查询接口要求平台 admin 或持有 `agent_code=contract_payment` 的 Agent 授权;
同步/扫描/周汇总发送仅 `role=admin`。
"""
@@ -38,6 +38,7 @@ from app.services.contract_payment.ledger_focus import (
apply_ledger_focus,
ledger_focus_counts,
)
from app.services.contract_payment.erp_payment_service import erp_schema_for_company
from app.services.contract_payment.parse_service import unique_parse_issues
from app.services.contract_payment.review_service import apply_manual_review
from app.services.contract_payment.sync_service import (
@@ -159,6 +160,8 @@ def _serialize_contract(row: ContractPaymentContract) -> dict:
"contract_no": row.contract_no,
"workflow_no": row.workflow_no,
"purchase_order_no": row.purchase_order_no,
"company_name": row.company_name,
"erp_schema": erp_schema_for_company(row.company_name),
"supplier_name": row.supplier_name,
"total_amount": str(row.total_amount) if row.total_amount is not None else None,
"currency": row.currency,
+2
View File
@@ -33,6 +33,8 @@ class ContractPaymentContract(Base):
contract_no: Mapped[Optional[str]] = mapped_column(String(128), nullable=True)
purchase_order_no: Mapped[Optional[str]] = mapped_column(String(128), nullable=True)
supplier_name: Mapped[Optional[str]] = mapped_column(String(255), nullable=True)
# OA 合同申请单「公司」。付款事实按该公司映射到 ERP 账套,空值按 HXJM 处理。
company_name: Mapped[Optional[str]] = mapped_column(String(255), nullable=True)
applicant_name: Mapped[Optional[str]] = mapped_column(String(128), nullable=True)
total_amount: Mapped[Optional[Decimal]] = mapped_column(Numeric(18, 2), nullable=True)
currency: Mapped[Optional[str]] = mapped_column(String(16), nullable=True)
@@ -34,7 +34,7 @@ from app.services.integrations.wecom.notify import (
send_wecom_file_message,
upload_wecom_temp_media,
)
from app.services.contract_payment.erp_payment_service import fetch_paid_records, resolve_paid_node_dates
from app.services.contract_payment.erp_payment_service import erp_schema_for_company, fetch_paid_records, resolve_paid_node_dates
from app.services.contract_payment.supervisor_oa_service import SupervisorMatrixCache
from app.services.schedule.timezone_util import compute_next_run_at
@@ -77,21 +77,22 @@ def generate_alerts(*, today: date | None = None, send: bool = False) -> dict[st
.filter(ContractPaymentNode.status == "active", ContractPaymentContract.status == "active")
.all()
)
paid_records = fetch_paid_records(
contract.purchase_order_no
for _node, contract in rows
if _node.node_type in {"prepayment", "shipment"}
)
payable_orders = [
(str(contract.purchase_order_no or "").strip(), contract.company_name)
for node, contract in rows
if node.node_type in {"prepayment", "shipment"} and str(contract.purchase_order_no or "").strip()
]
paid_records = fetch_paid_records(payable_orders)
paid_node_dates: dict[int, str | None] = {}
nodes_by_purchase_order: dict[str, list[ContractPaymentNode]] = defaultdict(list)
nodes_by_ledger: dict[tuple[str, str], list[ContractPaymentNode]] = defaultdict(list)
for node, contract in rows:
purchase_order_no = str(contract.purchase_order_no or "").strip()
if node.node_type in {"prepayment", "shipment"} and purchase_order_no:
nodes_by_purchase_order[purchase_order_no].append(node)
for purchase_order_no, payment_nodes in nodes_by_purchase_order.items():
nodes_by_ledger[(erp_schema_for_company(contract.company_name), purchase_order_no)].append(node)
for ledger_key, payment_nodes in nodes_by_ledger.items():
paid_node_dates.update(resolve_paid_node_dates(
[(node.id, node.node_type, node.amount) for node in payment_nodes],
paid_records.get(purchase_order_no, []),
paid_records.get(ledger_key, []),
))
for node, contract in rows:
anchor = _anchor_date(contract=contract, node=node)
@@ -3,7 +3,7 @@ backend/app/services/contract_payment/erp_payment_service.py
用途:从 ERP Oracle `apa_file` 读取采购单付款记录,作为预付款和出货款的付款完成事实来源。
依赖:oracledb、Text2SQLService 的 Oracle 客户端初始化能力及 Flask 配置。
逻辑:仅执行只读查询;只接受 `apa00='15'`(厂商预付款作业)且 `apa41='Y'`、`apa63=1` 的记录,并按采购单收集 `apa34f` 供明细和阶段匹配使用。
逻辑:按 OA「公司」选择账套后只读查询 `{账套}.apa_file`;只接受 `apa00='15'`(厂商预付款作业)且 `apa41='Y'`、`apa63=1` 的记录,并按采购单收集 `apa34f` 供明细和阶段匹配使用。
"""
from __future__ import annotations
@@ -17,6 +17,51 @@ from flask import current_app
_PAYMENT_STAGE_ORDER = {"prepayment": 1, "shipment": 2}
# OA 合同申请单「公司」到 ERP 账套。未列出的公司默认 HXJM。标识符只允许来自这个白名单。
_SCHEMA_BY_COMPANY = {
"无锡和宏智散热科技有限公司": "WZHHZ",
"和泰科技(吴江)有限公司": "HTT",
"苏州和信精密科技有限公司": "HXJM",
}
_DEFAULT_ERP_SCHEMA = "HXJM"
_ALLOWED_ERP_SCHEMAS = frozenset({"HXJM", "WZHHZ", "HTT"})
def normalize_company_name(company_name: str | None) -> str:
"""压缩空白并把全角括号改成半角,便于和账套映射表精确比对。"""
text = "".join(str(company_name or "").split())
return text.replace("(", "(").replace(")", ")")
def erp_schema_for_company(company_name: str | None) -> str:
"""
按 OA 合同申请单上的公司确定 ERP 账套。
核心逻辑:无锡和宏智散热科技有限公司用 WZHHZ,和泰科技(吴江)有限公司用 HTT,
苏州和信精密科技有限公司以及其余公司用 HXJM。公司为空时也用 HXJM,保持存量合同行为。
Args:
company_name: OA「公司」字段原文。
Returns:
白名单内的账套代码。
"""
schema = _SCHEMA_BY_COMPANY.get(normalize_company_name(company_name), _DEFAULT_ERP_SCHEMA)
return schema if schema in _ALLOWED_ERP_SCHEMAS else _DEFAULT_ERP_SCHEMA
def _paid_records_sql(schema: str, placeholders: str) -> str:
"""拼出指定账套的只读付款 SQL。schema 必须已在白名单内,禁止把公司名称拼进 SQL。"""
if schema not in _ALLOWED_ERP_SCHEMAS:
raise ValueError(f"unsupported erp schema: {schema}")
return f"""
SELECT TRIM(apaud03) AS purchase_order_no,
NVL(apa34f, 0) AS paid_amount,
TRUNC(apa02) AS paid_date
FROM {schema}.apa_file
WHERE TRIM(apaud03) IN ({placeholders})
AND TRIM(TO_CHAR(apa00)) = '15'
AND UPPER(TRIM(apa41)) = 'Y'
AND TRIM(TO_CHAR(apa63)) = '1'
"""
@dataclass(frozen=True)
@@ -28,20 +73,27 @@ class ErpPaidRow:
paid_date: str | None
def fetch_paid_records(purchase_order_nos: Iterable[str]) -> dict[str, list[ErpPaidRow]]:
def fetch_paid_records(orders: Iterable[tuple[str, str | None]]) -> dict[tuple[str, str], list[ErpPaidRow]]:
"""
查询采购单已完成付款记录(含付款日期)。
按公司对应的 ERP 账套查询采购单已完成付款记录(含付款日期)。
AI 触发时机:合同付款预警每日扫描前,需要判断预付款/出货款是否已经完成付款。
核心逻辑:查询 `apa_file`,先按 `apa00='15'` 限定为「厂商预付款作业」,再过滤 `apa41='Y'` 和 `apa63=1`,按 `apaud03` 收集 `apa34f`(金额)与 `apa02`(付款日期)。
核心逻辑:公司映射到 HXJM / WZHHZ / HTT 后,分别查询该账套的 `apa_file`;
先按 `apa00='15'` 限定为「厂商预付款作业」,再过滤 `apa41='Y'` 和 `apa63=1`,按 `apaud03` 收集 `apa34f` 与 `apa02`。
某一账套查询失败只影响该账套,其它账套继续。
Args:
purchase_order_nos: 待查询的采购单号集合;空集合不会连接 ERP。
orders: `(采购单号, OA公司)`;公司为空时按 HXJM。空集合不会连接 ERP。
Returns:
采购单号到合格付款记录列表的映射。ERP 未配置、驱动不可用或查询失败时返回空映射,
`(账套, 采购单号)` 到合格付款记录列表的映射。ERP 未配置或驱动不可用时返回空映射,
由调用方按未付款处理,避免错误停止预警。
"""
normalized = sorted({str(value or "").strip() for value in purchase_order_nos if str(value or "").strip()})
if not normalized:
grouped: dict[str, set[str]] = {}
for purchase_order_no, company_name in orders:
po = str(purchase_order_no or "").strip()
if not po:
continue
grouped.setdefault(erp_schema_for_company(company_name), set()).add(po)
if not grouped:
return {}
dsn = str(current_app.config.get("CONTRACT_PAYMENT_ERP_DSN") or "").strip()
username = str(current_app.config.get("CONTRACT_PAYMENT_ERP_USERNAME") or "").strip()
@@ -71,33 +123,33 @@ def fetch_paid_records(purchase_order_nos: Iterable[str]) -> dict[str, list[ErpP
timeout = max(int(current_app.config.get("CONTRACT_PAYMENT_ERP_TIMEOUT_SECONDS") or 30), 5)
connection.call_timeout = timeout * 1000
cursor = connection.cursor()
placeholders = ", ".join(f":po_{index}" for index in range(len(normalized)))
# [STEP 1] 只取「厂商预付款作业」类型的付款记录:apa00='15' 为厂商预付款作业标志,
# 过滤掉其它作业类型(如对账/其它付款),避免把非预付款的付款误匹配到预付款/出货款节点;
# 后再叠加 apa41='Y'(有效)与 apa63=1(已完成付款)两层过滤,仅统计真正完成的预付款。
# apaud03 varchar2 40 采购单号
sql = f"""
SELECT TRIM(apaud03) AS purchase_order_no,
NVL(apa34f, 0) AS paid_amount,
TRUNC(apa02) AS paid_date
FROM apa_file
WHERE TRIM(apaud03) IN ({placeholders})
AND TRIM(TO_CHAR(apa00)) = '15'
AND UPPER(TRIM(apa41)) = 'Y'
AND TRIM(TO_CHAR(apa63)) = '1'
"""
cursor.execute(sql, {f"po_{index}": value for index, value in enumerate(normalized)})
result: dict[str, list[ErpPaidRow]] = {}
for raw_po, raw_amount, raw_paid_date in cursor:
po = str(raw_po or "").strip()
if not po:
continue
result: dict[tuple[str, str], list[ErpPaidRow]] = {}
# [STEP 1] 同一连接按账套分别查 `{账套}.apa_file`。登录用户是 hxjm,未加前缀时只会读到 HXJM。
# apa00='15' 限定厂商预付款作业,再叠加 apa41='Y' 与 apa63=1,避免把其它付款记到预付款/出货款。
for schema, purchase_orders in grouped.items():
normalized = sorted(purchase_orders)
placeholders = ", ".join(f":po_{index}" for index in range(len(normalized)))
try:
amount = Decimal(str(raw_amount or "0"))
except (InvalidOperation, TypeError, ValueError):
continue
paid_date = getattr(raw_paid_date, "isoformat", lambda: None)().split("T")[0] if raw_paid_date else None
result.setdefault(po, []).append(ErpPaidRow(amount=amount, paid_date=paid_date))
cursor.execute(
_paid_records_sql(schema, placeholders),
{f"po_{index}": value for index, value in enumerate(normalized)},
)
for raw_po, raw_amount, raw_paid_date in cursor:
po = str(raw_po or "").strip()
if not po:
continue
try:
amount = Decimal(str(raw_amount or "0"))
except (InvalidOperation, TypeError, ValueError):
continue
paid_date = getattr(raw_paid_date, "isoformat", lambda: None)().split("T")[0] if raw_paid_date else None
result.setdefault((schema, po), []).append(ErpPaidRow(amount=amount, paid_date=paid_date))
except Exception as exc:
code = getattr(exc, "code", None) or getattr(exc, "full_code", None)
current_app.logger.warning(
"合同付款预警:账套 %s 付款查询失败,该账套按未付款处理,error_type=%s code=%s message=%s",
schema, type(exc).__name__, code, str(exc) or getattr(exc, "message", ""),
)
return result
except Exception as exc:
# 记录具体 Oracle 错误码(如 ORA-01017/00942/12514)与消息,便于定位账号权限/服务名问题;不输出密码。
@@ -117,10 +169,10 @@ def fetch_paid_records(purchase_order_nos: Iterable[str]) -> dict[str, list[ErpP
pass
def fetch_paid_amounts(purchase_order_nos: Iterable[str]) -> dict[str, list[Decimal]]:
"""查询采购单已完成付款金额列表(兼容旧调用方)。"""
records = fetch_paid_records(purchase_order_nos)
return {po: [row.amount for row in rows] for po, rows in records.items()}
def fetch_paid_amounts(orders: Iterable[tuple[str, str | None]]) -> dict[tuple[str, str], list[Decimal]]:
"""查询各账套采购单已完成付款金额列表。"""
records = fetch_paid_records(orders)
return {key: [row.amount for row in rows] for key, rows in records.items()}
def _select_match(
@@ -676,7 +676,8 @@ class ContractOaClient:
"""
解析合同申请单表格与附件区域。
截图确认的字段名为“流程编号、采购单号、合同单位、合同金额、合同书币别、合同生效日期、约定到货日期”;
截图确认的字段名为“流程编号、公司、采购单号、合同单位、合同金额、合同书币别、合同生效日期、约定到货日期”;
「公司」决定 ERP 账套,「合同单位」是供应商,两者不能混用。
解析保留原始 labels,便于首次联调快速发现同义字段变化。
"""
tree = _html_tree(page)
@@ -708,6 +709,7 @@ class ContractOaClient:
"contract_no": contract_no,
"workflow_no": workflow_no,
"purchase_order_no": _field_value(labels, "采购单号") or _purchase_order_no_from_title(_field_value(labels, "标题")),
"company_name": _field_value(labels, "公司"),
"supplier_name": _field_value(labels, "合同单位", "供应商"),
"applicant_name": _field_value(labels, "申请人", "申请人员", "申请人姓名"),
"total_amount": total_amount,
@@ -807,6 +809,7 @@ class ContractOaClient:
"contract_no": detail.get("contract_no") or None,
"workflow_no": detail.get("workflow_no") or process_id,
"purchase_order_no": detail.get("purchase_order_no"),
"company_name": detail.get("company_name"),
"supplier_name": detail.get("supplier_name"),
"applicant_name": detail.get("applicant_name"),
"total_amount": detail.get("total_amount"),
@@ -907,12 +910,43 @@ def _pick(row: dict[str, Any], *keys: str) -> str:
return ""
def _cell_text(cell: Any) -> str:
"""
读取表单单元格的展示值。
核心逻辑:下拉框的 HTML 会带上全部选项。只取 `option selected`;没有 selected 时,
用同格隐藏 input 的 value 对上 option 的 value。普通文本格仍拼接可见文字。
有下拉框但无法确定选中项时返回空,避免把候选项拼成公司名。
"""
selects = cell.xpath(".//select")
if not selects:
return _clean_text(" ".join(cell.xpath(".//text()")))
select = selects[0]
for option in select.xpath("./option[@selected]"):
text = _clean_text("".join(option.xpath(".//text()")))
if text:
return text
current = ""
for node in cell.xpath(".//input[@value]"):
current = str(node.get("value") or "").strip()
if current:
break
if current:
for option in select.xpath("./option"):
if str(option.get("value") or "").strip() != current:
continue
text = _clean_text("".join(option.xpath(".//text()")))
if text:
return text
return ""
def _table_fields(tree: Any) -> dict[str, str]:
"""解析表格中“标签单元格 + 值单元格”对;同一行可包含多组字段。"""
"""解析表格中“标签单元格 + 值单元格”对;同一行可包含多组字段。下拉框只取选中项。"""
fields: dict[str, str] = {}
for row in tree.xpath("//tr"):
cells = row.xpath("./th|./td")
texts = [_clean_text(" ".join(cell.xpath(".//text()"))) for cell in cells]
texts = [_cell_text(cell) for cell in cells]
for index in range(0, len(texts) - 1, 2):
label, value = texts[index], texts[index + 1]
if label and value and len(label) <= 32:
@@ -178,6 +178,7 @@ def sync_notifications(*, client: ContractOaClient | None = None, force: bool =
contract = ContractPaymentContract(
contract_no=contract_no,
purchase_order_no=str(item.get("purchase_order_no") or "").strip() or None,
company_name=str(item.get("company_name") or "").strip() or None,
supplier_name=str(item.get("supplier_name") or "").strip() or None,
applicant_name=str(item.get("applicant_name") or "").strip() or None,
total_amount=positive_amount(item.get("total_amount")),
@@ -198,6 +199,11 @@ def sync_notifications(*, client: ContractOaClient | None = None, force: bool =
if force:
overwritten += _overwrite_oa_fields(contract, item, operator_id=operator_id)
contract.purchase_order_no = contract.purchase_order_no or str(item.get("purchase_order_no") or "").strip() or None
incoming_company = str(item.get("company_name") or "").strip()
stored_company = str(contract.company_name or "").strip()
# 早期解析把下拉框全部选项拼进了公司。选中项是其中一段时,用选中项替换整段。
if incoming_company and (not stored_company or (incoming_company != stored_company and incoming_company in stored_company)):
contract.company_name = incoming_company
contract.applicant_name = contract.applicant_name or str(item.get("applicant_name") or "").strip() or None
# [STEP 0] 普通同步只回填“仍为空”的 OA 标量字段,不用本次值覆盖已有值。
# 合同金额的 0 与空相同,不能挡住正文正数,也不能用 OA 的 0 覆盖已有正数。
@@ -475,6 +481,7 @@ def _overwrite_oa_fields(contract: ContractPaymentContract, item: dict[str, Any]
"""
field_parsers = {
"purchase_order_no": lambda value: str(value).strip() or None,
"company_name": lambda value: str(value).strip() or None,
"supplier_name": lambda value: str(value).strip() or None,
"applicant_name": lambda value: str(value).strip() or None,
"total_amount": lambda value: positive_amount(value),
@@ -0,0 +1,31 @@
"""add contract payment company name
Revision ID: cp2f3a4b5c6d
Revises: 43a8179cdd88
用途:合同台账保存 OA 合同申请单「公司」,供预付款/出货款按账套查询 ERP。
依赖:当前迁移头 43a8179cdd88。
逻辑:新增可空 company_name;存量合同保持空值,扫描时按 HXJM 账套处理,直到下次 OA 同步补上公司。
"""
from alembic import op
import sqlalchemy as sa
revision = "cp2f3a4b5c6d"
down_revision = "43a8179cdd88"
branch_labels = None
depends_on = None
def upgrade() -> None:
"""为合同台账增加 OA 公司字段。"""
op.add_column(
"contract_payment_contracts",
sa.Column("company_name", sa.String(length=255), nullable=True),
)
def downgrade() -> None:
"""移除合同台账 OA 公司字段。"""
op.drop_column("contract_payment_contracts", "company_name")
+106 -1
View File
@@ -3,7 +3,7 @@ backend/tests/test_contract_payment_parse.py
用途:验证合同付款预警解析器、三轮预警升级、ERP 金额匹配、周汇总摘要及企微 Excel 收件人列。
依赖:contract_payment.parse_service、alert_service、erp_payment_service、supervisor_oa_service(三轮测试 mock)、openpyxl。
逻辑:覆盖确定性解析边界、pending 计数与下一次周五 18:00;三轮升级 mock OA 矩阵,不调用外部 OA、文档库或企业微信;Excel 用例只断言「收件人」列为真实姓名;失败原因用例只断言轨迹归类;OA 金额为 0 时断言正文正数回写台账;合同原文被清理后断言按附件 ID 重新下载。
逻辑:覆盖确定性解析边界、pending 计数与下一次周五 18:00;三轮升级 mock OA 矩阵,不调用外部 OA、文档库或企业微信;Excel 用例只断言「收件人」列为真实姓名;失败原因用例只断言轨迹归类;OA 金额为 0 时断言正文正数回写台账;合同原文被清理后断言按附件 ID 重新下载;OA「公司」决定 ERP 账套,同一采购单号不能跨账套记成已付。
"""
from datetime import date, datetime
@@ -881,3 +881,108 @@ def test_erp_combined_payment_marks_prepayment_and_shipment_paid():
assert resolve_paid_node_ids(nodes, [Decimal("43200")]) == {1, 2}
# 一笔请款同时预付款+出货款:金额等于两者之和,一次性标记两者为已付。
assert resolve_paid_node_ids(nodes, [Decimal("43200")]) == {1, 2}
def test_oa_company_dropdown_uses_selected_option(app):
"""关键断言:公司下拉框只取 selected 项,不把全部候选项拼进公司名。"""
page = """
<table><tr>
<td>公司</td>
<td>
<select name="disfield8496">
<option value=""></option>
<option value="0">和泰电子(吴江)有限公司</option>
<option value="1">和泰科技(吴江)有限公司</option>
<option value="2" selected="selected">苏州和信精密科技有限公司</option>
<option value="4">无锡和宏智散热科技有限公司</option>
</select>
<input name="field8496" value="2" />
</td>
<td>合同单位</td><td>如兮环境科技(苏州)有限公司</td>
</tr></table>
"""
with app.app_context():
result = ContractOaClient()._parse_detail_html(page, base_url="http://oa.example/workflow/detail")
assert result["company_name"] == "苏州和信精密科技有限公司"
assert result["supplier_name"] == "如兮环境科技(苏州)有限公司"
def test_oa_contract_detail_reads_company_not_supplier(app):
"""关键断言:账套使用「公司」,合同单位仍是供应商。"""
page = """
<table>
<tr><td>公司</td><td>无锡和宏智散热科技有限公司</td><td>合同单位</td><td>无锡君鑫机械制造有限公司</td></tr>
<tr><td>采购单号</td><td>5202-2608270001</td></tr>
</table>
"""
with app.app_context():
result = ContractOaClient()._parse_detail_html(page, base_url="http://oa.example/workflow/detail")
assert result["company_name"] == "无锡和宏智散热科技有限公司"
assert result["supplier_name"] == "无锡君鑫机械制造有限公司"
assert result["purchase_order_no"] == "5202-2608270001"
def test_company_name_selects_erp_schema():
"""关键断言:指定公司走对应账套,全角括号与其余公司(含空公司)走 HXJM。"""
from app.services.contract_payment.erp_payment_service import erp_schema_for_company, _paid_records_sql
assert erp_schema_for_company("无锡和宏智散热科技有限公司") == "WZHHZ"
assert erp_schema_for_company("和泰科技(吴江)有限公司") == "HTT"
assert erp_schema_for_company("苏州和信精密科技有限公司") == "HXJM"
assert erp_schema_for_company("其它公司") == "HXJM"
assert erp_schema_for_company(None) == "HXJM"
assert "WZHHZ.apa_file" in _paid_records_sql("WZHHZ", ":po_0")
try:
_paid_records_sql("无锡和宏智散热科技有限公司", ":po_0")
except ValueError:
rejected = True
else:
rejected = False
assert rejected
def test_paid_fact_stays_inside_the_company_schema(app, monkeypatch):
"""关键断言:同一采购单号在 WZHHZ 已付,不能把 HXJM 合同标成已付。"""
from app.services.contract_payment.erp_payment_service import ErpPaidRow
seen: dict[str, list] = {}
def fake_fetch(orders):
seen["orders"] = list(orders)
return {("WZHHZ", "5202-2608270001"): [ErpPaidRow(amount=Decimal("18000"), paid_date="2026-09-02")]}
monkeypatch.setattr("app.services.contract_payment.alert_service.fetch_paid_records", fake_fetch)
with app.app_context():
wuxi = ContractPaymentContract(
purchase_order_no="5202-2608270001",
company_name="无锡和宏智散热科技有限公司",
oa_archive_at=datetime(2026, 9, 1, 9, 0),
status="active",
)
suzhou = ContractPaymentContract(
purchase_order_no="5202-2608270001",
company_name="苏州和信精密科技有限公司",
oa_archive_at=datetime(2026, 9, 1, 9, 0),
status="active",
)
db.session.add_all([wuxi, suzhou])
db.session.flush()
db.session.add_all([
ContractPaymentNode(
contract_id=wuxi.id, node_code="prepayment", node_type="prepayment",
amount=Decimal("18000"), anchor_type="oa_archive", status="active",
),
ContractPaymentNode(
contract_id=suzhou.id, node_code="prepayment", node_type="prepayment",
amount=Decimal("18000"), anchor_type="oa_archive", status="active",
),
])
db.session.commit()
generate_alerts(today=date(2026, 9, 2), send=False)
wuxi_status = db.session.query(ContractPaymentNode).filter_by(contract_id=wuxi.id).one().status
suzhou_status = db.session.query(ContractPaymentNode).filter_by(contract_id=suzhou.id).one().status
assert ("5202-2608270001", "无锡和宏智散热科技有限公司") in seen["orders"]
assert ("5202-2608270001", "苏州和信精密科技有限公司") in seen["orders"]
assert wuxi_status == "paid"
assert suzhou_status == "active"
+1 -1
View File
@@ -8,7 +8,7 @@
## 合同付款预警 Agent(2026-08)
- 覆盖预付款、出货款、验收款、质保款四阶段:预付款为合同申请单归档后第 7/14/21 天;出货款为交货期限前 7 天、当天、后 14 天;验收款为验收归档后第 30/40/60 天;质保款为质保到期前 7 天、当天、后 14 天。
- 三轮收件人依次为采购负责人、采购部负责人、采购分管领导。预付款及出货款以 ERP `apa_file` 付款事实判定;匹配付款后仅关闭尚未发送的轮次,保留已发送审计。
- 三轮收件人依次为采购负责人、采购部负责人、采购分管领导。预付款及出货款以 ERP `apa_file` 付款事实判定,并按 OA「公司」选择账套(无锡和宏智散热科技有限公司为 WZHHZ,和泰科技(吴江)有限公司为 HTT,其余为 HXJM);匹配付款后仅关闭尚未发送的轮次,保留已发送审计。
- 每日定时扫描仅生成待发送预警;每周五 18:00 按收件人归并发送一条企业微信汇总。消息仅展示总笔数及阶段数量;每位收件人附件一份 Excel,列明需付款合同及付款明细。
- 工作台入口已迁入 Chat:合同付款预警作为 builtin Agent(`agent_code=contract_payment`),主区以 Tab 嵌入合同台账、待确认合同、周汇总批次(发送失败可点击图标查看原因);点击合同在当前 Tab 内下钻详情。第一期隐藏对话输入框与历史会话,不接 Dify。旧地址 `/workspace/contract-payment*` 重定向到对应 Chat 深链。平台 admin 或被授予该 Agent 的用户可访问;同步 OA、强制覆盖、批量重解析、扫描预警和发送预警仅管理员可见。点击合同可查看详情、解析原因和原文附件。合同台账四张汇总卡为即将到期(7 日内)、逾期未付、未到期(7 日外)、本月应付。关键词可搜申请人。
- OA 合同申请单同时存在“合同附件”和“盖章完成合同上传”时,必须优先下载并解析后者;普通合同附件仅在盖章完成合同缺失或下载失败时作为备用。
@@ -107,7 +107,7 @@ ERP `apa_file` 是预付款和出货款是否已付款的唯一事实来源。
### 6.2 关联与处理规则
1. 使用 `apa_file.apaud03` 关联合同台账采购单号。
1. 使用 `apa_file.apaud03` 关联合同台账采购单号。查询前按 OA 合同申请单「公司」选择账套:无锡和宏智散热科技有限公司查 `WZHHZ.apa_file`,和泰科技(吴江)有限公司查 `HTT.apa_file`,苏州和信精密科技有限公司及其余公司(含公司尚未回填的存量合同)查 `HXJM.apa_file`。「合同单位」是供应商,不参与账套选择。公司名称不得拼进 SQL。某一账套查询失败时只把该账套按未付款处理。
2. 仅筛选 `apa_file.apa41 = 'Y'` 且 `apa_file.apa63 = 1` 的付款记录。
3. 使用 `apa_file.apa34f` 作为每笔付款金额,用于明细展示和付款阶段金额匹配。
4. 每笔合格付款优先匹配金额相同的未付款节点;金额相同时按预付款、出货款的流程顺序,匹配最前面未付款的节点。例:预付款、出货款均为 30,000 时,首笔 30,000 匹配预付款,第二笔 30,000 匹配出货款。
@@ -189,7 +189,7 @@ OA“厂商预付款请款作业”的流程状态不作为付款完成依据;
应至少展示:
- 合同基础信息及交货期限;
- 合同基础信息及交货期限;详情摘要中的 OA 流程编号显示为「合同申请单流程编号」。合同概览暂不展示解析状态和付款账套。
- 四类付款节点及其日期依据;
- 已匹配的 ERP `apa_file` 付款记录(仅预付款/出货款),包括采购单号和付款金额汇总;
- 预警发送记录:轮次、收件人、计划日期、发送时间、发送结果;
@@ -234,6 +234,10 @@ OA“厂商预付款请款作业”的流程状态不作为付款完成依据;
| 日期 | 版本 | 变更内容 |
| --- | --- | --- |
| 2026-09-24 | V1.19 | 合同概览暂不展示付款账套。 |
| 2026-09-24 | V1.18 | 合同概览暂不展示解析状态。 |
| 2026-09-24 | V1.17 | 合同详情与待确认列表中,OA 流程编号的页面标签改为「合同申请单流程编号」。 |
| 2026-09-24 | V1.16 | 同步 OA 合同申请单「公司」,按公司选择 ERP 账套查询预付款和出货款是否已付。 |
| 2026-09-23 | V1.15 | 合同原文落库后标为已引用;已被临时清理删除的附件,下载和重解析会按附件 ID 从 OA 或 DMS 重新下载。 |
| 2026-09-23 | V1.14 | OA 合同金额为 0 或空时视为未录入;正文正数金额回写台账总额,且不能被强制覆盖成 0。 |
| 2026-09-22 | V1.13 | 周汇总批次发送失败时,可点击状态旁图标查看失败原因。 |
+1 -1
View File
@@ -7,7 +7,7 @@
| OA 合同与请款同步 | 已实现 | 合同申请单走 HTTP 待办/已办;验收归档查 OA SQL(`formtable_main_324.cgdh` × `workflow_requestbase.currentnodetype=3`)按采购单号落事件;普通同步只补空字段,管理员可强制覆盖 OA 非空字段并保留变更审计。 |
| 四阶段三轮预警扫描 | 已实现 | 每日扫描只生成 pending 预警;第一轮按台账申请人真实姓名匹配系统用户,第二、三轮按申请人部门查 OA `HrmResource` + `Matrixtable_3`(`zz`/`jfl` 即企微 userid)。 |
| 企业微信周汇总 | 已实现 | 每周五 18:00 按收件人发一条汇总卡片及逐笔 Excel 附件;Excel「收件人」列为系统用户真实姓名;“周汇总批次”保留批次审计,发送失败可点击图标查看原因。 |
| 合同付款台账与详情 | 已实现 | Chat Agent「合同付款预警」以 Tab 展示合同台账:服务端分页展示合同、采购单号、供应商、四阶段列、申请人和简洁状态标签,列表不展示流程编号。阶段列只显示阶段名;预付款和出货款以已付(付款日)或已逾期、即将到期、未到期区分,验收款和质保款只显示金额比例与日期依据;关键词同时匹配合同号、流程号、采购单号、供应商和申请人;四张汇总卡按合同统计即将到期(7日内)、逾期未付、未到期(7日外)、本月应付(全量台账),点击过滤列表;点击合同在当前 Tab 内查看概览、原文附件、付款计划和预警记录。 |
| 合同付款台账与详情 | 已实现 | 预付款和出货款按 OA「公司」选择账套查询(默认 HXJM,无锡和宏智散热科技有限公司为 WZHHZ,和泰科技(吴江)有限公司为 HTT)。Chat Agent「合同付款预警」以 Tab 展示合同台账:服务端分页展示合同、采购单号、供应商、四阶段列、申请人和简洁状态标签,列表不展示合同申请单流程编号。阶段列只显示阶段名;预付款和出货款以已付(付款日)或已逾期、即将到期、未到期区分,验收款和质保款只显示金额比例与日期依据;关键词同时匹配合同号、流程号、采购单号、供应商和申请人;四张汇总卡按合同统计即将到期(7日内)、逾期未付、未到期(7日外)、本月应付(全量台账),点击过滤列表;点击合同在当前 Tab 内查看概览、原文附件、付款计划和预警记录。 |
| 通用合同解析与待确认合同 | 已实现 | 不再校验 V4 或其他固定模板;只校验合同号、金额、交期、采购单号及四阶段付款比例完整、无重复、合计 100%。关键事实或比例校验失败合同归入 Chat「待确认」Tab,不得触发自动预警。待确认合同可人工复核:补齐采购单号、合同金额和四阶段比例、金额、日期依据,启用阶段合计 100% 后进入合同台账;勾选无此阶段的节点不参与预警。 |
| 扫描版合同 MinerU 解析 | 已实现 | OA PDF 附件优先经 MinerU 生成 Markdown 后再解析合同号、金额、交期与四阶段付款比例;服务未配置、失败或空结果时安全回退既有文字层/OCR,历史合同可用“批量重新解析存量合同”刷新。 |
| 存量合同批量重解析 | 已实现 | 管理员可直接用已归档附件批量刷新历史解析结果,不覆盖 OA 字段。原文若已被临时文件清理删除,则按附件 ID 从 OA 或 DMS 重新下载后再解析。 |
+1 -1
View File
@@ -1478,7 +1478,7 @@ RecoveryPlan → Gate Attempt → Job → Worker/RPA → 幂等回调 → `run_t
# 合同付款预警三轮升级技术补充(2026-08-17)
- 付款计划统一生成 `prepayment`、`shipment`、`acceptance`、`warranty` 节点;预付款以合同申请单归档日、出货款以交货期限、验收款以验收单归档日、质保款以质保到期日作为提醒锚点。
- 合同付款预警通过 ERP Oracle `apa_file` 查询付款完成事实:以 `apaud03` 关联采购单号,筛选 `apa41='Y'` 且 `apa63=1`,按 `apa34f` 汇总付款金额;累计金额覆盖节点金额时停止预付款/出货款后续提醒。ERP 未配置或查询失败时 fail-safe 按未付款处理。历史 `contract_payment_vendor_requests` 表保留兼容性,但不再作为付款完成停止条件。
- 合同付款预警通过 ERP Oracle `apa_file` 查询付款完成事实:以 `apaud03` 关联采购单号,筛选 `apa00='15'`、`apa41='Y'` 且 `apa63=1`,按 `apa34f` 匹配付款金额。账套由 OA「公司」决定,查询 `{账套}.apa_file`:无锡和宏智散热科技有限公司为 WZHHZ,和泰科技(吴江)有限公司为 HTT,其余及公司为空的存量合同为 HXJM。ERP 未配置、某一账套无权限或查询失败时,该账套 fail-safe 按未付款处理。历史 `contract_payment_vendor_requests` 表保留兼容性,但不再作为付款完成停止条件。
- `contract_payment_alerts` 以 `(node_id, trigger_key, recipient_user_id)` 幂等,并保存 `alert_round`。第一轮收件人按台账申请人 `users.real_name` 唯一匹配,匹配失败或重名则不发送、不回退默认管理员。第二、三轮查 OA `HrmResource.lastname` → `departmentid` → `Matrixtable_3.bm`,分别取 `zz`/`jfl` 作为企微 userid;未命中不向第一轮兜底。历史环境变量 `CONTRACT_PAYMENT_DEPARTMENT_HEAD_USER_IDS` / `CONTRACT_PAYMENT_PROCUREMENT_LEADER_USER_IDS` 已不再参与解析。
- 预警任务拆分为“每日扫描”和“周五 18:00 汇总发送”:每日仅产生待发送预警,周汇总按收件人聚合并生成 Excel 明细附件(「收件人」列为系统用户真实姓名,为空回退用户名),再发送一条企业微信消息;无待发送事项不得发送空消息。汇总批次、Excel 文件和单笔预警的关联须可审计,且同一节点轮次在同一收件人下保持幂等。
- 合同付款 OA 附件中的 PDF 与采购合同审核固定共用 `PROCUREMENT_CONTRACT_MINERU_*` 配置,并优先调用 MinerU 同步 `/file_parse`:请求携带 `lang_list=ch`、`backend`、`parse_method` 和 `formula_enable=false`,仅接受 `status=completed` 且结果含 `md_content` 的响应。付款条款规则直接消费 Markdown,以保留扫描版合同的表格与阅读顺序;MinerU 故障或空结果则回退附件文字层及历史 OCR,保证同步任务可继续完成。
@@ -17,7 +17,8 @@ export interface ContractAttachment {
}
export interface ContractPaymentContract {
id: number; contract_no?: string | null; workflow_no?: string | null; purchase_order_no?: string | null;
supplier_name?: string | null; total_amount?: string | null; currency?: string | null; applicant_name?: string | null;
supplier_name?: string | null; company_name?: string | null; erp_schema?: string | null;
total_amount?: string | null; currency?: string | null; applicant_name?: string | null;
effective_date?: string | null; delivery_due_date?: string | null; oa_archive_at?: string | null;
status: string; parse_status: string; plan_status: string; parse_issues?: string[]; nodes: PaymentNode[]; alerts?: PaymentAlert[]; attachments?: ContractAttachment[];
}
@@ -5,7 +5,7 @@
逻辑:由 ChatViewContent 在 agent_code=contract_payment 时替换消息列表与输入框;
view / contractId 写入 /chat/:agentId 查询参数,旧工作台地址重定向后仍可深链打开。
列表 Tab 内容区 overflow-hidden,把纵向滚动交给子页表格区域;Chat 顶栏仅保留标题。
管理员顶栏顺序:同步 OA → 发送预警 → 更多;前两者常显,低频操作收进「更多」以节省小屏高度。
管理员顶栏顺序:同步 OA → 发送预警 → 更多;前两者常显,低频操作收进「更多」以节省小屏高度。这些操作确认后才入队。
发送预警结束后重新拉取周汇总批次,避免列表停在点击前的失败记录。
待确认与台账点进合同都打开原来的详情。待复核详情上的人工复核确认后回到合同台账并刷新角标。
-->
@@ -52,11 +52,10 @@ async function reloadWeeklyBatches(): Promise<void> {
const {
isAdmin,
actionLoading,
showForceSyncConfirm,
showReparseExistingConfirm,
showActionConfirm,
confirmCopy,
run,
confirmForceSync,
confirmReparseExisting,
confirmPendingAction,
} = useContractPaymentAdminActions(reloadWeeklyBatches);
const tabs = computed(() => ([
@@ -288,19 +287,11 @@ watch(
<DeleteConfirmDialog
v-if="isAdmin"
v-model="showForceSyncConfirm"
:title="t('admin.contractPayment.forceSync')"
:message="t('admin.contractPayment.forceSyncConfirm')"
v-model="showActionConfirm"
:title="confirmCopy.title"
:message="confirmCopy.message"
confirm-tone="primary"
@confirm="confirmForceSync"
/>
<DeleteConfirmDialog
v-if="isAdmin"
v-model="showReparseExistingConfirm"
:title="t('admin.contractPayment.reparseExisting')"
:message="t('admin.contractPayment.reparseExistingConfirm')"
confirm-tone="primary"
@confirm="confirmReparseExisting"
@confirm="confirmPendingAction"
/>
</section>
</template>
@@ -2,7 +2,7 @@
* features/contract-payment/composables/useContractPaymentAdminActions.ts
* 用途:合同付款预警管理员异步任务(同步 / 重解析 / 扫描 / 发送)共用入口。
* 依赖:contract-payment.api、useAuthStore、useMessage、i18n。
* 逻辑:Chat 顶栏与旧台账页共用;非管理员直接忽略,强制覆盖和存量重解析先走确认框。
* 逻辑:Chat 顶栏与旧台账页共用;非管理员直接忽略。同步、强制覆盖、存量重解析、扫描和发送预警都先走确认框。
* 发送预警会等到后台任务结束,再按 sent/failed 提示,并回调刷新周汇总列表。
*/
import { computed, ref } from 'vue';
@@ -43,7 +43,7 @@ async function waitForWeeklyJob(jobId: number): Promise<ContractPaymentJob | nul
/**
* 提供合同付款预警管理员操作状态与提交函数。
* 核心逻辑:仅 role=admin 可提交。同步、重解析、扫描入队后即提示已提交。
* 核心逻辑:仅 role=admin 可提交。同步、强制覆盖、重解析、扫描和发送都先确认再入队。
* 发送预警会等到 Worker 结束,先刷新列表,再按 sent/failed 提示。
* @param onAfterScanOrWeekly - 扫描提交后或周汇总发送结束后刷新列表的回调
*/
@@ -53,8 +53,8 @@ export function useContractPaymentAdminActions(onAfterScanOrWeekly?: () => Promi
const msg = useMessage();
const isAdmin = computed(() => auth.isAdmin);
const actionLoading = ref(false);
const showForceSyncConfirm = ref(false);
const showReparseExistingConfirm = ref(false);
/** 等待用户确认的管理操作;为空时确认框关闭。 */
const confirmAction = ref<ContractPaymentAdminAction | null>(null);
/**
* 按周汇总任务的 sent/failed 给出结果,避免把入队成功说成已经发出。
@@ -115,28 +115,61 @@ export function useContractPaymentAdminActions(onAfterScanOrWeekly?: () => Promi
}
/**
* 触发任务入口;强制覆盖和存量重解析先弹出确认框。
* 返回当前待确认操作的标题和说明。
* 核心逻辑:五种管理操作共用一个确认框,文案按操作切换。
*/
const confirmCopy = computed(() => {
switch (confirmAction.value) {
case 'sync':
return { title: t('admin.contractPayment.sync'), message: t('admin.contractPayment.syncConfirm') };
case 'force-sync':
return { title: t('admin.contractPayment.forceSync'), message: t('admin.contractPayment.forceSyncConfirm') };
case 'reparse-existing':
return { title: t('admin.contractPayment.reparseExisting'), message: t('admin.contractPayment.reparseExistingConfirm') };
case 'scan':
return { title: t('admin.contractPayment.scanAlerts'), message: t('admin.contractPayment.scanAlertsConfirm') };
case 'weekly':
return { title: t('admin.contractPayment.weeklySend'), message: t('admin.contractPayment.weeklySendConfirm') };
default:
return { title: '', message: '' };
}
});
/**
* 确认框显隐。关闭时清掉待确认操作,避免下次打开仍执行上一次动作。
*/
const showActionConfirm = computed({
get: () => confirmAction.value !== null,
set: (open: boolean) => {
if (!open) confirmAction.value = null;
},
});
/**
* 触发任务入口。所有管理操作都先弹出确认框,确认后才入队。
* @param action - sync / force-sync / reparse-existing / scan / weekly
*/
function run(action: ContractPaymentAdminAction): void {
if (!isAdmin.value) return;
if (action === 'force-sync') {
showForceSyncConfirm.value = true;
return;
}
if (action === 'reparse-existing') {
showReparseExistingConfirm.value = true;
return;
}
void submitAction(action);
if (!isAdmin.value || actionLoading.value) return;
confirmAction.value = action;
}
/**
* 用户确认后提交当前操作。
* 核心逻辑:先取出动作再清空,避免弹窗关闭时把待提交动作清掉。
*/
function confirmPendingAction(): void {
const action = confirmAction.value;
confirmAction.value = null;
if (action) void submitAction(action);
}
return {
isAdmin,
actionLoading,
showForceSyncConfirm,
showReparseExistingConfirm,
showActionConfirm,
confirmCopy,
run,
confirmForceSync: () => void submitAction('force-sync'),
confirmReparseExisting: () => void submitAction('reparse-existing'),
confirmPendingAction,
};
}
@@ -98,9 +98,10 @@ function displaySentAt(iso?: string | null): string {
}
/**
* 返回合同解析/计划状态的本地化文本。
* 返回合同计划状态的本地化文本。
* 核心逻辑:将后端编码(parsed / needs_review / pending / active)映射到 i18n;未知编码回退原值,便于排障。
* @param state - 后端返回的解析状态或计划状态编码。
* 解析状态暂不在概览中展示,本函数目前只用于计划状态。
* @param state - 后端返回的计划状态编码。
* @returns 本地化状态文本;空值时返回 '—'。
*/
function displayContractState(state?: string | null): string {
@@ -377,10 +378,10 @@ onBeforeUnmount(() => closeAttachmentPreview());
<section class="detail-panel mt-4">
<h3>{{ t('admin.contractPayment.detailOverview') }}</h3>
<dl class="detail-description-list">
<div><dt>{{ t('admin.contractPayment.parseStatus') }}</dt><dd>{{ displayContractState(contract.parse_status) }}</dd></div>
<div><dt>{{ t('admin.contractPayment.planStatus') }}</dt><dd>{{ displayContractState(contract.plan_status) }}</dd></div>
<div><dt><span class="help-label" :data-help="t('admin.contractPayment.archiveDateHint')">{{ t('admin.contractPayment.archiveDate') }}<CircleHelp class="ml-1 inline h-3.5 w-3.5 align-middle" /></span></dt><dd>{{ contract.oa_archive_at ? formatNaiveDate(contract.oa_archive_at) : '—' }}</dd></div>
<div><dt>{{ t('admin.contractPayment.deliveryDate') }}</dt><dd>{{ contract.delivery_due_date || '—' }}</dd></div>
<div><dt>{{ t('admin.contractPayment.company') }}</dt><dd class="detail-wrap">{{ contract.company_name || '—' }}</dd></div>
</dl>
<div v-if="contract.parse_issues?.length || contract.parse_status === 'needs_review'" class="detail-parse-issues">
<div class="min-w-0">
@@ -465,7 +466,7 @@ onBeforeUnmount(() => closeAttachmentPreview());
<style scoped>
/* 四张概要卡按详情区域宽度排:够宽时一行,窄于 640px 再折成两行。 */
.contract-detail { container-type: inline-size; }.detail-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }.detail-summary-card { min-width: 0; min-height: 82px; padding: 14px; border: 1px solid #d7e1ef; border-radius: 12px; background: #f8fbff; }.detail-summary-card span { display: block; color: #58749f; font-size: 12px; }.detail-summary-card strong { display: block; margin-top: 6px; color: #102d59; font-size: 14px; word-break: break-word; }.detail-tabs { display: flex; width: fit-content; max-width: 100%; overflow-x: auto; border: 1px solid #d7e1ef; border-radius: 999px; background: #f1f5fb; padding: 4px; }.detail-tabs button { flex: none; border-radius: 999px; padding: 8px 14px; color: #58749f; font-size: 13px; font-weight: 700; }.detail-tabs button.active { background: #fff; color: #2875d5; box-shadow: 0 1px 3px rgba(35, 68, 113, .12); }.detail-panel { border: 1px dashed #b9cbe2; border-radius: 12px; background: #fff; padding: 18px; }.detail-panel h3 { margin-bottom: 14px; color: #102d59; font-size: 16px; font-weight: 750; }.detail-description-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px; font-size: 13px; }.detail-description-list div { display: flex; gap: 8px; min-width: 0; }.detail-description-list dt { flex: none; color: #58749f; }.detail-description-list dd { min-width: 0; color: #102d59; font-weight: 650; white-space: nowrap; }.detail-note { margin-top: 16px; border-radius: 8px; background: #f7faff; padding: 10px 12px; color: #58749f; font-size: 13px; }.attachment-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid #e4ecf6; padding: 13px 0; }.attachment-row:first-of-type { border-top: 0; }.attachment-row span { color: #58749f; font-size: 12px; }.payment-node-row { position: relative; display: flex; gap: 14px; padding: 0 0 18px 6px; }.payment-node-row::before { position: absolute; top: 18px; bottom: -2px; left: 12px; width: 2px; background: #d7e1ef; content: ''; }.payment-node-row:last-child::before { display: none; }.timeline-dot { z-index: 1; width: 14px; height: 14px; margin-top: 8px; flex: none; border-radius: 999px; background: #fff; border: 2px solid #3b82e5; }.payment-node-card { flex: 1; border: 1px solid #d7e1ef; border-radius: 12px; padding: 13px 15px; }.payment-node-card strong { color: #102d59; }.payment-node-card p { margin-top: 5px; color: #58749f; font-size: 13px; }.node-status { display: inline-flex; min-height: 22px; align-items: center; border-radius: 999px; background: #edf5ff; padding: 2px 8px; color: #2563eb; font-size: 12px; font-weight: 700; }.node-alert-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }.node-alert-list span { border-radius: 6px; background: #f7faff; padding: 4px 7px; color: #58749f; font-size: 12px; }.alert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; border-top: 1px solid #e4ecf6; padding: 12px 0; color: #58749f; font-size: 13px; }.alert-row:first-of-type { border-top: 0; }.alert-row strong { color: #102d59; }.detail-empty { padding: 38px; color: var(--text-muted); text-align: center; } @container (max-width: 640px) { .detail-summary-grid, .detail-description-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 640px) { .detail-description-list { grid-template-columns: 1fr; }.attachment-row { align-items: flex-start; flex-wrap: wrap; }.attachment-row button { margin-left: 32px; } }
.contract-detail { container-type: inline-size; }.detail-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }.detail-summary-card { min-width: 0; min-height: 82px; padding: 14px; border: 1px solid #d7e1ef; border-radius: 12px; background: #f8fbff; }.detail-summary-card span { display: block; color: #58749f; font-size: 12px; }.detail-summary-card strong { display: block; margin-top: 6px; color: #102d59; font-size: 14px; word-break: break-word; }.detail-tabs { display: flex; width: fit-content; max-width: 100%; overflow-x: auto; border: 1px solid #d7e1ef; border-radius: 999px; background: #f1f5fb; padding: 4px; }.detail-tabs button { flex: none; border-radius: 999px; padding: 8px 14px; color: #58749f; font-size: 13px; font-weight: 700; }.detail-tabs button.active { background: #fff; color: #2875d5; box-shadow: 0 1px 3px rgba(35, 68, 113, .12); }.detail-panel { border: 1px dashed #b9cbe2; border-radius: 12px; background: #fff; padding: 18px; }.detail-panel h3 { margin-bottom: 14px; color: #102d59; font-size: 16px; font-weight: 750; }.detail-description-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px; font-size: 13px; }.detail-description-list div { display: flex; gap: 8px; min-width: 0; }.detail-description-list dt { flex: none; color: #58749f; }.detail-description-list dd { min-width: 0; color: #102d59; font-weight: 650; white-space: nowrap; }.detail-description-list dd.detail-wrap { white-space: normal; word-break: break-all; }.detail-note { margin-top: 16px; border-radius: 8px; background: #f7faff; padding: 10px 12px; color: #58749f; font-size: 13px; }.attachment-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid #e4ecf6; padding: 13px 0; }.attachment-row:first-of-type { border-top: 0; }.attachment-row span { color: #58749f; font-size: 12px; }.payment-node-row { position: relative; display: flex; gap: 14px; padding: 0 0 18px 6px; }.payment-node-row::before { position: absolute; top: 18px; bottom: -2px; left: 12px; width: 2px; background: #d7e1ef; content: ''; }.payment-node-row:last-child::before { display: none; }.timeline-dot { z-index: 1; width: 14px; height: 14px; margin-top: 8px; flex: none; border-radius: 999px; background: #fff; border: 2px solid #3b82e5; }.payment-node-card { flex: 1; border: 1px solid #d7e1ef; border-radius: 12px; padding: 13px 15px; }.payment-node-card strong { color: #102d59; }.payment-node-card p { margin-top: 5px; color: #58749f; font-size: 13px; }.node-status { display: inline-flex; min-height: 22px; align-items: center; border-radius: 999px; background: #edf5ff; padding: 2px 8px; color: #2563eb; font-size: 12px; font-weight: 700; }.node-alert-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }.node-alert-list span { border-radius: 6px; background: #f7faff; padding: 4px 7px; color: #58749f; font-size: 12px; }.alert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; border-top: 1px solid #e4ecf6; padding: 12px 0; color: #58749f; font-size: 13px; }.alert-row:first-of-type { border-top: 0; }.alert-row strong { color: #102d59; }.detail-empty { padding: 38px; color: var(--text-muted); text-align: center; } @container (max-width: 640px) { .detail-summary-grid, .detail-description-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 640px) { .detail-description-list { grid-template-columns: 1fr; }.attachment-row { align-items: flex-start; flex-wrap: wrap; }.attachment-row button { margin-left: 32px; } }
.help-label { position: relative; cursor: help; }.help-label::after { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: max-content; max-width: min(280px, 70vw); padding: 7px 9px; border-radius: 6px; background: #334155; color: #fff; content: attr(data-help); font-size: 11px; font-weight: 400; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity .15s ease; white-space: normal; }.help-label.help-wide::after { max-width: min(420px, 78vw); white-space: pre-line; }.help-label:hover::after { opacity: 1; }.detail-parse-issues { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; border-radius: 8px; background: #fff7ed; padding: 10px 12px; color: #9a3412; font-size: 13px; }.detail-parse-issues strong { display: block; margin-bottom: 4px; font-weight: 700; }.detail-parse-review { flex: none; height: 34px; padding: 0 16px; }.detail-parse-issues ul { margin: 0; padding-left: 16px; }.detail-parse-issues li { line-height: 1.6; }
.attachment-preview-body { position: relative; min-height: 0; padding: 0; }.attachment-preview-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }.attachment-preview-image { display: block; max-width: 100%; max-height: 100%; margin: 0 auto; object-fit: contain; }
.timeline-dot.dot-paid, .timeline-dot.dot-current { background: #16a34a; border-color: #16a34a; }.timeline-dot.dot-due { background: #ea580c; border-color: #ea580c; }.timeline-dot.dot-overdue { background: #dc2626; border-color: #dc2626; }.timeline-dot.dot-pending { background: #fff; border-color: #93a7c8; }.timeline-dot.dot-review { background: #f59e0b; border-color: #f59e0b; }.node-status.status-paid { background: #e8f7ee; color: #16a34a; }.node-status.status-current { background: #e8f7ee; color: #16a34a; }.node-status.status-due { background: #fff4e8; color: #ea580c; }.node-status.status-overdue { background: #fee2e2; color: #dc2626; }.node-status.status-pending { background: #eef3fa; color: #5c76a0; }.node-status.status-review { background: #fff7ed; color: #c2410c; }.payment-node-pay-line { margin-top: 6px; color: #102d59; font-weight: 650; }
+4 -4
View File
@@ -4811,11 +4811,11 @@
}
},
"contractPayment": {
"title": "Contract Payment Alerts", "subtitle": "Sync OA contract, acceptance, and vendor prepayment requests; notify procurement roles through three escalation rounds.", "sessionHint": "Chat and history are hidden in this phase. Use the tabs above to open the ledger.", "sync": "Sync OA data", "moreActions": "More", "forceSync": "Force overwrite OA fields", "forceSyncConfirm": "This will overwrite existing OA data with non-empty fields returned this time and record an audit trail. Continue?", "reparseExisting": "Reparse existing contracts", "reparseExistingConfirm": "This will refresh all existing contract parsing results from archived attachments using the current rules. OA fields will not be synced or overwritten. Continue?", "scanAlerts": "Scan to generate alerts", "jobSubmitted": "Job submitted", "actionFailed": "Action failed", "loadFailed": "Failed to load contracts", "searchPlaceholder": "Search contract number, purchase order, supplier, or applicant", "allStatus": "All", "search": "Search", "ledger": "Contract ledger", "items": "items", "empty": "No contract data", "purchaseOrder": "Purchase order", "supplier": "Supplier", "amount": "Contract amount", "deliveryDate": "Delivery due date", "timeline": "Payment plan timeline", "notAvailable": "—", "stats": {"contracts": "Contracts", "pendingParse": "Pending contracts", "readyPlans": "Plans ready", "alerts": "Alert nodes"}, "ledgerFocus": {"due": "Due soon", "dueHint": "within 7 days", "overdue": "Overdue unpaid", "active": "Not yet due", "activeHint": "beyond 7 days", "dueThisMonth": "Due this month", "dueThisMonthHint": "this calendar month"}, "status": {"completed": "Completed", "needs_review": "Needs review", "pending": "Pending parse"}, "stateLabel": {"parsed": "Parsed", "needs_review": "Needs review", "pending": "Pending parse", "active": "Active"}, "nodeType": {"prepayment": "Prepayment", "shipment": "Shipment payment", "acceptance": "Acceptance payment", "warranty": "Warranty payment"}, "ruleConfirmed": "Confirmed", "prepaymentRule": "Alerts at 7/14/21 days after contract archival; request status comes from OA vendor prepayment requests.", "shipmentRule": "Alerts 7 days before delivery, on the due date, and 14 days after; request status comes from OA vendor prepayment requests.", "acceptanceRule": "Alerts at 30/40/60 days after acceptance archival; warranty alerts are 7 days before, on, and 14 days after maturity.", "pendingAlerts": "Pending alerts", "processing": "Payment initiated", "dataPending": "Data pending", "paid": "Paid", "stagePaid": "Paid", "amountRatioDate": "Amount / ratio · date", "applicant": "Applicant", "statusLabel": "Status", "contractPrefix": "Contract", "datePending": "Date pending", "statusNormal": "Normal", "statusNeedsCompletion": "Needs completion", "statusOverdue": "Overdue", "statusUpcoming": "Due soon", "statusActive": "Not yet due", "statusCompleted": "Completed", "totalPrefix": "Total", "contractSupplier": "Contract / supplier", "nextAlert": "Next alert", "triggerBasis": "Trigger basis", "alertDate": "Alert date", "alertRuleHint": "Each stage has three reminders on calendar days. Due items go out in the next Friday 18:00 digest. If the date is missing, no reminder is sent.\nPrepayment: day 7, 14, and 21 after contract archive (the page shows the first round)\nShipment payment: 7 days before the delivery date, on that date, and 14 days after\nAcceptance payment: day 30, 40, and 60 after the acceptance is archived\nWarranty payment: 7 days before warranty expiry, on that date, and 14 days after", "alertFirstRound": "Round 1", "payDate": "Payment date", "processStatus": "Status", "owner": "Procurement owner", "oaData": "OA data", "contractRule": "Contract rule", "ownerDefault": "Procurement owner", "workflowNo": "Workflow number", "contractNoPending": "Contract number pending attachment parsing", "synced": "Synced", "detailSubtitle": "OA data, payment nodes, and WeCom alert records", "backToOverview": "Back to overview", "contractInfo": "OA contract details", "alertHistory": "Alert history", "alertRound": "Alert round {round}", "alertAudit": "Alert delivery record", "alertAuditEmpty": "No alert records", "alertNode": "Payment stage", "alertScheduledAt": "Scheduled date", "alertSentAt": "Sent at", "alertStatus": {"pending": "Pending", "sent": "Sent", "failed": "Failed"}, "roundValue": "Round {round}", "weeklyBatchesTitle": "Weekly Summary Batches", "weeklyBatchesSubtitle": "Review recipient-level payment-alert summaries, Excel attachments, and delivery records.", "weeklySend": "Send alerts", "weeklyBatchSubmitted": "Send alert job submitted", "weeklyJobSent": "Sent {sent} batch(es)", "weeklyJobFailed": "{failed} batch(es) failed. The list has been refreshed; open the failure icon for the reason.", "weeklyJobPartial": "Sent {sent} batch(es); {failed} failed", "weeklyJobEmpty": "There are no pending alerts, so the batch list will not change", "weeklyJobTimeout": "The send task is still running in the background. RLine truncated
},
"contractPaymentReview": {"title": "Contracts for Confirmation", "subtitle": "Contracts that do not match the equipment procurement synonym title groups, fail payment-ratio validation, or conflict with OA fields are excluded from payment alerts. Download the original contract to verify it.", "searchPlaceholder": "Contract number, purchase order, supplier, or applicant", "loadFailed": "Failed to load contracts for confirmation", "contractWorkflow": "Contract / workflow number", "reason": "Reason for confirmation", "fallbackIssue": "Parsing result requires manual confirmation", "empty": "No contracts need confirmation", "manualTitle": "Review payment stages", "manualSubtitle": "{supplier} · PO {purchaseOrder}. Recognized stages are filled in and can be edited.", "backToReview": "Back to pending", "confirmLedger": "Add to ledger", "confirmSuccess": "Added to the contract ledger", "issueTitle": "Parse notes", "contractNoOptional": "Contract number (optional)", "contractNoPlaceholder": "Not found in the attachment", "percentage": "Percent %", "stageAmount": "Amount", "basisDate": "Date basis", "noStage": "No such stage", "ruleIdentity": "Purchase order and contract amount are valid", "rulePercent": "Enabled percentages total 100%. A blank percentage is not zero", "ruleAmount": "Each enabled amount equals the contract amount times its percentage", "ruleDate": "Prepayment and shipment payment need a date basis", "hintPrepayment": "Date basis is the contract archive date. Enter the deposit or prepayment percentage from the contract.", "hintShipment": "Date basis is the delivery date. If the contract only says “N days after the deposit”, enter a calendar date.", "hintAcceptance": "Date basis is the acceptance archive date. Leave it empty if acceptance is not archived yet.", "hintWarranty": "Check “No such stage” when there is no warranty payment share. A warranty period is not a percentage.", "formLoadFailed": "Failed to load the review form", "submitFailed": "Failed to submit the review", "manualAction": "Manual review", "fillHintTitle": "How to fill in"},
"title": "Contract Payment Alerts", "subtitle": "Sync OA contract, acceptance, and vendor prepayment requests; notify procurement roles through three escalation rounds.", "sessionHint": "Chat and history are hidden in this phase. Use the tabs above to open the ledger.", "sync": "Sync OA data", "moreActions": "More", "forceSync": "Force overwrite OA fields", "forceSyncConfirm": "This will overwrite existing OA data with non-empty fields returned this time and record an audit trail. Continue?", "reparseExisting": "Reparse existing contracts", "reparseExistingConfirm": "This will refresh all existing contract parsing results from archived attachments using the current rules. OA fields will not be synced or overwritten. Continue?", "scanAlerts": "Scan to generate alerts", "jobSubmitted": "Job submitted", "actionFailed": "Action failed", "loadFailed": "Failed to load contracts", "searchPlaceholder": "Search contract number, purchase order, supplier, or applicant", "allStatus": "All", "search": "Search", "ledger": "Contract ledger", "items": "items", "empty": "No contract data", "purchaseOrder": "Purchase order", "supplier": "Supplier", "amount": "Contract amount", "deliveryDate": "Delivery due date", "timeline": "Payment plan timeline", "notAvailable": "—", "stats": {"contracts": "Contracts", "pendingParse": "Pending contracts", "readyPlans": "Plans ready", "alerts": "Alert nodes"}, "ledgerFocus": {"due": "Due soon", "dueHint": "within 7 days", "overdue": "Overdue unpaid", "active": "Not yet due", "activeHint": "beyond 7 days", "dueThisMonth": "Due this month", "dueThisMonthHint": "this calendar month"}, "status": {"completed": "Completed", "needs_review": "Needs review", "pending": "Pending parse"}, "stateLabel": {"parsed": "Parsed", "needs_review": "Needs review", "pending": "Pending parse", "active": "Active"}, "nodeType": {"prepayment": "Prepayment", "shipment": "Shipment payment", "acceptance": "Acceptance payment", "warranty": "Warranty payment"}, "ruleConfirmed": "Confirmed", "prepaymentRule": "Alerts at 7/14/21 days after contract archival; request status comes from OA vendor prepayment requests.", "shipmentRule": "Alerts 7 days before delivery, on the due date, and 14 days after; request status comes from OA vendor prepayment requests.", "acceptanceRule": "Alerts at 30/40/60 days after acceptance archival; warranty alerts are 7 days before, on, and 14 days after maturity.", "pendingAlerts": "Pending alerts", "processing": "Payment initiated", "dataPending": "Data pending", "paid": "Paid", "stagePaid": "Paid", "amountRatioDate": "Amount / ratio · date", "applicant": "Applicant", "company": "Company", "erpSchema": "Payment ledger", "statusLabel": "Status", "contractPrefix": "Contract", "datePending": "Date pending", "statusNormal": "Normal", "statusNeedsCompletion": "Needs completion", "statusOverdue": "Overdue", "statusUpcoming": "Due soon", "statusActive": "Not yet due", "statusCompleted": "Completed", "totalPrefix": "Total", "contractSupplier": "Contract / supplier", "nextAlert": "Next alert", "triggerBasis": "Trigger basis", "alertDate": "Alert date", "alertRuleHint": "Each stage has three reminders on calendar days. Due items go out in the next Friday 18:00 digest. If the date is missing, no reminder is sent.\nPrepayment: day 7, 14, and 21 after contract archive (the page shows the first round)\nShipment payment: 7 days before the delivery date, on that date, and 14 days after\nAcceptance payment: day 30, 40, and 60 after the acceptance is archived\nWarranty payment: 7 days before warranty expiry, on that date, and 14 days after", "alertFirstRound": "Round 1", "payDate": "Payment date", "processStatus": "Status", "owner": "Procurement owner", "oaData": "OA data", "contractRule": "Contract rule", "ownerDefault": "Procurement owner", "workflowNo": "Contract application workflow number", "contractNoPending": "Contract number pending attachment parsing", "synced": "Synced", "detailSubtitle": "OA data, payment nodes, and WeCom alert records", "backToOverview": "Back to overview", "contractInfo": "OA contract details", "alertHistory": "Alert history", "alertRound": "Alert round {round}", "alertAudit": "Alert delivery record", "alertAuditEmpty": "No alert records", "alertNode": "Payment stage", "alertScheduledAt": "Scheduled date", "alertSentAt": "Sent at", "alertStatus": {"pending": "Pending", "sent": "Sent", "failed": "Failed"}, "roundValue": "Round {round}", "weeklyBatchesTitle": "Weekly Summary Batches", "weeklyBatchesSubtitle": "Review recipient-level payment-alert summaries, Excel attachments, and delivery records.", "weeklySend": "Send alerts", "weeklyBatchSubmitted": "Send alert job submitted", "weeklyJobSent": "Sent {sent} batch(es)", "weeklyJobFailed": "{failed} batch(es) failed. The list has been refreshed; open the failure icon for the reason.", "weeklyJobPartial": "Sent {sent} batch(es); {failed} failed", "weeklyJobEmpty": "There are no pending alerts, so the batch list will not change"Line truncated
, "syncConfirm": "This syncs OA contract and acceptance data and only fills empty ledger fields. Existing values stay as they are. Continue?", "weeklySendConfirm": "This sends this week's pending payment-alert digest to recipients. Continue?", "scanAlertsConfirm": "This scans the current payment plan and creates pending alerts. It does not send them yet. Continue?"},
"contractPaymentReview": {"title": "Contracts for Confirmation", "subtitle": "Contracts that do not match the equipment procurement synonym title groups, fail payment-ratio validation, or conflict with OA fields are excluded from payment alerts. Download the original contract to verify it.", "searchPlaceholder": "Contract number, purchase order, supplier, or applicant", "loadFailed": "Failed to load contracts for confirmation", "contractWorkflow": "Contract / application workflow number", "reason": "Reason for confirmation", "fallbackIssue": "Parsing result requires manual confirmation", "empty": "No contracts need confirmation", "manualTitle": "Review payment stages", "manualSubtitle": "{supplier} · PO {purchaseOrder}. Recognized stages are filled in and can be edited.", "backToReview": "Back to pending", "confirmLedger": "Add to ledger", "confirmSuccess": "Added to the contract ledger", "issueTitle": "Parse notes", "contractNoOptional": "Contract number (optional)", "contractNoPlaceholder": "Not found in the attachment", "percentage": "Percent %", "stageAmount": "Amount", "basisDate": "Date basis", "noStage": "No such stage", "ruleIdentity": "Purchase order and contract amount are valid", "rulePercent": "Enabled percentages total 100%. A blank percentage is not zero", "ruleAmount": "Each enabled amount equals the contract amount times its percentage", "ruleDate": "Prepayment and shipment payment need a date basis", "hintPrepayment": "Date basis is the contract archive date. Enter the deposit or prepayment percentage from the contract.", "hintShipment": "Date basis is the delivery date. If the contract only says “N days after the deposit”, enter a calendar date.", "hintAcceptance": "Date basis is the acceptance archive date. Leave it empty if acceptance is not archived yet.", "hintWarranty": "Check “No such stage” when there is no warranty payment share. A warranty period is not a percentage.", "formLoadFailed": "Failed to load the review form", "submitFailed": "Failed to submit the review", "manualAction": "Manual review", "fillHintTitle": "How to fill in"},
"contractPaymentReparse": {"action": "Reparse contract original", "success": "Reparsed with attachment “{attachment}”", "failed": "Failed to reparse contract"},
"contractPaymentReview": {"title": "Contracts for Confirmation", "subtitle": "Contracts that do not match the equipment procurement synonym title groups, fail payment-ratio validation, or conflict with OA fields are excluded from payment alerts. Download the original contract to verify it.", "searchPlaceholder": "Contract number, purchase order, supplier, or applicant", "loadFailed": "Failed to load contracts for confirmation", "contractWorkflow": "Contract / workflow number", "reason": "Reason for confirmation", "fallbackIssue": "Parsing result requires manual confirmation", "empty": "No contracts need confirmation", "manualTitle": "Review payment stages", "manualSubtitle": "{supplier} · PO {purchaseOrder}. Recognized stages are filled in and can be edited.", "backToReview": "Back to pending", "confirmLedger": "Add to ledger", "confirmSuccess": "Added to the contract ledger", "issueTitle": "Parse notes", "contractNoOptional": "Contract number (optional)", "contractNoPlaceholder": "Not found in the attachment", "percentage": "Percent %", "stageAmount": "Amount", "basisDate": "Date basis", "noStage": "No such stage", "ruleIdentity": "Purchase order and contract amount are valid", "rulePercent": "Enabled percentages total 100%. A blank percentage is not zero", "ruleAmount": "Each enabled amount equals the contract amount times its percentage", "ruleDate": "Prepayment and shipment payment need a date basis", "hintPrepayment": "Date basis is the contract archive date. Enter the deposit or prepayment percentage from the contract.", "hintShipment": "Date basis is the delivery date. If the contract only says “N days after the deposit”, enter a calendar date.", "hintAcceptance": "Date basis is the acceptance archive date. Leave it empty if acceptance is not archived yet.", "hintWarranty": "Check “No such stage” when there is no warranty payment share. A warranty period is not a percentage.", "formLoadFailed": "Failed to load the review form", "submitFailed": "Failed to submit the review", "manualAction": "Manual review", "fillHintTitle": "How to fill in"},
"contractPaymentReview": {"title": "Contracts for Confirmation", "subtitle": "Contracts that do not match the equipment procurement synonym title groups, fail payment-ratio validation, or conflict with OA fields are excluded from payment alerts. Download the original contract to verify it.", "searchPlaceholder": "Contract number, purchase order, supplier, or applicant", "loadFailed": "Failed to load contracts for confirmation", "contractWorkflow": "Contract / application workflow number", "reason": "Reason for confirmation", "fallbackIssue": "Parsing result requires manual confirmation", "empty": "No contracts need confirmation", "manualTitle": "Review payment stages", "manualSubtitle": "{supplier} · PO {purchaseOrder}. Recognized stages are filled in and can be edited.", "backToReview": "Back to pending", "confirmLedger": "Add to ledger", "confirmSuccess": "Added to the contract ledger", "issueTitle": "Parse notes", "contractNoOptional": "Contract number (optional)", "contractNoPlaceholder": "Not found in the attachment", "percentage": "Percent %", "stageAmount": "Amount", "basisDate": "Date basis", "noStage": "No such stage", "ruleIdentity": "Purchase order and contract amount are valid", "rulePercent": "Enabled percentages total 100%. A blank percentage is not zero", "ruleAmount": "Each enabled amount equals the contract amount times its percentage", "ruleDate": "Prepayment and shipment payment need a date basis", "hintPrepayment": "Date basis is the contract archive date. Enter the deposit or prepayment percentage from the contract.", "hintShipment": "Date basis is the delivery date. If the contract only says “N days after the deposit”, enter a calendar date.", "hintAcceptance": "Date basis is the acceptance archive date. Leave it empty if acceptance is not archived yet.", "hintWarranty": "Check “No such stage” when there is no warranty payment share. A warranty period is not a percentage.", "formLoadFailed": "Failed to load the review form", "submitFailed": "Failed to submit the review", "manualAction": "Manual review", "fillHintTitle": "How to fill in"},
"procurementContract": {
"title": "Procurement Contract Review",
"subtitle": "Manage templates, risk red-line rules, and review history",
+4 -4
View File
@@ -4680,11 +4680,11 @@
}
},
"contractPayment": {
"title": "แจ้งเตือนการชำระเงินตามสัญญา", "subtitle": "ซิงก์สัญญา OA การรับมอบ และคำขอเบิกเงินล่วงหน้าของผู้ขาย พร้อมแจ้งเตือน 3 ระดับ", "sessionHint": "ระยะนี้ยังไม่ใช้แชทและประวัติการสนทนา เปิดบัญชีจากแท็บด้านบน", "sync": "ซิงก์ข้อมูล OA", "moreActions": "เพิ่มเติม", "forceSync": "เขียนทับฟิลด์ OA แบบบังคับ", "forceSyncConfirm": "ระบบจะเขียนทับข้อมูล OA เดิมด้วยฟิลด์ที่ไม่ว่างจาก OA ครั้งนี้และบันทึกการตรวจสอบ ต้องการดำเนินการต่อหรือไม่?", "reparseExisting": "แยกวิเคราะห์สัญญาเดิมทั้งหมดใหม่", "reparseExistingConfirm": "ระบบจะรีเฟรชผลการแยกข้อมูลของสัญญาเดิมทั้งหมดจากไฟล์แนบที่จัดเก็บตามกฎปัจจุบัน โดยจะไม่ซิงก์หรือเขียนทับฟิลด์ OA ต้องการดำเนินการต่อหรือไม่?", "scanAlerts": "สแกนเพื่อสร้างแจ้งเตือน", "jobSubmitted": "ส่งงานแล้ว", "actionFailed": "ดำเนินการไม่สำเร็จ", "loadFailed": "โหลดสัญญาไม่สำเร็จ", "searchPlaceholder": "ค้นหาเลขที่สัญญา ใบสั่งซื้อ ผู้ขาย หรือผู้ขอ", "allStatus": "ทั้งหมด", "search": "ค้นหา", "ledger": "ทะเบียนสัญญา", "items": "รายการ", "empty": "ไม่มีข้อมูลสัญญา", "purchaseOrder": "ใบสั่งซื้อ", "supplier": "ผู้ขาย", "amount": "มูลค่าสัญญา", "deliveryDate": "กำหนดส่งมอบ", "timeline": "ไทม์ไลน์แผนการชำระเงิน", "notAvailable": "—", "stats": {"contracts": "สัญญา", "pendingParse": "สัญญาที่รอดำเนินการ", "readyPlans": "แผนพร้อมใช้", "alerts": "จุดแจ้งเตือน"}, "ledgerFocus": {"due": "ใกล้ครบกำหนด", "dueHint": "ใน 7 วัน", "overdue": "ค้างชำระเกินกำหนด", "active": "ยังไม่ถึงกำหนด", "activeHint": "เกิน 7 วัน", "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.", "acceptanceRule": "แจ้งเตือนวันที่ 30/40/60 หลังจัดเก็บใบรับมอบ; เงินประกันแจ้งก่อนครบกำหนด 7 วัน วันครบกำหนด และหลังครบกำหนด 14 วัน.", "pendingAlerts": "แจ้งเตือนที่รอดำเนินการ", "processing": "เริ่มชำระแล้ว", "dataPending": "รอข้อมูล", "paid": "ชำระแล้ว", "stagePaid": "ชำระแล้ว", "amountRatioDate": "จำนวนเงิน / สัดส่วน · วันที่", "applicant": "ผู้ขอ", "statusLabel": "สถานะ", "contractPrefix": "สัญญา", "datePendLine truncated
},
"contractPaymentReview": {"title": "สัญญาที่รอยืนยัน", "subtitle": "สัญญาที่ไม่ตรงกับกลุ่มหัวข้อคำพ้องของสัญญาจัดซื้ออุปกรณ์ ตรวจสอบสัดส่วนการชำระเงินไม่ผ่าน หรือขัดแย้งกับฟิลด์ OA จะไม่เข้าสู่การแจ้งเตือนการชำระเงิน โปรดดาวน์โหลดต้นฉบับเพื่อตรวจสอบ", "searchPlaceholder": "เลขที่สัญญา ใบสั่งซื้อ ผู้ขาย หรือผู้ขอ", "loadFailed": "โหลดสัญญาที่รอยืนยันไม่สำเร็จ", "contractWorkflow": "เลขที่สัญญา / เวิร์กโฟลว์", "reason": "เหตุผลที่ต้องยืนยัน", "fallbackIssue": "ผลการแยกข้อมูลต้องยืนยันโดยผู้ใช้", "empty": "ไม่มีสัญญาที่รอยืนยัน", "manualTitle": "ตรวจสอบงวดชำระ", "manualSubtitle": "{supplier} · ใบสั่งซื้อ {purchaseOrder} งวดที่ระบบอ่านได้ถูกเติมไว้แล้วและแก้ไขได้", "backToReview": "กลับไปรายการรอยืนยัน", "confirmLedger": "บันทึกเข้าบัญชีสัญญา", "confirmSuccess": "เข้าบัญชีสัญญาแล้ว", "issueTitle": "หมายเหตุจากการอ่านสัญญา", "contractNoOptional": "เลขที่สัญญา (ไม่บังคับ)", "contractNoPlaceholder": "ไม่พบเลขที่สัญญาในไฟล์แนบ", "percentage": "สัดส่วน %", "stageAmount": "จำนวนเงิน", "basisDate": "วันที่อ้างอิง", "noStage": "ไม่มีงวดนี้", "ruleIdentity": "เลขที่ใบสั่งซื้อและยอดสัญญาถูกต้อง", "rulePercent": "สัดส่วนของงวดที่เปิดใช้รวมกันต้องเป็น 100% ช่องว่างไม่นับเป็น 0", "ruleAmount": "จำนวนเงินของแต่ละงวดเท่ากับยอดสัญญาคูณสัดส่วน", "ruleDate": "เงินมัดจำและเงินค่าสินค้าต้องระบุวันที่อ้างอิง", "hintPrepayment": "วันที่อ้างอิงคือวันจัดเก็บสัญญา หากสัญญาระบุสัดส่วนเงินมัดจำ ให้กรอกที่นี่", "hintShipment": "วันที่อ้างอิงคือกำหนดส่งมอบ หากสัญญาเขียนเพียง “หลังรับเงินมัดจำ N วัน” ให้กรอกวันที่จริง", "hintAcceptance": "วันที่อ้างอิงคือวันจัดเก็บใบตรวจรับ ถ้ายังไม่จัดเก็บให้เว้นว่าง", "hintWarranty": "หากไม่มีสัดส่วนเงินประกันผลงาน ให้เลือกไม่มีงวดนี้ ระยะประกันไม่ใช่สัดส่วนการชำระ", "formLoadFailed": "เปิดแบบฟอร์มตรวจสอบไม่สำเร็จ", "submitFailed": "ส่งผลการตรวจสอบไม่สำเร็จ", "manualAction": "ตรวจสอบด้วยตนเอง", "fillHintTitle": "วิธีกรอก"},
"title": "แจ้งเตือนการชำระเงินตามสัญญา", "subtitle": "ซิงก์สัญญา OA การรับมอบ และคำขอเบิกเงินล่วงหน้าของผู้ขาย พร้อมแจ้งเตือน 3 ระดับ", "sessionHint": "ระยะนี้ยังไม่ใช้แชทและประวัติการสนทนา เปิดบัญชีจากแท็บด้านบน", "sync": "ซิงก์ข้อมูล OA", "moreActions": "เพิ่มเติม", "forceSync": "เขียนทับฟิลด์ OA แบบบังคับ", "forceSyncConfirm": "ระบบจะเขียนทับข้อมูล OA เดิมด้วยฟิลด์ที่ไม่ว่างจาก OA ครั้งนี้และบันทึกการตรวจสอบ ต้องการดำเนินการต่อหรือไม่?", "reparseExisting": "แยกวิเคราะห์สัญญาเดิมทั้งหมดใหม่", "reparseExistingConfirm": "ระบบจะรีเฟรชผลการแยกข้อมูลของสัญญาเดิมทั้งหมดจากไฟล์แนบที่จัดเก็บตามกฎปัจจุบัน โดยจะไม่ซิงก์หรือเขียนทับฟิลด์ OA ต้องการดำเนินการต่อหรือไม่?", "scanAlerts": "สแกนเพื่อสร้างแจ้งเตือน", "jobSubmitted": "ส่งงานแล้ว", "actionFailed": "ดำเนินการไม่สำเร็จ", "loadFailed": "โหลดสัญญาไม่สำเร็จ", "searchPlaceholder": "ค้นหาเลขที่สัญญา ใบสั่งซื้อ ผู้ขาย หรือผู้ขอ", "allStatus": "ทั้งหมด", "search": "ค้นหา", "ledger": "ทะเบียนสัญญา", "items": "รายการ", "empty": "ไม่มีข้อมูลสัญญา", "purchaseOrder": "ใบสั่งซื้อ", "supplier": "ผู้ขาย", "amount": "มูลค่าสัญญา", "deliveryDate": "กำหนดส่งมอบ", "timeline": "ไทม์ไลน์แผนการชำระเงิน", "notAvailable": "—", "stats": {"contracts": "สัญญา", "pendingParse": "สัญญาที่รอดำเนินการ", "readyPlans": "แผนพร้อมใช้", "alerts": "จุดแจ้งเตือน"}, "ledgerFocus": {"due": "ใกล้ครบกำหนด", "dueHint": "ใน 7 วัน", "overdue": "ค้างชำระเกินกำหนด", "active": "ยังไม่ถึงกำหนด", "activeHint": "เกิน 7 วัน", "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.", "acceptanceRule": "แจ้งเตือนวันที่ 30/40/60 หลังจัดเก็บใบรับมอบ; เงินประกันแจ้งก่อนครบกำหนด 7 วัน วันครบกำหนด และหลังครบกำหนด 14 วัน.", "pendingAlerts": "แจ้งเตือนที่รอดำเนินการ", "processing": "เริ่มชำระแล้ว", "dataPending": "รอข้อมูล", "paid": "ชำระแล้ว", "stagePaid": "ชำระแล้ว", "amountRatioDate": "จำนวนเงิน / สัดส่วน · วันที่", "applicant": "ผู้ขอ", "company": "บริษัท", "erpSchema": "ชุดบัญชี", "statuLine truncated
, "syncConfirm": "ระบบจะซิงก์ข้อมูลสัญญาและการรับมอบจาก OA และเติมเฉพาะช่องที่ว่างในบัญชี โดยไม่เขียนทับข้อมูลที่มีอยู่ ต้องการดำเนินการต่อหรือไม่?", "weeklySendConfirm": "ระบบจะส่งสรุปการแจ้งเตือนการชำระที่รอส่งของสัปดาห์นี้ให้ผู้รับ ต้องการดำเนินการต่อหรือไม่?", "scanAlertsConfirm": "ระบบจะสแกนแผนการชำระปัจจุบันและสร้างรายการแจ้งเตือนที่รอส่ง โดยยังไม่ส่งทันที ต้องการดำเนินการต่อหรือไม่?"},
"contractPaymentReview": {"title": "สัญญาที่รอยืนยัน", "subtitle": "สัญญาที่ไม่ตรงกับกลุ่มหัวข้อคำพ้องของสัญญาจัดซื้ออุปกรณ์ ตรวจสอบสัดส่วนการชำระเงินไม่ผ่าน หรือขัดแย้งกับฟิลด์ OA จะไม่เข้าสู่การแจ้งเตือนการชำระเงิน โปรดดาวน์โหลดต้นฉบับเพื่อตรวจสอบ", "searchPlaceholder": "เลขที่สัญญา ใบสั่งซื้อ ผู้ขาย หรือผู้ขอ", "loadFailed": "โหลดสัญญาที่รอยืนยันไม่สำเร็จ", "contractWorkflow": "เลขที่สัญญา / เวิร์กโฟลว์ใบสมัคร", "reason": "เหตุผลที่ต้องยืนยัน", "fallbackIssue": "ผลการแยกข้อมูลต้องยืนยันโดยผู้ใช้", "empty": "ไม่มีสัญญาที่รอยืนยัน", "manualTitle": "ตรวจสอบงวดชำระ", "manualSubtitle": "{supplier} · ใบสั่งซื้อ {purchaseOrder} งวดที่ระบบอ่านได้ถูกเติมไว้แล้วและแก้ไขได้", "backToReview": "กลับไปรายการรอยืนยัน", "confirmLedger": "บันทึกเข้าบัญชีสัญญา", "confirmSuccess": "เข้าบัญชีสัญญาแล้ว", "issueTitle": "หมายเหตุจากการอ่านสัญญา", "contractNoOptional": "เลขที่สัญญา (ไม่บังคับ)", "contractNoPlaceholder": "ไม่พบเลขที่สัญญาในไฟล์แนบ", "percentage": "สัดส่วน %", "stageAmount": "จำนวนเงิน", "basisDate": "วันที่อ้างอิง", "noStage": "ไม่มีงวดนี้", "ruleIdentity": "เลขที่ใบสั่งซื้อและยอดสัญญาถูกต้อง", "rulePercent": "สัดส่วนของงวดที่เปิดใช้รวมกันต้องเป็น 100% ช่องว่างไม่นับเป็น 0", "ruleAmount": "จำนวนเงินของแต่ละงวดเท่ากับยอดสัญญาคูณสัดส่วน", "ruleDate": "เงินมัดจำและเงินค่าสินค้าต้องระบุวันที่อ้างอิง", "hintPrepayment": "วันที่อ้างอิงคือวันจัดเก็บสัญญา หากสัญญาระบุสัดส่วนเงินมัดจำ ให้กรอกที่นี่", "hintShipment": "วันที่อ้างอิงคือกำหนดส่งมอบ หากสัญญาเขียนเพียง “หลังรับเงินมัดจำ N วัน” ให้กรอกวันที่จริง", "hintAcceptance": "วันที่อ้างอิงคือวันจัดเก็บใบตรวจรับ ถ้ายังไม่จัดเก็บให้เว้นว่าง", "hintWarranty": "หากไม่มีสัดส่วนเงินประกันผลงาน ให้เลือกไม่มีงวดนี้ ระยะประกันไม่ใช่สัดส่วนการชำระ", "formLoadFailed": "เปิดแบบฟอร์มตรวจสอบไม่สำเร็จ", "submitFailed": "ส่งผลการตรวจสอบไม่สำเร็จ", "manualAction": "ตรวจสอบด้วยตนเอง", "fillHintTitle": "วิธีกรอก"},
"contractPaymentReparse": {"action": "แยกข้อมูลจากต้นฉบับอีกครั้ง", "success": "แยกข้อมูลใหม่ด้วยไฟล์แนบ “{attachment}” แล้ว", "failed": "แยกข้อมูลสัญญาใหม่ไม่สำเร็จ"},
"contractPaymentReview": {"title": "สัญญาที่รอยืนยัน", "subtitle": "สัญญาที่ไม่ตรงกับกลุ่มหัวข้อคำพ้องของสัญญาจัดซื้ออุปกรณ์ ตรวจสอบสัดส่วนการชำระเงินไม่ผ่าน หรือขัดแย้งกับฟิลด์ OA จะไม่เข้าสู่การแจ้งเตือนการชำระเงิน โปรดดาวน์โหลดต้นฉบับเพื่อตรวจสอบ", "searchPlaceholder": "เลขที่สัญญา ใบสั่งซื้อ ผู้ขาย หรือผู้ขอ", "loadFailed": "โหลดสัญญาที่รอยืนยันไม่สำเร็จ", "contractWorkflow": "เลขที่สัญญา / เวิร์กโฟลว์", "reason": "เหตุผลที่ต้องยืนยัน", "fallbackIssue": "ผลการแยกข้อมูลต้องยืนยันโดยผู้ใช้", "empty": "ไม่มีสัญญาที่รอยืนยัน", "manualTitle": "ตรวจสอบงวดชำระ", "manualSubtitle": "{supplier} · ใบสั่งซื้อ {purchaseOrder} งวดที่ระบบอ่านได้ถูกเติมไว้แล้วและแก้ไขได้", "backToReview": "กลับไปรายการรอยืนยัน", "confirmLedger": "บันทึกเข้าบัญชีสัญญา", "confirmSuccess": "เข้าบัญชีสัญญาแล้ว", "issueTitle": "หมายเหตุจากการอ่านสัญญา", "contractNoOptional": "เลขที่สัญญา (ไม่บังคับ)", "contractNoPlaceholder": "ไม่พบเลขที่สัญญาในไฟล์แนบ", "percentage": "สัดส่วน %", "stageAmount": "จำนวนเงิน", "basisDate": "วันที่อ้างอิง", "noStage": "ไม่มีงวดนี้", "ruleIdentity": "เลขที่ใบสั่งซื้อและยอดสัญญาถูกต้อง", "rulePercent": "สัดส่วนของงวดที่เปิดใช้รวมกันต้องเป็น 100% ช่องว่างไม่นับเป็น 0", "ruleAmount": "จำนวนเงินของแต่ละงวดเท่ากับยอดสัญญาคูณสัดส่วน", "ruleDate": "เงินมัดจำและเงินค่าสินค้าต้องระบุวันที่อ้างอิง", "hintPrepayment": "วันที่อ้างอิงคือวันจัดเก็บสัญญา หากสัญญาระบุสัดส่วนเงินมัดจำ ให้กรอกที่นี่", "hintShipment": "วันที่อ้างอิงคือกำหนดส่งมอบ หากสัญญาเขียนเพียง “หลังรับเงินมัดจำ N วัน” ให้กรอกวันที่จริง", "hintAcceptance": "วันที่อ้างอิงคือวันจัดเก็บใบตรวจรับ ถ้ายังไม่จัดเก็บให้เว้นว่าง", "hintWarranty": "หากไม่มีสัดส่วนเงินประกันผลงาน ให้เลือกไม่มีงวดนี้ ระยะประกันไม่ใช่สัดส่วนการชำระ", "formLoadFailed": "เปิดแบบฟอร์มตรวจสอบไม่สำเร็จ", "submitFailed": "ส่งผลการตรวจสอบไม่สำเร็จ", "manualAction": "ตรวจสอบด้วยตนเอง", "fillHintTitle": "วิธีกรอก"},
"contractPaymentReview": {"title": "สัญญาที่รอยืนยัน", "subtitle": "สัญญาที่ไม่ตรงกับกลุ่มหัวข้อคำพ้องของสัญญาจัดซื้ออุปกรณ์ ตรวจสอบสัดส่วนการชำระเงินไม่ผ่าน หรือขัดแย้งกับฟิลด์ OA จะไม่เข้าสู่การแจ้งเตือนการชำระเงิน โปรดดาวน์โหลดต้นฉบับเพื่อตรวจสอบ", "searchPlaceholder": "เลขที่สัญญา ใบสั่งซื้อ ผู้ขาย หรือผู้ขอ", "loadFailed": "โหลดสัญญาที่รอยืนยันไม่สำเร็จ", "contractWorkflow": "เลขที่สัญญา / เวิร์กโฟลว์ใบสมัคร", "reason": "เหตุผลที่ต้องยืนยัน", "fallbackIssue": "ผลการแยกข้อมูลต้องยืนยันโดยผู้ใช้", "empty": "ไม่มีสัญญาที่รอยืนยัน", "manualTitle": "ตรวจสอบงวดชำระ", "manualSubtitle": "{supplier} · ใบสั่งซื้อ {purchaseOrder} งวดที่ระบบอ่านได้ถูกเติมไว้แล้วและแก้ไขได้", "backToReview": "กลับไปรายการรอยืนยัน", "confirmLedger": "บันทึกเข้าบัญชีสัญญา", "confirmSuccess": "เข้าบัญชีสัญญาแล้ว", "issueTitle": "หมายเหตุจากการอ่านสัญญา", "contractNoOptional": "เลขที่สัญญา (ไม่บังคับ)", "contractNoPlaceholder": "ไม่พบเลขที่สัญญาในไฟล์แนบ", "percentage": "สัดส่วน %", "stageAmount": "จำนวนเงิน", "basisDate": "วันที่อ้างอิง", "noStage": "ไม่มีงวดนี้", "ruleIdentity": "เลขที่ใบสั่งซื้อและยอดสัญญาถูกต้อง", "rulePercent": "สัดส่วนของงวดที่เปิดใช้รวมกันต้องเป็น 100% ช่องว่างไม่นับเป็น 0", "ruleAmount": "จำนวนเงินของแต่ละงวดเท่ากับยอดสัญญาคูณสัดส่วน", "ruleDate": "เงินมัดจำและเงินค่าสินค้าต้องระบุวันที่อ้างอิง", "hintPrepayment": "วันที่อ้างอิงคือวันจัดเก็บสัญญา หากสัญญาระบุสัดส่วนเงินมัดจำ ให้กรอกที่นี่", "hintShipment": "วันที่อ้างอิงคือกำหนดส่งมอบ หากสัญญาเขียนเพียง “หลังรับเงินมัดจำ N วัน” ให้กรอกวันที่จริง", "hintAcceptance": "วันที่อ้างอิงคือวันจัดเก็บใบตรวจรับ ถ้ายังไม่จัดเก็บให้เว้นว่าง", "hintWarranty": "หากไม่มีสัดส่วนเงินประกันผลงาน ให้เลือกไม่มีงวดนี้ ระยะประกันไม่ใช่สัดส่วนการชำระ", "formLoadFailed": "เปิดแบบฟอร์มตรวจสอบไม่สำเร็จ", "submitFailed": "ส่งผลการตรวจสอบไม่สำเร็จ", "manualAction": "ตรวจสอบด้วยตนเอง", "fillHintTitle": "วิธีกรอก"},
"procurementContract": {
"title": "ตรวจสอบสัญญาจัดซื้อ",
"subtitle": "จัดการเทมเพลต กฎเส้นแดงความเสี่ยง และประวัติการตรวจสอบ",
+5 -5
View File
@@ -177,7 +177,7 @@
"identity_rule_set": "客户识别规则集",
"identity_rule": "客户识别规则"
}
},
, "syncConfirm": "将从 OA 同步合同与验收数据,只补全台账中的空字段,不会覆盖已有内容。是否继续?", "weeklySendConfirm": "将把本周待发送的付款预警汇总发给收件人。是否继续?", "scanAlertsConfirm": "将按当前付款计划扫描并生成待发送预警,不会立即发送。是否继续?"},
"shippingOrderExtractionRuns": {
"eyebrow": "只读运行诊断",
"title": "识别任务",
@@ -4829,10 +4829,10 @@
"prepaymentRule": "合同归档后第 7/14/21 天预警;请款以 OA 厂商预付款请款作业为准。",
"shipmentRule": "交货期限前 7 天、到期日、到期后 14 天预警;请款以 OA 厂商预付款请款作业为准。",
"acceptanceRule": "验收归档后第 30/40/60 天预警;质保款在质保到期前 7 天、到期日、到期后 14 天预警。",
"pendingAlerts": "待处理预警", "processing": "已发起付款", "dataPending": "数据待确认", "paid": "已付款", "stagePaid": "已付", "amountRatioDate": "金额 / 比例 · 日期", "applicant": "申请人", "statusLabel": "状态", "contractPrefix": "合同", "datePending": "待补充日期", "statusNormal": "正常", "statusNeedsCompletion": "待补充", "statusOverdue": "已逾期", "statusUpcoming": "即将到期", "statusActive": "未到期", "statusCompleted": "已完成",
"totalPrefix": "共", "contractSupplier": "合同号 / 供应商", "nextAlert": "下一预警", "triggerBasis": "触发依据", "alertDate": "预警日期", "alertRuleHint": "每阶段按自然日提醒三轮,到日后并入最近的周五 18:00 汇总发送。没有对应日期则不提醒。\n预付款:合同归档日后第 7、14、21 天(页面显示首轮)\n出货款:交货期限前 7 天、当天、后 14 天\n验收款:验收单归档后第 30、40、60 天\n质保款:质保到期前 7 天、当天、后 14 天", "alertFirstRound": "首轮", "payDate": "付款日期", "processStatus": "处理状态", "owner": "采购负责人", "oaData": "OA 数据", "contractRule": "合同规则", "ownerDefault": "采购负责人", "workflowNo": "流程编号", "contractNoPending": "合同号待从附件解析", "synced": "已同步", "detailSubtitle": "OA 数据、付款节点与企业微信提醒记录", "backToOverview": "返回总览", "contractInfo": "OA 合同信息", "alertHistory": "预警记录", "alertRound": "第 {round} 次预警", "alertAudit": "预警发送记录", "alertAuditEmpty": "暂无预警记录", "alertNode": "付款节点", "alertScheduledAt": "计划日期", "alertSentAt": "发送时间", "alertStatus": {"pending": "待发送", "sent": "已发送", "failed": "发送失败"}, "roundValue": "第 {round} 次", "weeklyBatchesTitle": "周汇总批次", "weeklyBatchesSubtitle": "查看按收件人生成的付款预警周汇总、Excel 附件及发送记录。", "weeklySend": "发送预警", "weeklyBatchSubmitted": "发送预警任务已提交", "weeklyJobSent": "已发送 {sent} 个批次", "weeklyJobFailed": "{failed} 个批次发送失败,列表已更新,可点击失败图标查看原因", "weeklyJobPartial": "已发送 {sent} 个批次,另有 {failed} 个失败", "weeklyJobEmpty": "没有待发送的预警,批次记录不会变化", "weeklyJobTimeout": "发送任务仍在后台执行,请稍后重新打开本页查看", "weeklyJobError": "发送任务执行失败", "weeklyBatchesLoadFailed": "加载周汇总批次失败", "batchNo": "批次号", "weekKey": "周次", "batchStatusLabel": "发送状态", "batchFailureReason": "失败原因", "batchFailureReasonEmpty": "未记录具体失败原因", "batchFailureReasonAria": "查看发送失败原因", "batchFailureReasonLine": "{reason}:{detail}", "batchFailureReasonCode": {"notify_disabled": "企业微信通知未启用", "event_disabled": "合同付款预警通知事件未启用", "user_unbound": "收件人未绑定企业微信账号", "textcard_failed": "企业微信卡片发送失败", "file_upload_failed": "企业微信附件上传失败", "file_failed": "企业微信附件发送失败", "unknown": "发送失败"}, "batchTotal": "汇总笔数", "batchExcel": "Excel 附件", "batchSentAt": "发送时间", "weeklyBatchesEmpty": "暂无周汇总批次", "weeklyPendingSummary": "本周待发送 {count} 笔 · 下次发送 {datetime}", "weeklyPendingCountOnly": "本周待发送 {count} 笔", "downloadExcel": "下载 Excel", "excelDownloadFailed": "下载预警附件失败", "batchStatus": {"pending": "待发送", "sent": "已发送", "failed": "发送失败", "processing": "处理中", "resolved": "已停止提醒"}, "backToLedger": "返回", "detailLoadFailed": "加载合同详情失败", "detailLoading": "正在加载合同详情…", "detailOverview": "合同概览", "detailAttachments": "原文附件", "detailPaymentPlan": "付款计划", "detailAlertHistory": "预警记录", "archiveDate": "合同归档日期", "archiveDateHint": "该日期为合同申请单的归档日期", "parseStatus": "解析状态", "parseIssueTitle": "解析提示", "planStatus": "计划状态", "attachmentsEmpty": "暂无已归档的合同原文附件", "downloadAttachment": "下载附件", "previewAttachment": "预览", "attachmentPreviewFailed": "附件预览失败", "attachmentPreviewUnsupported": "该格式暂不支持在线预览,请下载后查看", "attachmentDownloadFailed": "下载合同附件失败", "paymentPlanEmpty": "暂无可展示的付款计划", "anchorDate": "日期依据", "nodeStatus": {"pending": "待处理", "active": "进行中", "paid": "已付", "processing": "处理中", "resolved": "已停止提醒", "upcoming": "即将到期", "notStarted": "待起算", "overdue": "已逾期", "review": "待复核", "notApplicable": "无此阶段"}, "reparse": "重新解析合同原文", "reparseSuccess": "已使用附件“{attachment}”重新解析", "reparseFailed": "重新解析合同失败", "reviewTitle": "待确认合同", "reviewSubtitle": "未匹配设备采购合同同义标题组、付款比例校验失败或关键字段冲突的合同不会进入付款预警,请下载原文核对。", "reviewSearchPlaceholder": "合同编号、采购编号或供应商", "reviewLoadFailed": "待确认合同加载失败", "reviewContractWorkflow": "合同号 / 流程编号", "reviewReason": "待确认原因", "reviewFallbackIssuLine truncated
},
"contractPaymentReview": {"title": "待确认合同", "subtitle": "未匹配设备采购合同同义标题组、付款比例校验失败或关键字段冲突的合同不会进入付款预警,请下载原文核对。", "searchPlaceholder": "合同编号、采购编号、供应商或申请人", "loadFailed": "待确认合同加载失败", "contractWorkflow": "合同号 / 流程编号", "reason": "待确认原因", "fallbackIssue": "解析结果待人工确认", "empty": "暂无待确认合同", "manualTitle": "复核付款阶段", "manualSubtitle": "{supplier} · 采购单号 {purchaseOrder}。已识别的阶段已填入,可改。", "backToReview": "返回待确认", "confirmLedger": "确认进入台账", "confirmSuccess": "已进入合同台账", "issueTitle": "解析提示", "contractNoOptional": "合同编号(可空)", "contractNoPlaceholder": "附件未识别出合同号", "percentage": "比例 %", "stageAmount": "金额", "basisDate": "日期依据", "noStage": "无此阶段", "ruleIdentity": "采购单号和合同金额有效", "rulePercent": "启用阶段的比例合计为 100%,空比例不算 0", "ruleAmount": "每个启用阶段的金额等于合同金额乘以比例", "ruleDate": "预付款、出货款须填写日期依据", "hintPrepayment": "日期依据是合同归档日。正文写了定金或预付款比例时填在这里。", "hintShipment": "日期依据是交货期限。正文只有“收到定金后 N 天”时,请填写具体日期。", "hintAcceptance": "日期依据是验收单归档日。还没归档可以留空。", "hintWarranty": "没有质保款比例时勾选无此阶段。质保期不是付款比例。", "formLoadFailed": "复核表单加载失败", "submitFailed": "复核提交失败", "manualAction": "人工复核", "fillHintTitle": "填写提示"},
"pendingAlerts": "待处理预警", "processing": "已发起付款", "dataPending": "数据待确认", "paid": "已付款", "stagePaid": "已付", "amountRatioDate": "金额 / 比例 · 日期", "applicant": "申请人", "company": "公司", "erpSchema": "付款账套", "statusLabel": "状态", "contractPrefix": "合同", "datePending": "待补充日期", "statusNormal": "正常", "statusNeedsCompletion": "待补充", "statusOverdue": "已逾期", "statusUpcoming": "即将到期", "statusActive": "未到期", "statusCompleted": "已完成",
"totalPrefix": "共", "contractSupplier": "合同号 / 供应商", "nextAlert": "下一预警", "triggerBasis": "触发依据", "alertDate": "预警日期", "alertRuleHint": "每阶段按自然日提醒三轮,到日后并入最近的周五 18:00 汇总发送。没有对应日期则不提醒。\n预付款:合同归档日后第 7、14、21 天(页面显示首轮)\n出货款:交货期限前 7 天、当天、后 14 天\n验收款:验收单归档后第 30、40、60 天\n质保款:质保到期前 7 天、当天、后 14 天", "alertFirstRound": "首轮", "payDate": "付款日期", "processStatus": "处理状态", "owner": "采购负责人", "oaData": "OA 数据", "contractRule": "合同规则", "ownerDefault": "采购负责人", "workflowNo": "合同申请单流程编号", "contractNoPending": "合同号待从附件解析", "synced": "已同步", "detailSubtitle": "OA 数据、付款节点与企业微信提醒记录", "backToOverview": "返回总览", "contractInfo": "OA 合同信息", "alertHistory": "预警记录", "alertRound": "第 {round} 次预警", "alertAudit": "预警发送记录", "alertAuditEmpty": "暂无预警记录", "alertNode": "付款节点", "alertScheduledAt": "计划日期", "alertSentAt": "发送时间", "alertStatus": {"pending": "待发送", "sent": "已发送", "failed": "发送失败"}, "roundValue": "第 {round} 次", "weeklyBatchesTitle": "周汇总批次", "weeklyBatchesSubtitle": "查看按收件人生成的付款预警周汇总、Excel 附件及发送记录。", "weeklySend": "发送预警", "weeklyBatchSubmitted": "发送预警任务已提交", "weeklyJobSent": "已发送 {sent} 个批次", "weeklyJobFailed": "{failed} 个批次发送失败,列表已更新,可点击失败图标查看原因", "weeklyJobPartial": "已发送 {sent} 个批次,另有 {failed} 个失败", "weeklyJobEmpty": "没有待发送的预警,批次记录不会变化", "weeklyJobTimeout": "发送任务仍在后台执行,请稍后重新打开本页查看", "weeklyJobError": "发送任务执行失败", "weeklyBatchesLoadFailed": "加载周汇总批次失败", "batchNo": "批次号", "weekKey": "周次", "batchStatusLabel": "发送状态", "batchFailureReason": "失败原因", "batchFailureReasonEmpty": "未记录具体失败原因", "batchFailureReasonAria": "查看发送失败原因", "batchFailureReasonLine": "{reason}:{detail}", "batchFailureReasonCode": {"notify_disabled": "企业微信通知未启用", "event_disabled": "合同付款预警通知事件未启用", "user_unbound": "收件人未绑定企业微信账号", "textcard_failed": "企业微信卡片发送失败", "file_upload_failed": "企业微信附件上传失败", "file_failed": "企业微信附件发送失败", "unknown": "发送失败"}, "batchTotal": "汇总笔数", "batchExcel": "Excel 附件", "batchSentAt": "发送时间", "weeklyBatchesEmpty": "暂无周汇总批次", "weeklyPendingSummary": "本周待发送 {count} 笔 · 下次发送 {datetime}", "weeklyPendingCountOnly": "本周待发送 {count} 笔", "downloadExcel": "下载 Excel", "excelDownloadFailed": "下载预警附件失败", "batchStatus": {"pending": "待发送", "sent": "已发送", "failed": "发送失败", "processing": "处理中", "resolved": "已停止提醒"}, "backToLedger": "返回", "detailLoadFailed": "加载合同详情失败", "detailLoading": "正在加载合同详情…", "detailOverview": "合同概览", "detailAttachments": "原文附件", "detailPaymentPlan": "付款计划", "detailAlertHistory": "预警记录", "archiveDate": "合同归档日期", "archiveDateHint": "该日期为合同申请单的归档日期", "parseStatus": "解析状态", "parseIssueTitle": "解析提示", "planStatus": "计划状态", "attachmentsEmpty": "暂无已归档的合同原文附件", "downloadAttachment": "下载附件", "previewAttachment": "预览", "attachmentPreviewFailed": "附件预览失败", "attachmentPreviewUnsupported": "该格式暂不支持在线预览,请下载后查看", "attachmentDownloadFailed": "下载合同附件失败", "paymentPlanEmpty": "暂无可展示的付款计划", "anchorDate": "日期依据", "nodeStatus": {"pending": "待处理", "active": "进行中", "paid": "已付", "processing": "处理中", "resolved": "已停止提醒", "upcoming": "即将到期", "notStarted": "待起算", "overdue": "已逾期", "review": "待复核", "notApplicable": "无此阶段"}, "reparse": "重新解析合同原文", "reparseSuccess": "已使用附件“{attachment}”重新解析", "reparseFailed": "重新解析合同失败", "reviewTitle": "待确认合同", "reviewSubtitle": "未匹配设备采购合同同义标题组、付款比例校验失败或关键字段冲突的合同不会进入付款预警,请下载原文核对。", "reviewSearchPlaceholder": "合同编号、采购编号或供应商", "reviewLoadFailed": "待确认合同加载失败", "reviewContractWorkflow": "合同号 / 合同申请单流程编号", "reviewReason": "待确Line truncated
, "syncConfirm": "将从 OA 同步合同与验收数据,只补全台账中的空字段,不会覆盖已有内容。是否继续?", "weeklySendConfirm": "将把本周待发送的付款预警汇总发给收件人。是否继续?", "scanAlertsConfirm": "将按当前付款计划扫描并生成待发送预警,不会立即发送。是否继续?"},
"contractPaymentReview": {"title": "待确认合同", "subtitle": "未匹配设备采购合同同义标题组、付款比例校验失败或关键字段冲突的合同不会进入付款预警,请下载原文核对。", "searchPlaceholder": "合同编号、采购编号、供应商或申请人", "loadFailed": "待确认合同加载失败", "contractWorkflow": "合同号 / 合同申请单流程编号", "reason": "待确认原因", "fallbackIssue": "解析结果待人工确认", "empty": "暂无待确认合同", "manualTitle": "复核付款阶段", "manualSubtitle": "{supplier} · 采购单号 {purchaseOrder}。已识别的阶段已填入,可改。", "backToReview": "返回待确认", "confirmLedger": "确认进入台账", "confirmSuccess": "已进入合同台账", "issueTitle": "解析提示", "contractNoOptional": "合同编号(可空)", "contractNoPlaceholder": "附件未识别出合同号", "percentage": "比例 %", "stageAmount": "金额", "basisDate": "日期依据", "noStage": "无此阶段", "ruleIdentity": "采购单号和合同金额有效", "rulePercent": "启用阶段的比例合计为 100%,空比例不算 0", "ruleAmount": "每个启用阶段的金额等于合同金额乘以比例", "ruleDate": "预付款、出货款须填写日期依据", "hintPrepayment": "日期依据是合同归档日。正文写了定金或预付款比例时填在这里。", "hintShipment": "日期依据是交货期限。正文只有“收到定金后 N 天”时,请填写具体日期。", "hintAcceptance": "日期依据是验收单归档日。还没归档可以留空。", "hintWarranty": "没有质保款比例时勾选无此阶段。质保期不是付款比例。", "formLoadFailed": "复核表单加载失败", "submitFailed": "复核提交失败", "manualAction": "人工复核", "fillHintTitle": "填写提示"},
"contractPaymentReparse": {"action": "重新解析合同原文", "success": "已使用附件“{attachment}”重新解析", "failed": "重新解析合同失败"},
"procurementContract": {
"title": "采购合同审查",
+4 -4
View File
@@ -4685,11 +4685,11 @@
}
},
"contractPayment": {
"title": "合約付款預警", "subtitle": "同步 OA 合約、驗收和廠商預付款請款作業,按三輪規則通知採購職位", "sessionHint": "本期不使用對話和歷史會話,請從上方 Tab 查看台帳。", "sync": "同步 OA 資料", "moreActions": "更多", "forceSync": "強制覆蓋 OA 欄位", "forceSyncConfirm": "將以本次 OA 回傳的非空欄位覆蓋既有 OA 資料,並記錄變更稽核。是否繼續?", "reparseExisting": "批量重新解析既有合約", "reparseExistingConfirm": "將使用已歸檔的合約附件依目前規則更新所有既有合約的解析結果,不會同步或覆蓋 OA 欄位。是否繼續?", "scanAlerts": "掃描產生預警", "jobSubmitted": "工作已提交", "actionFailed": "操作失敗", "loadFailed": "載入合約失敗", "searchPlaceholder": "搜尋合約編號、採購單號、供應商或申請人", "allStatus": "全部", "search": "查詢", "ledger": "合約台帳", "items": "筆", "empty": "暫無合約資料", "purchaseOrder": "採購單號", "supplier": "供應商", "amount": "合約金額", "deliveryDate": "交貨期限", "timeline": "付款計畫時間線", "notAvailable": "—", "stats": {"contracts": "合約總數", "pendingParse": "待處理合約", "readyPlans": "計畫已產生", "alerts": "待預警節點"}, "ledgerFocus": {"due": "即將到期", "dueHint": "7日內", "overdue": "逾期未付", "active": "未到期", "activeHint": "7日外", "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 廠商預付款請款作業為準。", "acceptanceRule": "驗收歸檔後第 30/40/60 天預警;質保款在質保到期前 7 天、到期日、到期後 14 天預警。", "pendingAlerts": "待處理預警", "processing": "已發起付款", "dataPending": "資料待確認", "paid": "已付款", "stagePaid": "已付", "amountRatioDate": "金額 / 比例 · 日期", "applicant": "申請人", "statusLabel": "狀態", "contractPrefix": "合約", "datePending": "待補充日期", "statusNormal": "正常", "statusNeedsCompletion": "待補充", "statusOverdue": "已逾期", "statusUpcoming": "即將到期", "statusActive": "未到期", "statusCompleted": "已完成", "totalPrefix": "共", "contractSupplier": "合約號 / 供應商", "nextAlert": "下一預警", "triggerBasis": "觸發依據", "alertDate": "預警日期", "alertRuleHint": "每階段按自然日提醒三輪,到期後併入最近的週五 18:00 彙總發送。沒有對應日期則不提醒。\n預付款:合約歸檔日後第 7、14、21 天(頁面顯示首輪)\n出貨款:交貨期限前 7 天、當天、後 14 天\n驗收款:驗收單歸檔後第 30、40、60 天\n質保款:質保到期前 7 天、當天、後 14 天", "alertFirstRound": "首輪", "payDate": "付款日期", "processStatus": "處理狀態", "owner": "採購負責人", "oaData": "OA 資料", "contractRule": "合約規則", "ownerDefault": "採購負責人", "workflowNo": "流程編號", "contractNoPending": "合約號待從附件解析", "synced": "已同步", "detailSubtitle": "OA 資料、付款節點與企業微信提醒記錄", "backToOverview": "返回總覽", "contractInfo": "OA 合約資訊", "alertHistory": "預警記錄", "alertRound": "第 {round} 次預警", "alertAudit": "預警發送記錄", "alertAuditEmpty": "暫無預警記錄", "alertNode": "付款節點", "alertScheduledAt": "計畫日期", "alertSentAt": "發送時間", "alertStatus": {"pending": "待發送", "sent": "已發送", "failed": "發送失敗"}, "roundValue": "第 {round} 次", "weeklyBatchesTitle": "週彙總批次", "weeklyBatchesSubtitle": "查看依收件人產生的付款預警週彙總、Excel 附件與發送記錄。", "weeklySend": "傳送預警", "weeklyBatchSubmitted": "發送預警任務已提交", "weeklyJobSent": "已發送 {sent} 個批次", "weeklyJobFailed": "{failed} 個批次發送失敗,列表已更新,可點擊失敗圖示查看原因", "weeklyJobPartial": "已發送 {sent} 個批次,另有 {failed} 個失敗", "weeklyJobEmpty": "沒有待發送的預警,批次記錄不會變化", "weeklyJobTimeout": "發送任務仍在背景執行,請稍後重新開啟本頁查看", "weeklyJobError": "發送任務執行失敗", "weeklyBatchesLoadFailed": "載入週彙總批次失敗", "batchNo": "批次號", "weekKey": "週次", "batchStatusLabel": "發送狀態", "batchFailureReason": "失敗原因", "batchFailureReasonEmpty": "未記Line truncated
},
"contractPaymentReview": {"title": "待確認合約", "subtitle": "未符合設備採購合約同義標題組、付款比例驗證失敗或關鍵欄位衝突的合約,不會進入付款預警,請下載原文核對。", "searchPlaceholder": "合約編號、採購單號、供應商或申請人", "loadFailed": "待確認合約載入失敗", "contractWorkflow": "合約號 / 流程編號", "reason": "待確認原因", "fallbackIssue": "解析結果待人工確認", "empty": "暫無待確認合約", "manualTitle": "複核付款階段", "manualSubtitle": "{supplier} · 採購單號 {purchaseOrder}。已識別的階段已填入,可改。", "backToReview": "返回待確認", "confirmLedger": "確認進入台帳", "confirmSuccess": "已進入合同台帳", "issueTitle": "解析提示", "contractNoOptional": "合同編號(可空)", "contractNoPlaceholder": "附件未識別出合同號", "percentage": "比例 %", "stageAmount": "金額", "basisDate": "日期依據", "noStage": "無此階段", "ruleIdentity": "採購單號和合同金額有效", "rulePercent": "啟用階段的比例合計為 100%,空白比例不算 0", "ruleAmount": "每個啟用階段的金額等於合同金額乘以比例", "ruleDate": "預付款、出貨款須填寫日期依據", "hintPrepayment": "日期依據是合同歸檔日。正文寫了定金或預付款比例時填在這裡。", "hintShipment": "日期依據是交貨期限。正文只有「收到定金後 N 天」時,請填寫具體日期。", "hintAcceptance": "日期依據是驗收單歸檔日。尚未歸檔可以留空。", "hintWarranty": "沒有質保款比例時勾選無此階段。質保期不是付款比例。", "formLoadFailed": "複核表單載入失敗", "submitFailed": "複核提交失敗", "manualAction": "人工複核", "fillHintTitle": "填寫提示"},
"title": "合約付款預警", "subtitle": "同步 OA 合約、驗收和廠商預付款請款作業,按三輪規則通知採購職位", "sessionHint": "本期不使用對話和歷史會話,請從上方 Tab 查看台帳。", "sync": "同步 OA 資料", "moreActions": "更多", "forceSync": "強制覆蓋 OA 欄位", "forceSyncConfirm": "將以本次 OA 回傳的非空欄位覆蓋既有 OA 資料,並記錄變更稽核。是否繼續?", "reparseExisting": "批量重新解析既有合約", "reparseExistingConfirm": "將使用已歸檔的合約附件依目前規則更新所有既有合約的解析結果,不會同步或覆蓋 OA 欄位。是否繼續?", "scanAlerts": "掃描產生預警", "jobSubmitted": "工作已提交", "actionFailed": "操作失敗", "loadFailed": "載入合約失敗", "searchPlaceholder": "搜尋合約編號、採購單號、供應商或申請人", "allStatus": "全部", "search": "查詢", "ledger": "合約台帳", "items": "筆", "empty": "暫無合約資料", "purchaseOrder": "採購單號", "supplier": "供應商", "amount": "合約金額", "deliveryDate": "交貨期限", "timeline": "付款計畫時間線", "notAvailable": "—", "stats": {"contracts": "合約總數", "pendingParse": "待處理合約", "readyPlans": "計畫已產生", "alerts": "待預警節點"}, "ledgerFocus": {"due": "即將到期", "dueHint": "7日內", "overdue": "逾期未付", "active": "未到期", "activeHint": "7日外", "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 廠商預付款請款作業為準。", "acceptanceRule": "驗收歸檔後第 30/40/60 天預警;質保款在質保到期前 7 天、到期日、到期後 14 天預警。", "pendingAlerts": "待處理預警", "processing": "已發起付款", "dataPending": "資料待確認", "paid": "已付款", "stagePaid": "已付", "amountRatioDate": "金額 / 比例 · 日期", "applicant": "申請人", "company": "公司", "erpSchema": "付款帳套", "statusLabel": "狀態", "contractPrefix": "合約", "datePending": "待補充日期", "statusNormal": "正常", "statusNeedsCompletion": "待補充", "statusOverdue": "已逾期", "statusUpcoming": "即將到期", "statusActive": "未到期", "statusCompleted": "已完成", "totalPrefix": "共", "contractSupplier": "合約號 / 供應商", "nextAlert": "下一預警", "triggerBasis": "觸發依據", "alertDate": "預警日期", "alertRuleHint": "每階段按自然日提醒三輪,到期後併入最近的週五 18:00 彙總發送。沒有對應日期則不提醒。\n預付款:合約歸檔日後第 7、14、21 天(頁面顯示首輪)\n出貨款:交貨期限前 7 天、當天、後 14 天\n驗收款:驗收單歸檔後第 30、40、60 天\n質保款:質保到期前 7 天、當天、後 14 天", "alertFirstRound": "首輪", "payDate": "付款日期", "processStatus": "處理狀態", "owner": "採購負責人", "oaData": "OA 資料", "contractRule": "合約規則", "ownerDefault": "採購負責人", "workflowNo": "合約申請單流程編號", "contractNoPending": "合約號待從附件解析", "synced": "已同步", "detailSubtitle": "OA 資料、付款節點與企業微信提醒記錄", "backToOverview": "返回總覽", "contractInfo": "OA 合約資訊", "alertHistory": "預警記錄", "alertRound": "第 {round} 次預警", "alertAudit": "預警發送記錄", "alertAuditEmpty": "暫無預警記錄", "alertNode": "付款節點", "alertScheduledAt": "計畫日期", "alertSentAt": "發送時間", "alertStatus": {"pending": "待發送", "sent": "已發送", "failed": "發送失敗"}, "roundValue": "第 {round} 次", "weeklyBatchesTitle": "週彙總批次", "weeklyBatchesSubtitle": "查看依收件人產生的付款預警週彙總、Excel 附件與發送記錄。", "weeklySend": "傳送預警", "weeklyBatchSubmitted": "發送預警任務已提交", "weeklyJobSent": "已發送 {sent} 個批次", "weeklyJobFailed": "{failed} 個批次發送失敗,列表已更新,可點擊失敗圖示查看原因", "weeklyJobPartial": "已發送 {sent} 個批次,另有 {failed} 個失敗", "weeklyJobEmpty": "沒有待發送的預警,批次記錄不會變化", "weeklyJobTimeout": "發送任務仍在背景執行,請稍後重新開啟本頁查看", "weeklyJobError": "發送任務執行失敗", "weeklyBatchesLoadFailed": "載入週彙總批次失敗", "batchNo": "批次號", "weekKey": "週次", "batchStatusLabel": "發送狀態", "batchFLine truncated
, "syncConfirm": "將從 OA 同步合約與驗收資料,只補齊台帳中的空白欄位,不會覆蓋已有內容。是否繼續?", "weeklySendConfirm": "將把本週待發送的付款預警彙總發給收件人。是否繼續?", "scanAlertsConfirm": "將依目前付款計畫掃描並產生待發送預警,不會立即發送。是否繼續?"},
"contractPaymentReview": {"title": "待確認合約", "subtitle": "未符合設備採購合約同義標題組、付款比例驗證失敗或關鍵欄位衝突的合約,不會進入付款預警,請下載原文核對。", "searchPlaceholder": "合約編號、採購單號、供應商或申請人", "loadFailed": "待確認合約載入失敗", "contractWorkflow": "合約號 / 合約申請單流程編號", "reason": "待確認原因", "fallbackIssue": "解析結果待人工確認", "empty": "暫無待確認合約", "manualTitle": "複核付款階段", "manualSubtitle": "{supplier} · 採購單號 {purchaseOrder}。已識別的階段已填入,可改。", "backToReview": "返回待確認", "confirmLedger": "確認進入台帳", "confirmSuccess": "已進入合同台帳", "issueTitle": "解析提示", "contractNoOptional": "合同編號(可空)", "contractNoPlaceholder": "附件未識別出合同號", "percentage": "比例 %", "stageAmount": "金額", "basisDate": "日期依據", "noStage": "無此階段", "ruleIdentity": "採購單號和合同金額有效", "rulePercent": "啟用階段的比例合計為 100%,空白比例不算 0", "ruleAmount": "每個啟用階段的金額等於合同金額乘以比例", "ruleDate": "預付款、出貨款須填寫日期依據", "hintPrepayment": "日期依據是合同歸檔日。正文寫了定金或預付款比例時填在這裡。", "hintShipment": "日期依據是交貨期限。正文只有「收到定金後 N 天」時,請填寫具體日期。", "hintAcceptance": "日期依據是驗收單歸檔日。尚未歸檔可以留空。", "hintWarranty": "沒有質保款比例時勾選無此階段。質保期不是付款比例。", "formLoadFailed": "複核表單載入失敗", "submitFailed": "複核提交失敗", "manualAction": "人工複核", "fillHintTitle": "填寫提示"},
"contractPaymentReparse": {"action": "重新解析合約原文", "success": "已使用附件“{attachment}”重新解析", "failed": "重新解析合約失敗"},
"contractPaymentReview": {"title": "待確認合約", "subtitle": "未符合設備採購合約同義標題組、付款比例驗證失敗或關鍵欄位衝突的合約,不會進入付款預警,請下載原文核對。", "searchPlaceholder": "合約編號、採購單號、供應商或申請人", "loadFailed": "待確認合約載入失敗", "contractWorkflow": "合約號 / 流程編號", "reason": "待確認原因", "fallbackIssue": "解析結果待人工確認", "empty": "暫無待確認合約", "manualTitle": "複核付款階段", "manualSubtitle": "{supplier} · 採購單號 {purchaseOrder}。已識別的階段已填入,可改。", "backToReview": "返回待確認", "confirmLedger": "確認進入台帳", "confirmSuccess": "已進入合同台帳", "issueTitle": "解析提示", "contractNoOptional": "合同編號(可空)", "contractNoPlaceholder": "附件未識別出合同號", "percentage": "比例 %", "stageAmount": "金額", "basisDate": "日期依據", "noStage": "無此階段", "ruleIdentity": "採購單號和合同金額有效", "rulePercent": "啟用階段的比例合計為 100%,空白比例不算 0", "ruleAmount": "每個啟用階段的金額等於合同金額乘以比例", "ruleDate": "預付款、出貨款須填寫日期依據", "hintPrepayment": "日期依據是合同歸檔日。正文寫了定金或預付款比例時填在這裡。", "hintShipment": "日期依據是交貨期限。正文只有「收到定金後 N 天」時,請填寫具體日期。", "hintAcceptance": "日期依據是驗收單歸檔日。尚未歸檔可以留空。", "hintWarranty": "沒有質保款比例時勾選無此階段。質保期不是付款比例。", "formLoadFailed": "複核表單載入失敗", "submitFailed": "複核提交失敗", "manualAction": "人工複核", "fillHintTitle": "填寫提示"},
"contractPaymentReview": {"title": "待確認合約", "subtitle": "未符合設備採購合約同義標題組、付款比例驗證失敗或關鍵欄位衝突的合約,不會進入付款預警,請下載原文核對。", "searchPlaceholder": "合約編號、採購單號、供應商或申請人", "loadFailed": "待確認合約載入失敗", "contractWorkflow": "合約號 / 合約申請單流程編號", "reason": "待確認原因", "fallbackIssue": "解析結果待人工確認", "empty": "暫無待確認合約", "manualTitle": "複核付款階段", "manualSubtitle": "{supplier} · 採購單號 {purchaseOrder}。已識別的階段已填入,可改。", "backToReview": "返回待確認", "confirmLedger": "確認進入台帳", "confirmSuccess": "已進入合同台帳", "issueTitle": "解析提示", "contractNoOptional": "合同編號(可空)", "contractNoPlaceholder": "附件未識別出合同號", "percentage": "比例 %", "stageAmount": "金額", "basisDate": "日期依據", "noStage": "無此階段", "ruleIdentity": "採購單號和合同金額有效", "rulePercent": "啟用階段的比例合計為 100%,空白比例不算 0", "ruleAmount": "每個啟用階段的金額等於合同金額乘以比例", "ruleDate": "預付款、出貨款須填寫日期依據", "hintPrepayment": "日期依據是合同歸檔日。正文寫了定金或預付款比例時填在這裡。", "hintShipment": "日期依據是交貨期限。正文只有「收到定金後 N 天」時,請填寫具體日期。", "hintAcceptance": "日期依據是驗收單歸檔日。尚未歸檔可以留空。", "hintWarranty": "沒有質保款比例時勾選無此階段。質保期不是付款比例。", "formLoadFailed": "複核表單載入失敗", "submitFailed": "複核提交失敗", "manualAction": "人工複核", "fillHintTitle": "填寫提示"},
"procurementContract": {
"title": "採購合同審查",
"subtitle": "維護標準合同模板、風險紅線規則並查看審查歷史",