fix: 专项附加扣除Tab隐藏社保配置和试算区域
This commit is contained in:
@@ -334,7 +334,7 @@ export default function SocialInsurance() {
|
|||||||
{t === 'monthly' ? '月度办理' : t === 'social' ? '社保' : t === 'housing' ? '公积金' : '专项附加扣除'}
|
{t === 'monthly' ? '月度办理' : t === 'social' ? '社保' : t === 'housing' ? '公积金' : '专项附加扣除'}
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
{tab !== 'monthly' && (
|
{(tab === 'social' || tab === 'housing') && (
|
||||||
<div className="flex items-center gap-2 ml-auto">
|
<div className="flex items-center gap-2 ml-auto">
|
||||||
<label className="text-sm text-gray-500">城市:</label>
|
<label className="text-sm text-gray-500">城市:</label>
|
||||||
<input
|
<input
|
||||||
@@ -352,7 +352,7 @@ export default function SocialInsurance() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* ========== 社保 / 公积金 Tab ========== */}
|
{/* ========== 社保 / 公积金 Tab ========== */}
|
||||||
{tab !== 'monthly' && (
|
{(tab === 'social' || tab === 'housing') && (
|
||||||
(isHousing ? housingLoading : configLoading) ? (
|
(isHousing ? housingLoading : configLoading) ? (
|
||||||
<Card><div className="text-center py-8 text-gray-500">加载中...</div></Card>
|
<Card><div className="text-center py-8 text-gray-500">加载中...</div></Card>
|
||||||
) : activeConfig ? (
|
) : activeConfig ? (
|
||||||
@@ -663,7 +663,7 @@ export default function SocialInsurance() {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{/* 试算工具 */}
|
{/* 试算工具 */}
|
||||||
{tab !== 'monthly' && (
|
{(tab === 'social' || tab === 'housing') && (
|
||||||
<div className="grid md:grid-cols-2 gap-4">
|
<div className="grid md:grid-cols-2 gap-4">
|
||||||
<Card>
|
<Card>
|
||||||
<h2 className="text-sm font-medium mb-3">{isHousing ? '公积金' : '社保'}试算</h2>
|
<h2 className="text-sm font-medium mb-3">{isHousing ? '公积金' : '社保'}试算</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user