feat: 社保年度标准完善 — 医疗附加 + 继承旧配置 + 公积金独立上下限

1. 医疗附加金额:SocialYearStandard 和 SocialInsuranceConfig 新增
   medicalOrgExtra/medicalEmpExtra 字段(如北京3元大病医疗)
   - calcSocialInsurance 计算时加上医疗附加
   - 前端年度标准表单加医疗企业/个人附加输入

2. 新建年度标准继承:新增 /inherit-config API
   - 优先用当前年度标准
   - 回退到旧 SocialInsuranceConfig/HousingFundConfig
   - 前端点击"新建年度标准"时自动继承填充

3. 公积金独立上下限:SocialYearStandard 新增 housingBaseMin/housingBaseMax
   - calcHousingFund 优先用公积金专用上下限,为0时回退到社保
   - 前端公积金年度标准表单加公积金基数上下限输入

4. blank_employees/blank_all 模式跳过试用期工资覆盖

5. 劳务协议/实习协议人员 calcBatchEntry 强制社保公积金为0

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
selfrelease
2026-08-16 15:31:56 +08:00
parent 3ac333891c
commit 38075420f4
5 changed files with 98 additions and 8 deletions
+3
View File
@@ -538,6 +538,9 @@ export const socialAccountApi = {
/** 按账户获取当前生效标准 */
currentStandard: (accountId: string) =>
get(`/social/accounts/${accountId}/current-standard`).then(unwrap<any>()),
/** 按账户获取继承数据(当前标准→旧配置→null),用于新建年度标准初始值 */
inheritConfig: (accountId: string) =>
get(`/social/accounts/${accountId}/inherit-config`).then(unwrap<any>()),
/** 按账户+月份获取适用标准 */
standardByMonth: (accountId: string, month: string) =>
get(`/social/accounts/${accountId}/standard-by-month/${month}`).then(unwrap<any>()),