fix: 删除基本信息中重复的社保公积金明细(硬编码通用比例)
保留薪税信息中按参保城市实际政策计算的社保费用明细 删除社保与公积金明细区块(硬编码8%/16%等通用比例,与薪税信息重复)
This commit is contained in:
@@ -306,70 +306,6 @@ export default function BasicInfo({ profile, employeeId, attachments }: { profil
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{profile.socialInsBase != null && (
|
|
||||||
<div className="pt-3 border-t">
|
|
||||||
<h3 className="text-xs font-medium text-gray-600 mb-2">社保与公积金明细</h3>
|
|
||||||
<div className="grid md:grid-cols-2 gap-x-6 gap-y-1 text-xs">
|
|
||||||
<div className="flex justify-between border-b pb-1">
|
|
||||||
<span className="text-gray-500">社保缴纳基数</span>
|
|
||||||
<span className="font-medium">¥{fmt(profile.socialInsBase)}</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex justify-between border-b pb-1">
|
|
||||||
<span className="text-gray-500">公积金缴纳基数</span>
|
|
||||||
<span className="font-medium">¥{fmt(profile.housingFundBase || 0)}</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex justify-between border-b pb-1">
|
|
||||||
<span className="text-gray-500">个人养老(8%)</span>
|
|
||||||
<span>¥{fmt((profile.socialInsBase || 0) * 0.08)}</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex justify-between border-b pb-1">
|
|
||||||
<span className="text-gray-500">单位养老(16%)</span>
|
|
||||||
<span>¥{fmt((profile.socialInsBase || 0) * 0.16)}</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex justify-between border-b pb-1">
|
|
||||||
<span className="text-gray-500">个人医疗(2%)</span>
|
|
||||||
<span>¥{fmt((profile.socialInsBase || 0) * 0.02)}</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex justify-between border-b pb-1">
|
|
||||||
<span className="text-gray-500">单位医疗(8%)</span>
|
|
||||||
<span>¥{fmt((profile.socialInsBase || 0) * 0.08)}</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex justify-between border-b pb-1">
|
|
||||||
<span className="text-gray-500">个人失业(0.5%)</span>
|
|
||||||
<span>¥{fmt((profile.socialInsBase || 0) * 0.005)}</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex justify-between border-b pb-1">
|
|
||||||
<span className="text-gray-500">单位失业(0.5%)</span>
|
|
||||||
<span>¥{fmt((profile.socialInsBase || 0) * 0.005)}</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex justify-between border-b pb-1">
|
|
||||||
<span className="text-gray-500">单位工伤(0.2%)</span>
|
|
||||||
<span>¥{fmt((profile.socialInsBase || 0) * 0.002)}</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex justify-between border-b pb-1">
|
|
||||||
<span className="text-gray-500">单位生育(0.8%)</span>
|
|
||||||
<span>¥{fmt((profile.socialInsBase || 0) * 0.008)}</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex justify-between border-b pb-1">
|
|
||||||
<span className="text-gray-500">个人公积金(7%)</span>
|
|
||||||
<span>¥{fmt((profile.housingFundBase || 0) * 0.07)}</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex justify-between border-b pb-1">
|
|
||||||
<span className="text-gray-500">单位公积金(7%)</span>
|
|
||||||
<span>¥{fmt((profile.housingFundBase || 0) * 0.07)}</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex justify-between font-medium pt-1">
|
|
||||||
<span>个人合计</span>
|
|
||||||
<span className="text-primary">¥{fmt((profile.socialInsBase || 0) * 0.105 + (profile.housingFundBase || 0) * 0.07)}</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex justify-between font-medium pt-1">
|
|
||||||
<span>单位合计</span>
|
|
||||||
<span className="text-primary">¥{fmt((profile.socialInsBase || 0) * 0.255 + (profile.housingFundBase || 0) * 0.07)}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="text-xs text-gray-400 mt-1">注:比例为通用参考值,实际比例以当地政策为准</div>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="grid md:grid-cols-2 gap-3">
|
<div className="grid md:grid-cols-2 gap-3">
|
||||||
|
|||||||
Reference in New Issue
Block a user