feature/2.16.1.2410.01-薪酬统计报表薪资明细添加模板切换和模板创建功能

This commit is contained in:
lys 2024-11-08 15:16:09 +08:00
parent 5abe35ca60
commit 3fbe08ab2e
1 changed files with 6 additions and 3 deletions

View File

@ -183,8 +183,7 @@ class SalaryDetails extends Component {
const { transferDialog, tempDialog } = this.state, { type } = transferDialog;
if (type === "temp") {
this.setState({
tempDialog: { ...tempDialog, visible: true, setting: _.map(values, o => o.id) },
transferDialog: { ...this.state.transferDialog, visible: false, cancel: true, type: "default" }
tempDialog: { ...tempDialog, visible: true, setting: _.map(values, o => o.id) }
});
return;
}
@ -273,7 +272,11 @@ class SalaryDetails extends Component {
{/*薪资明细模板设置*/}
<SalaryDetailsTempDialog {...tempDialog} onSuccess={this.getPageListTemplatelist}
onCancel={callback => this.setState({
tempDialog: { ...tempDialog, visible: false, setting: [] }
tempDialog: { ...tempDialog, visible: false, setting: [] },
transferDialog: {
...this.state.transferDialog,
visible: false, cancel: true, type: "default"
}
}, () => callback && callback())}/>
</div>
</React.Fragment>