custom-艾志工业-合并个税

This commit is contained in:
黎永顺 2024-06-14 14:24:13 +08:00
parent b3d287af96
commit 73e6692d2b
1 changed files with 4 additions and 2 deletions

View File

@ -535,14 +535,16 @@ class Index extends Component {
}, () => this.queryEmployeeList())}
/>
];
//判断税款所属期是否在两月以内
const isGreaterThanLastTwoMonths = moment(taxCycle).isAfter(moment().subtract(2, "months"));
// !showOperateBtn && tabBtns.shift();
(selectedKey !== "list" || (!showOperateBtn && !isTaxDeclareAdmin)) && tabBtns.shift();
(selectedKey !== "list" || (!showOperateBtn && !isTaxDeclareAdmin) || !isGreaterThanLastTwoMonths) && tabBtns.shift();
selectedKey !== "list" && tabBtns.shift();
return (
<WeaTop
title={getLabel(544289, "人员信息报送")} iconBgcolor="#F14A2D"
icon={<i className="icon-coms-fa"/>} className="declareWrapper"
buttons={(showOperateBtn || isTaxDeclareAdmin) ? buttons : buttons.slice(0, 1)}
buttons={((showOperateBtn || isTaxDeclareAdmin) && isGreaterThanLastTwoMonths) ? buttons : buttons.slice(0, 1)}
// buttons={showOperateBtn ? buttons : []}
>
<div style={{ height: "100%", background: "#f6f6f6" }} className="flex flex-rollback">