Compare commits

..

2 Commits

1 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
break;
case "dismissDate":
const { employmentStatus } = declareForm.getFormParams();
if (!value && employmentStatus === "ABNORMAL") this.setState({
this.setState({
eConditions: _.map(eConditions, it => {
return {
...it, items: _.map(it.items, child => {
@ -257,7 +257,7 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
})
};
})
}, () => declareForm.updateFields({ employmentStatus: "NORMAL" }));
}, () => declareForm.updateFields({ employmentStatus: (!value && employmentStatus === "ABNORMAL") ? "NORMAL" : "ABNORMAL" }));
break;
case "reissueSalary":
this.setState({