feat(admin-center): implement organization calculation method settings

- Added functionality to update the organization's calculation method (hourly or man-days) in the Admin Center.
- Created a new component for managing the calculation method, including UI elements for selection and saving changes.
- Updated API service to handle the new endpoint for updating the calculation method.
- Enhanced localization files to support new keys related to the calculation method settings.
- Introduced a settings page to manage organization working days and hours alongside the calculation method.
This commit is contained in:
chamikaJ
2025-07-24 12:53:46 +05:30
parent 67a75685a9
commit 4b54f2cc17
28 changed files with 1033 additions and 142 deletions

View File

@@ -4,5 +4,29 @@
"owner": "组织所有者",
"admins": "组织管理员",
"contactNumber": "添加联系电话",
"edit": "编辑"
"edit": "编辑",
"organizationWorkingDaysAndHours": "组织工作日和工作时间",
"workingDays": "工作日",
"workingHours": "工作时间",
"monday": "星期一",
"tuesday": "星期二",
"wednesday": "星期三",
"thursday": "星期四",
"friday": "星期五",
"saturday": "星期六",
"sunday": "星期日",
"hours": "小时",
"saveButton": "保存",
"saved": "设置保存成功",
"errorSaving": "保存设置时出错",
"organizationCalculationMethod": "组织计算方法",
"calculationMethod": "计算方法",
"hourlyRates": "小时费率",
"manDays": "人天",
"saveChanges": "保存更改",
"hourlyCalculationDescription": "所有项目成本将使用估算小时数 × 小时费率计算",
"manDaysCalculationDescription": "所有项目成本将使用估算人天数 × 日费率计算",
"calculationMethodTooltip": "此设置适用于您组织中的所有项目",
"calculationMethodUpdated": "组织计算方法更新成功",
"calculationMethodUpdateError": "更新计算方法失败"
}

View File

@@ -0,0 +1,17 @@
{
"settings": "设置",
"organizationWorkingDaysAndHours": "组织工作日和工作时间",
"workingDays": "工作日",
"workingHours": "工作时间",
"hours": "小时",
"monday": "星期一",
"tuesday": "星期二",
"wednesday": "星期三",
"thursday": "星期四",
"friday": "星期五",
"saturday": "星期六",
"sunday": "星期日",
"saveButton": "保存",
"saved": "设置保存成功",
"errorSaving": "保存设置时出错"
}

View File

@@ -4,5 +4,6 @@
"teams": "团队",
"billing": "账单",
"projects": "项目",
"settings": "设置",
"adminCenter": "管理中心"
}