Merge branch 'dev' into order-delivery-reply

# Conflicts:
#	backend/app/__init__.py
#	backend/app/services/admin/permission_service.py
#	frontend/src/features/user/views/UserProfilePage.vue
#	frontend/src/locales/en/admin.json
#	frontend/src/locales/th/admin.json
#	frontend/src/locales/zh-CN/admin.json
#	frontend/src/locales/zh-TW/admin.json
This commit is contained in:
HTEWJ\26070045 committed 2026-09-29 15:08:04 +08:00
commit 42d8b70250
300 files changed
+32072 -6411

No files matched your search

+79 -195
View File
@@ -702,7 +702,7 @@
"movementStandardField": "Standard Movement Field",
"movementBindingLabel": "Movement Parsing Rule",
"movementBindingNone": "Not bound",
"movementBindingHint": "With a published movement rule bound, precheck reuses archived receipt files; when unbound, precheck will not trigger a fetch (fail-closed).",
"movementBindingHint": "With a published movement rule bound, matching reuses archived receipt files; when unbound, matching will not trigger a fetch (fail-closed).",
"movementFields": {
"doc_no": "Doc No.", "line_no": "Line No.", "in_out_flag": "In/Out Flag", "material_code": "Material Code",
"material_name": "Material Name", "warehouse_code": "Warehouse", "storage_code": "Storage Bin", "lot_no": "Lot No.",
@@ -2581,7 +2581,7 @@
"platformJobAccountingVoucherPoPrint": "Accounting voucher PO print",
"accountingVoucherPoPrintHint": "Every Tuesday at 05:00, fetch last month's invoices from ERP, generate purchase-order PDFs, and upload them to the PO-order folder—before the 06:00 check. Skip same names.",
"platformJobAccountingVoucherOaSalesRelease": "Accounting voucher sales-release fetch",
"accountingVoucherOaSalesReleaseHint": "Every Tuesday at 05:30, query last month's archived E10 sales-release forms, download their PDFs, and upload them to the sales-order folder—before the 06:00 check. Skip same names.",
"accountingVoucherOaSalesReleaseHint": "Every Tuesday at 05:30, query last month's archived E10 sales-release forms, download their PDFs, and upload them to the sales-release application folder—before the 06:00 check. Skip same names.",
"voucherCheckScope": "Ledger scope",
"voucherCheckProfile": "Business profile",
"voucherCheckNotifyMissing": "Notify on missing materials",
@@ -5019,191 +5019,11 @@
}
},
"contractPayment": {
"title": "Contract Payment Alerts",
"subtitle": "Sync OA contract, acceptance, and vendor prepayment requests; notify procurement roles through three escalation rounds.",
"sync": "Sync OA data",
"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",
"needsCompletion": "Needs completion",
"dueThisMonth": "Due this month",
"dueThisMonthHint": "this calendar month",
"active": "In progress"
},
"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",
"amountRatioDate": "Amount / ratio · date",
"applicant": "Applicant",
"statusLabel": "Status",
"contractPrefix": "Contract",
"datePending": "Date pending",
"statusNormal": "Normal",
"statusNeedsCompletion": "Needs completion",
"statusOverdue": "Overdue",
"statusUpcoming": "Due soon",
"statusActive": "In progress",
"statusCompleted": "Completed",
"totalPrefix": "Total",
"contractSupplier": "Contract / supplier",
"nextAlert": "Next alert",
"triggerBasis": "Trigger basis",
"alertDate": "Alert date",
"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",
"weeklyBatchesLoadFailed": "Failed to load weekly summary batches",
"batchNo": "Batch no.",
"weekKey": "Week",
"batchStatusLabel": "Delivery status",
"batchTotal": "Summary count",
"batchExcel": "Excel attachment",
"batchSentAt": "Sent at",
"weeklyBatchesEmpty": "No weekly summary batches",
"weeklyPendingSummary": "{count} pending this week · next send {datetime}",
"weeklyPendingCountOnly": "{count} pending this week",
"downloadExcel": "Download Excel",
"excelDownloadFailed": "Failed to download the alert attachment",
"batchStatus": {
"pending": "Pending",
"sent": "Sent",
"failed": "Failed",
"processing": "Processing",
"resolved": "Alerts stopped"
},
"backToLedger": "Back",
"detailLoadFailed": "Failed to load contract details",
"detailLoading": "Loading contract details…",
"detailOverview": "Contract Overview",
"detailAttachments": "Original Attachments",
"detailPaymentPlan": "Payment Plan",
"detailAlertHistory": "Alert History",
"archiveDate": "Contract archive date",
"archiveDateHint": "This date is when the contract application form was archived",
"parseStatus": "Parsing status",
"parseIssueTitle": "Parse issues",
"planStatus": "Plan status",
"attachmentsEmpty": "No archived original contract attachments",
"downloadAttachment": "Download",
"attachmentDownloadFailed": "Failed to download contract attachment",
"paymentPlanEmpty": "No payment plan to display",
"anchorDate": "Date basis",
"nodeStatus": {
"pending": "Pending",
"active": "Active",
"paid": "Paid",
"processing": "Processing",
"resolved": "Alerts stopped",
"upcoming": "Due soon",
"notStarted": "Not started",
"overdue": "Overdue",
"review": "Needs review"
},
"sessionHint": "Chat and history are hidden in this phase. Use the tabs above to open the ledger.",
"moreActions": "More",
"reparse": "Reparse contract original",
"reparseSuccess": "Reparsed with attachment \"{attachment}\"",
"reparseFailed": "Failed to reparse contract",
"reviewTitle": "Contracts Pending Confirmation",
"reviewSubtitle": "Contracts without matching title groups, failed payment-ratio validation, or key field conflicts will not enter payment alerts; download the original for review.",
"reviewSearchPlaceholder": "Contract no., purchase order no., or supplier",
"reviewLoadFailed": "Failed to load pending-confirmation contracts",
"reviewContractWorkflow": "Contract No. / Workflow No.",
"reviewReason": "Pending-confirmation reason",
"reviewFallbackIssue": "Parse result requires manual confirmation",
"reviewEmpty": "No contracts pending confirmation"
},
"contractPaymentReview": {
"title": "Contracts for Confirmation",
"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, or supplier",
"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"
},
"contractPaymentReparse": {
"action": "Reparse contract original",
"success": "Reparsed with attachment “{attachment}”",
"failed": "Failed to reparse contract"
},
"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", "markPaid": "Mark as paid", "markPaidTitle": "Mark as paid", "markPaidHint": "{stage} · {amount} / {percent}%. Only this stage is updated. Unsent alerts are closed; sent records stay.", "markPaidDate": "Payment date", "markPaidRemark": "Note (optional)", "markPaidRemarkPlaceholder": "For example: finance confirmed payment, ERP number did not match", "markPaidConfirm": "Confirm paid", "markPaidSource": "Source: marked manually", "markPaidSuccess": "Marked as paid", "markPaidFailed": "Could not mark as paid", "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 SummLine 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 / 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",
@@ -5564,7 +5384,8 @@
"interface": "Interface Definitions",
"binding": "Bindings",
"credential": "Credential References",
"capability": "Capabilities"
"capability": "Capabilities",
"calls": "Call logs"
},
"statusLabels": {
"draft": "Draft",
@@ -5615,7 +5436,7 @@
"environment": "Environment",
"status": "Status",
"clientInstance": "Client Instance",
"interfaceDef": "Interface",
"interfaceDef": "Interface Steps (ordered)",
"secretRef": "Secret Reference",
"secretProvider": "Source",
"account": "Account",
@@ -5630,6 +5451,7 @@
"code": "Code",
"name": "Name",
"connectorType": "Connector Type",
"dbKind": "Database kind (db_kind)",
"environment": "Environment",
"credentialRef": "Credential Reference Code",
"configJson": "Connection Config JSON (endpoint / timeout / default org, etc.)",
@@ -5651,9 +5473,6 @@
"effectiveTo": "Effective To",
"contextSelector": "Advanced Routing Conditions JSON",
"contextSelectorHint": "All key-value pairs must be contained in the call context to match; callers currently send no routing context, so leave it empty for the default binding.",
"paramMapping": "Parameter Mapping JSON",
"paramMappingHint": "Translation rules from domain params to interface params (e.g. erp_org to organization, condition template); leave empty for same-name passthrough.",
"bindingClientHint": "Derived and locked from the selected interface definition; not editable separately.",
"secretRef": "Secret Reference Key",
"secretProvider": "Secret Source",
"credentialType": "Credential Type",
@@ -5681,7 +5500,8 @@
"msg": {
"fillClient": "Please fill in the name",
"fillInterface": "Please select a client instance (the code can be auto-generated)",
"fillBinding": "Please fill in the capability, client instance and interface definition",
"fillBinding": "Please fill in the capability and add at least one step (choose an interface per step)",
"fillDbKind": "Please choose a database kind (MySQL / Oracle / SQL Server / PostgreSQL)",
"fillCredential": "Please fill in the code and the secret reference",
"fillCredentialDb": "Please fill in the code and the required credential fields: {fields}",
"credentialTypeMissing": "Credential type list not loaded, please refresh and retry",
@@ -5716,7 +5536,8 @@
"endpoint": "https://erp-api.example.com/ws",
"wsdl": "https://erp-api.example.com/wsdl",
"requestPath": "Path supports placeholders, e.g. /transfer/xxx",
"passwordKeep": "Leave blank to keep the current password"
"passwordKeep": "Leave blank to keep the current password",
"database": "erp-host:1521/ORCL or 127.0.0.1:3306/dbname"
},
"advancedConfig": "Advanced Config (JSON)",
"formatJson": "Format",
@@ -5737,7 +5558,70 @@
},
"connectorTypes": {
"rest": "REST API",
"soap": "SOAP Service"
"soap": "SOAP Service",
"database": "Database (Direct)"
},
"connectorDbKind": {
"mysql": "MySQL",
"oracle": "Oracle",
"sqlserver": "SQL Server",
"postgresql": "PostgreSQL"
},
"endpointLabel": {
"database": "Database connection string (host:port/service or /database)"
},
"bindingSteps": {
"label": "Execution Steps (ordered)",
"add": "Add Step",
"remove": "Remove Step",
"moveUp": "Move Up",
"moveDown": "Move Down",
"interface": "Interface Definition",
"paramMapping": "Step {index} Parameter Mapping JSON",
"clientHint": "Client instance is derived from this step's interface: {client}",
"hint": "Steps run in array order; each step has its own parameter mapping, and the client instance comes with each step's interface."
},
"callLogs": {
"title": "Call records",
"filterInterface": "Interface",
"filterClient": "Client code",
"filterConnector": "Connector type",
"filterStatus": "Status",
"filterOperationId": "Operation ID",
"filterTraceId": "Trace ID",
"filterBusinessRef": "Business ref",
"filterKeyword": "Keyword in request",
"dateFrom": "Time from",
"dateTo": "Time to",
"query": "Query",
"reset": "Reset",
"colTime": "Time",
"colCapability": "Capability",
"colInterface": "Interface",
"colRef": "Ref",
"colStep": "Step",
"colStatus": "Status",
"colElapsed": "Elapsed",
"detailTitle": "Call detail",
"timeline": "Step timeline",
"request": "Request",
"response": "Response",
"wire": "Wire-level request",
"rawPayload": "Raw payload",
"normalized": "Business params (normalized)",
"normalizedJson": "Normalized JSON",
"copyBody": "Copy body",
"copyCurl": "Copy curl",
"copySql": "Copy SQL",
"copyRaw": "Copy raw payload",
"copyJson": "Copy JSON",
"copyOperationId": "Copy operation_id",
"copyTraceId": "Copy trace_id",
"copied": "Copied",
"noWire": "No wire details (historical record)",
"sqlWriteWarning": "⚠ Write statements: confirm target environment before executing",
"prevPage": "Previous page",
"nextPage": "Next page"
}
}
}