custom/路维光电(业务线)

This commit is contained in:
lys 2025-10-09 17:46:48 +08:00
parent b78cee94b0
commit 26c02abc28
1 changed files with 11 additions and 10 deletions

View File

@ -131,7 +131,7 @@ class SalaryArchiveEditAdjLogRecordDialog extends Component {
});
};
handleChangeAdjustAfter = (record, v) => {
const { salaryArchiveItemDetail } = this.state, { salaryFileStore: { adjForm } } = this.props;
const { salaryArchiveItemDetail } = this.state;
const { list } = salaryArchiveItemDetail;
this.setState({
salaryArchiveItemDetail: {
@ -145,14 +145,15 @@ class SalaryArchiveEditAdjLogRecordDialog extends Component {
return { ...o };
})
}
}, () => {
const { salaryArchiveItemDetail } = this.state;
}, () => this.updateSumVal());
};
updateSumVal = () => {
const { salaryArchiveItemDetail } = this.state, { salaryFileStore: { adjForm } } = this.props;
adjForm.updateFields({
sumVal: _.reduce(salaryArchiveItemDetail.list, (pre, cur) => {
return pre + parseFloat(cur.adjustAfter || 0);
}, 0).toString()
});
});
};
save = () => {
const { salaryFileStore: { adjForm, fetchSingleSalaryItemList, getArchiveForm } } = this.props;
@ -256,7 +257,7 @@ class SalaryArchiveEditAdjLogRecordDialog extends Component {
salaryArchiveItemDetail: {
...salaryArchiveItemDetail, list: _.map(o, it => ({ ...it, dataType: "" }))
}
})} columns={_.map(adjColumns, o => {
}, () => this.updateSumVal())} columns={_.map(adjColumns, o => {
if (o.dataIndex === "adjustAfter") {
return {
...o, render: (__, record) => {