release/2.19.1.2501.01-个税
This commit is contained in:
parent
87870e9101
commit
0d55c14f0b
|
|
@ -12,6 +12,7 @@ import DeductionListConfirmEmployeeDialog from "./deductionListConfirmEmployeeDi
|
||||||
import DeductionAmountEditDialog from "./deductionAmountEditDialog";
|
import DeductionAmountEditDialog from "./deductionAmountEditDialog";
|
||||||
import { Button, Col, message, Modal, Row } from "antd";
|
import { Button, Col, message, Modal, Row } from "antd";
|
||||||
import * as API from "../../../apis/declare";
|
import * as API from "../../../apis/declare";
|
||||||
|
import { calcPageNo } from "../../../util";
|
||||||
|
|
||||||
const { getLabel } = WeaLocaleProvider, { getUrlParams } = WeaTools;
|
const { getLabel } = WeaLocaleProvider, { getUrlParams } = WeaTools;
|
||||||
|
|
||||||
|
|
@ -63,8 +64,14 @@ class DeductionListConfirmDialog extends Component {
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
API.deleteDeductionAmount({ ids: this.state.selectedRowKeys }).then(({ status, errormsg }) => {
|
API.deleteDeductionAmount({ ids: this.state.selectedRowKeys }).then(({ status, errormsg }) => {
|
||||||
if (status) {
|
if (status) {
|
||||||
|
const { pageInfo } = this.state, { current, pageSize, total } = pageInfo;
|
||||||
message.success(getLabel(111, "操作成功"));
|
message.success(getLabel(111, "操作成功"));
|
||||||
this.setState({ selectedRowKeys: [] }, () => this.getDeductionAmountList());
|
this.setState({
|
||||||
|
selectedRowKeys: [],
|
||||||
|
pageInfo: {
|
||||||
|
...pageInfo, current: calcPageNo(total, current, pageSize, this.state.selectedRowKeys.length)
|
||||||
|
}
|
||||||
|
}, () => this.getDeductionAmountList());
|
||||||
} else {
|
} else {
|
||||||
message.error(errormsg);
|
message.error(errormsg);
|
||||||
}
|
}
|
||||||
|
|
@ -125,7 +132,7 @@ class DeductionListConfirmDialog extends Component {
|
||||||
};
|
};
|
||||||
const height = this.refs.employeeRef ? this.refs.employeeRef.state.height : 400;
|
const height = this.refs.employeeRef ? this.refs.employeeRef.state.height : 400;
|
||||||
return (
|
return (
|
||||||
<WeaDialog {...this.props} hasScroll initLoadCss ref="confirmRef" className="confirmationDialog"
|
<WeaDialog {...this.props} initLoadCss ref="confirmRef" className="confirmationDialog"
|
||||||
title={(<Row type="flex">
|
title={(<Row type="flex">
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<span className="title">{getLabel(111, "扣除名单确认")}</span>
|
<span className="title">{getLabel(111, "扣除名单确认")}</span>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue