Merge branch 'env' into dev

This commit is contained in:
sophie committed 2026-07-27 14:50:18 +08:00
commit d79def5519
90 files changed
+16729 -1344

No files matched your search

+151 -1
View File
@@ -26,7 +26,9 @@
"permissions": "App Permissions",
"requests": "Permission Requests",
"reports": "Data Reports",
"schedules": "Schedule Management"
"schedules": "Schedule Management",
"platformApps": "Platform Apps",
"procurementContract": "Procurement Contract Review"
},
"platformApps": {
"guideUsage": "Guide Usage",
@@ -1292,5 +1294,153 @@
"batchPermissionUpdateFailed": "Batch permission update failed",
"enterOneField": "Please enter at least one field to update",
"batchDeleteResult": "Deleted {count} users."
},
"procurementContract": {
"title": "Procurement Contract Review",
"subtitle": "Manage templates, risk red-line rules, and review history",
"tabTemplates": "Templates",
"tabRules": "Risk Rules",
"addRule": "Add Rule",
"rulesHint": "Built-in rules use compound procurement checks; custom rules use keyword matching only. Use standard categories.",
"ruleStatTotal": "Rules",
"ruleStatEnabled": "Enabled",
"ruleStatHighRisk": "High risk",
"emptyRules": "No risk rules yet",
"ruleCreateTitle": "Create Risk Rule",
"ruleEditTitle": "Edit Risk Rule",
"ruleCreateOk": "Rule created",
"ruleEditOk": "Rule updated",
"ruleRequiredFields": "Please fill title, category, risk hint and suggestion",
"ruleKeywordsRequired": "Please enter at least one keyword",
"ruleCodePlaceholder": "Generated after saving",
"ruleCodeGeneratedHint": "The system generates an internal code for a custom rule after saving.",
"ruleCodeReadonlyHint": "Code is the internal rule identifier and cannot be changed.",
"builtinRuleLogicHint": "This is a built-in procurement rule. Category, keywords, and trigger are fixed because the system evaluates compound business conditions.",
"ruleKeywordsPlaceholder": "Comma-separated keywords, e.g. payment, acceptance, invoice",
"keywordPresentLogicHint": "Risk is triggered when any keyword is found.",
"keywordMissingLogicHint": "Risk is triggered only when all keywords are absent; use a built-in rule for compound conditions.",
"category_payment": "Payment",
"category_delivery": "Delivery",
"category_acceptance": "Acceptance",
"category_warranty": "Warranty / after-sales",
"category_liability": "Breach and liability",
"category_jurisdiction": "Jurisdiction",
"category_dispute": "Dispute resolution",
"category_ip": "Intellectual property",
"category_other": "Other",
"confirmDeleteRule": "Delete rule \"{title}\"? Reviews will stop using this red line.",
"colRuleCode": "Code",
"colRuleTitle": "Title",
"colCategory": "Category",
"colKeywords": "Keywords",
"colTrigger": "Trigger",
"colSort": "Sort",
"ruleSortHint": "Lower values run first; rules for the same contract are checked in ascending order.",
"colContractType": "Contract type",
"colRiskHint": "Risk hint",
"colSuggestion": "Suggestion",
"colNegotiation": "Negotiation text",
"triggerMissing": "Trigger when keywords are missing",
"triggerPresent": "Trigger when keywords are present",
"riskHigh": "High",
"riskMedium": "Medium",
"riskLow": "Low",
"tabReviews": "Review History",
"uploadTemplate": "Upload Template",
"colName": "Name",
"colVersion": "Version",
"colFile": "File",
"colStatus": "Status",
"colDefault": "Default",
"colActions": "Actions",
"colMode": "Mode",
"colSource": "Template Source",
"colReviewNo": "Review No.",
"colContract": "Contract",
"colContractNo": "Contract No.",
"colSupplier": "Supplier",
"colTemplate": "Template",
"colUser": "User",
"colFinishedAt": "Completed At",
"colRisk": "Risk",
"keyword": "Keyword",
"modeCompare": "Compare",
"modeSolo": "Solo Review",
"sourceLibrary": "Library",
"sourceUpload": "User Upload",
"sourceNone": "None",
"setDefault": "Set Default",
"setAsDefault": "Set as default template",
"enable": "Enable",
"disable": "Disable",
"emptyTemplates": "No templates yet",
"emptyReviews": "No reviews yet",
"total": "{n} total",
"loadFailed": "Failed to load",
"fileRequired": "Please choose a file",
"uploadOk": "Template uploaded",
"uploadFailed": "Upload failed",
"setDefaultOk": "Default template updated",
"actionFailed": "Action failed",
"confirmDelete": "Delete this template?",
"downloadReport": "Download Report",
"downloadAnnotated": "Download Annotated Contract",
"downloadFile": "Download File",
"downloadContract": "Download Contract",
"downloadTemplateFile": "Download Template Used",
"downloadFailed": "Download failed",
"loading": "Loading…",
"all": "All",
"search": "Search",
"detail": "Detail",
"saving": "Saving…",
"sourceAll": "All sources",
"keywordPlaceholder": "Search review no., contract no., supplier, file…",
"reviewNoPlaceholder": "CR-…",
"uploadModalTitle": "Upload Contract Template",
"uploadZonePrefix": "Drop Word / PDF here, or ",
"uploadZoneAction": "click to choose a file",
"uploadZoneReplace": "Click or drop to replace the file",
"noFileSelected": "No file selected",
"templateName": "Template name",
"versionNo": "Version",
"defaultNo": "No",
"defaultYes": "Yes (default in chat)",
"remark": "Remark",
"remarkPlaceholder": "Use case, changes vs previous version…",
"uploadCallout": "Once enabled, the template appears in the chat dropdown immediately.",
"saveToLibrary": "Save to library",
"defaultYesShort": "Yes",
"statusSuccess": "Success",
"statusFailed": "Failed",
"statusRunning": "Running",
"statusPending": "Pending",
"confirmDeleteNamed": "Delete template \"{name} {version}\"?",
"editModalTitle": "Edit Contract Template",
"saveChanges": "Save changes",
"editOk": "Template updated",
"editFileHint": "Replacing the file is not supported in edit mode; upload a new version instead.",
"nameVersionRequired": "Name and version are required",
"regionConfigAction": "Comparison regions",
"regionConfigTitle": "Comparison region configuration",
"regionConfigHint": "Rules partition the two files uploaded for this review; they never replace the uploaded original",
"regionMetadata": "Header metadata fields",
"regionField_contract_no": "Contract number",
"regionField_buyer": "Buyer",
"regionField_seller": "Seller",
"regionField_version": "Version",
"regionBodyStart": "Body start anchors (one per line)",
"regionBodyEnd": "Body end anchors (one per line)",
"regionSignatureTerms": "Signature helper terms (one per line)",
"regionAttachmentStart": "Attachment heading anchors (one per line)",
"regionAttachmentPolicy": "Attachment policy",
"regionPageCountOnly": "Only report added or removed pages; do not review attachment content",
"regionRestoreV4": "Restore V4 defaults",
"regionPreview": "Recognition preview",
"regionPreviewing": "Recognizing…",
"regionPreviewRecognized": "Body region recognized",
"regionPreviewIncomplete": "Anchors are incomplete; reviews will safely fall back",
"regionPreviewFailed": "Region recognition preview failed",
"regionSaved": "Comparison region configuration saved"
}
}
+306 -37
View File
@@ -725,8 +725,14 @@
"The admin view must be able to export join date, completion date, department, name, employee ID, and score."
],
"booleanOptions": [
{ "id": "true", "label": "True" },
{ "id": "false", "label": "False" }
{
"id": "true",
"label": "True"
},
{
"id": "false",
"label": "False"
}
],
"questionBank": [
{
@@ -736,10 +742,22 @@
"answer": "c",
"explanation": "According to the onboarding exam, salary is paid on the 15th of each month.",
"options": [
{ "id": "a", "label": "A. 8th" },
{ "id": "b", "label": "B. 9th" },
{ "id": "c", "label": "C. 15th" },
{ "id": "d", "label": "D. 27th" }
{
"id": "a",
"label": "A. 8th"
},
{
"id": "b",
"label": "B. 9th"
},
{
"id": "c",
"label": "C. 15th"
},
{
"id": "d",
"label": "D. 27th"
}
]
},
{
@@ -749,9 +767,18 @@
"answer": "b",
"explanation": "The company cafeteria uses the Zhongmi meal-ordering system, not OA or ERP.",
"options": [
{ "id": "a", "label": "A. OA" },
{ "id": "b", "label": "B. Zhongmi ordering system" },
{ "id": "c", "label": "C. ERP" }
{
"id": "a",
"label": "A. OA"
},
{
"id": "b",
"label": "B. Zhongmi ordering system"
},
{
"id": "c",
"label": "C. ERP"
}
]
},
{
@@ -761,10 +788,22 @@
"answer": "abcd",
"explanation": "All four options listed in the exam belong to the company product scope.",
"options": [
{ "id": "abcd", "label": "A/B/C/D All of the above" },
{ "id": "ab", "label": "A/B" },
{ "id": "cd", "label": "C/D" },
{ "id": "a", "label": "A only" }
{
"id": "abcd",
"label": "A/B/C/D All of the above"
},
{
"id": "ab",
"label": "A/B"
},
{
"id": "cd",
"label": "C/D"
},
{
"id": "a",
"label": "A only"
}
]
},
{
@@ -774,10 +813,22 @@
"answer": "c",
"explanation": "Leave must use the OA leave application form.",
"options": [
{ "id": "a", "label": "A. Overtime request" },
{ "id": "b", "label": "B. Contact form" },
{ "id": "c", "label": "C. Leave application" },
{ "id": "d", "label": "D. Employee request form" }
{
"id": "a",
"label": "A. Overtime request"
},
{
"id": "b",
"label": "B. Contact form"
},
{
"id": "c",
"label": "C. Leave application"
},
{
"id": "d",
"label": "D. Employee request form"
}
]
},
{
@@ -787,9 +838,18 @@
"answer": "a",
"explanation": "QC080000 is the hazardous substance process management certification standard.",
"options": [
{ "id": "a", "label": "A. Hazardous substance process management standard" },
{ "id": "b", "label": "B. Occupational health and safety management system" },
{ "id": "c", "label": "C. Environmental management system" }
{
"id": "a",
"label": "A. Hazardous substance process management standard"
},
{
"id": "b",
"label": "B. Occupational health and safety management system"
},
{
"id": "c",
"label": "C. Environmental management system"
}
]
},
{
@@ -799,8 +859,14 @@
"answer": "a",
"explanation": "The standard 5S terms are sort, set in order, shine, standardize, and sustain.",
"options": [
{ "id": "a", "label": "A. Sort, set in order, shine, standardize, sustain" },
{ "id": "b", "label": "B. Sort, set in order, clean up, standardize, sustain" }
{
"id": "a",
"label": "A. Sort, set in order, shine, standardize, sustain"
},
{
"id": "b",
"label": "B. Sort, set in order, clean up, standardize, sustain"
}
]
},
{
@@ -810,23 +876,226 @@
"answer": "a",
"explanation": "You should stand on the upwind side when using a fire extinguisher.",
"options": [
{ "id": "a", "label": "A. Upwind side" },
{ "id": "b", "label": "B. Downwind side" }
{
"id": "a",
"label": "A. Upwind side"
},
{
"id": "b",
"label": "B. Downwind side"
}
]
},
{ "id": "q8", "type": "boolean", "prompt": "Normal attendance requires clock-in, and overtime must be applied for in advance.", "answer": "true", "explanation": "Both attendance and overtime follow the company attendance policy." },
{ "id": "q9", "type": "boolean", "prompt": "If you forget to clock in, you need an OA correction request.", "answer": "true", "explanation": "Missed punches must be corrected through the OA process." },
{ "id": "q10", "type": "boolean", "prompt": "Monthly salary is calculated from the 21st of the previous month to the 20th of the current month.", "answer": "true", "explanation": "The exam explicitly defines this payroll calculation cycle." },
{ "id": "q11", "type": "boolean", "prompt": "Cafeteria meals require advance booking, and face recognition can be used for dining.", "answer": "true", "explanation": "Advance booking and face-recognition dining are both supported." },
{ "id": "q12", "type": "boolean", "prompt": "In the event of fire or explosion, you should immediately call 119.", "answer": "true", "explanation": "Calling the fire emergency number is the first step in this scenario." },
{ "id": "q13", "type": "boolean", "prompt": "Dormitory residents must maintain fire awareness and must not install wires privately or use high-power appliances.", "answer": "true", "explanation": "This is a mandatory dormitory fire-safety rule." },
{ "id": "q14", "type": "boolean", "prompt": "Following safety production regulations is a safety obligation of employees.", "answer": "true", "explanation": "Safety compliance is both a rule and an employee obligation." },
{ "id": "q15", "type": "boolean", "prompt": "Employee badges may be lent to others freely.", "answer": "false", "explanation": "A badge is a personal identity credential and may not be lent out." },
{ "id": "q16", "type": "boolean", "prompt": "RoHS mainly regulates materials and processes in electrical and electronic products to better protect human health and the environment.", "answer": "true", "explanation": "RoHS focuses on restricting hazardous substances and improving environmental protection." },
{ "id": "q17", "type": "boolean", "prompt": "Our company's HSF policy is: green design, eco-friendly purchasing; resource conservation, green output.", "answer": "true", "explanation": "This is the HSF policy statement provided in the exam." },
{ "id": "q18", "type": "boolean", "prompt": "EHS stands for Environment, Health, and Safety.", "answer": "true", "explanation": "EHS is the standard abbreviation for environment, health, and safety." },
{ "id": "q19", "type": "boolean", "prompt": "External documents do not need to be controlled or managed by the organization.", "answer": "false", "explanation": "External documents also need controlled management." },
{ "id": "q20", "type": "boolean", "prompt": "Product-related requirements should include legal and regulatory requirements as well as customer requirements.", "answer": "true", "explanation": "Product requirements must cover both regulations and customer requirements." }
{
"id": "q8",
"type": "boolean",
"prompt": "Normal attendance requires clock-in, and overtime must be applied for in advance.",
"answer": "true",
"explanation": "Both attendance and overtime follow the company attendance policy."
},
{
"id": "q9",
"type": "boolean",
"prompt": "If you forget to clock in, you need an OA correction request.",
"answer": "true",
"explanation": "Missed punches must be corrected through the OA process."
},
{
"id": "q10",
"type": "boolean",
"prompt": "Monthly salary is calculated from the 21st of the previous month to the 20th of the current month.",
"answer": "true",
"explanation": "The exam explicitly defines this payroll calculation cycle."
},
{
"id": "q11",
"type": "boolean",
"prompt": "Cafeteria meals require advance booking, and face recognition can be used for dining.",
"answer": "true",
"explanation": "Advance booking and face-recognition dining are both supported."
},
{
"id": "q12",
"type": "boolean",
"prompt": "In the event of fire or explosion, you should immediately call 119.",
"answer": "true",
"explanation": "Calling the fire emergency number is the first step in this scenario."
},
{
"id": "q13",
"type": "boolean",
"prompt": "Dormitory residents must maintain fire awareness and must not install wires privately or use high-power appliances.",
"answer": "true",
"explanation": "This is a mandatory dormitory fire-safety rule."
},
{
"id": "q14",
"type": "boolean",
"prompt": "Following safety production regulations is a safety obligation of employees.",
"answer": "true",
"explanation": "Safety compliance is both a rule and an employee obligation."
},
{
"id": "q15",
"type": "boolean",
"prompt": "Employee badges may be lent to others freely.",
"answer": "false",
"explanation": "A badge is a personal identity credential and may not be lent out."
},
{
"id": "q16",
"type": "boolean",
"prompt": "RoHS mainly regulates materials and processes in electrical and electronic products to better protect human health and the environment.",
"answer": "true",
"explanation": "RoHS focuses on restricting hazardous substances and improving environmental protection."
},
{
"id": "q17",
"type": "boolean",
"prompt": "Our company's HSF policy is: green design, eco-friendly purchasing; resource conservation, green output.",
"answer": "true",
"explanation": "This is the HSF policy statement provided in the exam."
},
{
"id": "q18",
"type": "boolean",
"prompt": "EHS stands for Environment, Health, and Safety.",
"answer": "true",
"explanation": "EHS is the standard abbreviation for environment, health, and safety."
},
{
"id": "q19",
"type": "boolean",
"prompt": "External documents do not need to be controlled or managed by the organization.",
"answer": "false",
"explanation": "External documents also need controlled management."
},
{
"id": "q20",
"type": "boolean",
"prompt": "Product-related requirements should include legal and regulatory requirements as well as customer requirements.",
"answer": "true",
"explanation": "Product requirements must cover both regulations and customer requirements."
}
]
},
"procurementContract": {
"modeCompare": "Contract Compare",
"modeSolo": "Solo Review",
"modeHint": "Upload the contract files required by the selected mode",
"compareHint": "Upload our original contract and the seller-returned contract",
"selectTemplate": "Select template",
"default": "Default",
"uploadTempTemplate": "Upload temp template",
"uploadContract": "Upload contract",
"uploadOriginalContract": "Upload our original",
"uploadSellerReturnedContract": "Upload seller return",
"uploadContractToReview": "Upload contract to review",
"quickReview": "Review contract",
"quickRisk": "Risk alerts",
"quickDiff": "Template differences",
"quickSuggestion": "Revision suggestions",
"promptReview": "Please review this procurement contract and summarize the main issues and conclusion by high, medium, and low risk.",
"promptRisk": "Please focus on legal, payment, delivery, and breach-liability risks in this contract.",
"promptDiff": "Please compare our original contract with the seller-returned contract and list key modified, deleted, and added clauses with risks.",
"promptSuggestion": "Please provide revision suggestions that can be used directly in commercial negotiation.",
"llmEnhanced": "AI enhanced",
"tempTemplateChip": "Temp template: {name}",
"originalContractChip": "Our original: {name}",
"sellerReturnedContractLabel": "Seller-returned contract",
"contractToReviewLabel": "Contract to review",
"soloHint": "Solo review · no template",
"tempTemplateUploaded": "Temporary template uploaded (session only)",
"originalContractUploaded": "Our original contract has been uploaded",
"uploadFailed": "Upload failed",
"oneContractOnly": "Upload only one seller-returned contract and remove extra files",
"compareFilesRequired": "Contract comparison requires both our original and the seller-returned contract",
"defaultUserQuery": "Please {mode} for \"{file}\"",
"reviewFailed": "Review failed",
"resultTitle": "Procurement Contract Review Result",
"completed": "Review complete",
"counterpartyContract": "Counterparty contract",
"contractNo": "Contract No.",
"supplier": "Supplier",
"riskItems": "items",
"changesUnchanged": "Unchanged",
"changesCount": "Changes",
"reviewNo": "Review No.",
"mode": "Mode",
"status": "Status",
"riskSummary": "Risk summary",
"containsHighRisk": "{count} high-risk items",
"noHighRisk": "No high risk",
"sourceLibrary": "Template library",
"sourceUpload": "User upload",
"template": "Template",
"comparisonBaseline": "Our original contract",
"downloadReport": "Download review report",
"downloadDifferenceReport": "Download difference report",
"downloadAnnotated": "Download annotated contract",
"downloadAnnotatedOk": "Annotated contract download started",
"downloadAnnotatedFailed": "Failed to download annotated contract",
"anchorPage": "Source page {page}",
"downloading": "Downloading…",
"downloadOk": "Report download started",
"downloadFailed": "Download failed",
"riskHigh": "High risk",
"riskMedium": "Medium risk",
"riskLow": "Low risk",
"riskShortHigh": "H",
"riskShortMedium": "M",
"riskShortLow": "L",
"riskOk": "OK",
"riskNoFinding": "No risk found",
"changeInsert": "Insert",
"changeDelete": "Delete",
"changeModify": "Modify",
"changePass": "Covered",
"changeMissing": "Missing",
"colClause": "Clause",
"colChange": "Type",
"colRisk": "Risk",
"colTemplateText": "Template text",
"colContractText": "Contract text",
"colDetail": "Detail",
"colComparison": "Change comparison",
"unreadableComparison": "The source PDF text encoding is incompatible, so the changed content cannot be displayed reliably. Upload a Word file or a searchable-text PDF.",
"noComparisonText": "No clause comparison is available",
"noClauses": "No clause differences or red-line gaps detected.",
"statusSuccess": "Success",
"statusFailed": "Failed",
"statusRunning": "Running",
"reviewQueued": "Review submitted and queued",
"reviewRunning": "Contract review in progress",
"stepQueued": "Queued",
"stepExtracting": "Extract & clean",
"stepStructuring": "Identify clauses",
"stepComparing": "Compare & redlines",
"stepRiskScanning": "Scan risk rules",
"stepAiReviewing": "AI full review",
"stepValidating": "Validate & merge",
"stepCompleted": "Completed",
"changeRuleScan": "Red-line scan",
"changePolicyScan": "Procurement policy",
"changeLlmScan": "AI finding",
"changeOcrUncertain": "Needs confirmation",
"sectionChanges": "Contract changes",
"sectionIndependentRisks": "Independent risks",
"sectionConfirmations": "Items to confirm",
"colEvidence": "Source evidence",
"colSuggestion": "Revision suggestion",
"confirmationsHidden": "{count} additional OCR/extraction items are collapsed. Review the source or annotated contract.",
"confirmationsSummary": "{count} items are affected by OCR/extraction noise and require source verification.",
"sectionLegalRisk": "Legal and fulfillment risks",
"sectionCommercial": "Commercial items to confirm",
"sectionFormatMetadata": "Format and information changes",
"changeClassCommercial": "Commercial change",
"changeClassMetadata": "Information change",
"changeClassFormat": "Format change",
"needsReview": "Needs review",
"regionFallback": "Comparison region rules were not applied; this review safely fell back to full-document comparison.",
"attachmentAdded": "The returned contract adds {count} attachment page(s)",
"attachmentRemoved": "The returned contract removes {count} attachment page(s)",
"attachmentContentIgnored": "Attachment content is excluded from differences"
}
}
+3
View File
@@ -45,6 +45,9 @@
"FILE_ASSET_SIZE_EXCEEDED": "File size exceeds the limit.",
"FILE_ASSET_EXPIRED": "File asset has expired.",
"FILE_ASSET_ALREADY_REFERENCED": "File asset is already referenced and cannot be deleted.",
"PROCUREMENT_CONTRACT_TEMPLATE_REFERENCED": "This template is referenced by review history and cannot be deleted. Disable it instead.",
"PROCUREMENT_CONTRACT_INVALID_COMPARISON_REGION_CONFIG": "The comparison region configuration is invalid. Check fields, anchors, and attachment policy.",
"PROCUREMENT_CONTRACT_COMPARISON_REGION_PREVIEW_FAILED": "Comparison regions could not be recognized from the template file.",
"FILE_ASSET_INVALID_STATUS": "File asset status does not allow this operation.",
"SHIPPING_NOTICE_INTAKE_NOT_FOUND": "Shipping notice intake not found.",
"SHIPPING_NOTICE_INTAKE_PARSE_PENDING": "Shipping notice is still parsing. Please wait before confirming the batch.",