福利台账,正常缴纳月添加编辑的功能

This commit is contained in:
黎永顺 2023-01-10 13:51:14 +08:00
parent 69961a6c15
commit 814eefa1de
2 changed files with 24 additions and 16 deletions

View File

@ -252,18 +252,15 @@ export default class Archives extends React.Component {
};
// 导入
handleBtnImport(runStatus) {
handleBtnImport = (runStatus) => {
this.setState({ importVisible: true, runStatus });
}
};
// 模板点击
handleTemplateLinkClick = (exportData) => {
const { selectedKey } = this.state;
const { archivesStore: { exportTempateDownload } } = this.props;
exportTempateDownload({
exportData,
runStatuses: selectedKey === "pending" ? ["1"] : ["2", "3"]
});
let url = `/api/bs/hrmsalary/scheme/template/export?exportData=${exportData}&runStatuses=${selectedKey === "pending" ? "1" : "2,3"}`;
window.open(`${window.location.origin}${url}`);
};
// 导入预览

View File

@ -440,7 +440,21 @@ export default class NormalIndex extends Component {
this.setState({
returnEditPersonSlide: { ...returnEditPersonSlide, visible: false, title: "", editId: "" }
}, () => {
refreshList && this.getNormalList();
if (refreshList) {
const { current } = this.state;
const { billMonth, selectedKey, paymentOrganization } = this.props;
selectedKey === "1"
? this.getNormalList({
billMonth,
paymentOrganization,
current
})
: this.getSupplementaryList({
billMonth,
paymentOrganization,
current
});
}
});
};
@ -515,14 +529,11 @@ export default class NormalIndex extends Component {
render: (text, record) => {
return (
<div className="optWrapper">
{
selectedKey === "3" &&
<a
href="javascript:void(0);"
className="mr10"
onClick={() => this.handleEditNormalStandingBook(record)}
>编辑</a>
}
<a
href="javascript:void(0);"
className="mr10"
onClick={() => this.handleEditNormalStandingBook(record)}
>编辑</a>
</div>
);
}