个税扣缴义务人恢复删除功能
This commit is contained in:
parent
0e53183958
commit
4fd8d91124
|
|
@ -303,13 +303,15 @@ export default class PayrollGrant extends React.Component {
|
|||
}
|
||||
|
||||
handleExportAll = () => {
|
||||
const { selectedKey } = this.state;
|
||||
const { payrollStore: { exportPayroll } } = this.props;
|
||||
exportPayroll({
|
||||
salarySendId: this.state.currentId
|
||||
salarySendId: this.state.currentId,
|
||||
isGranted: selectedKey !== "0"
|
||||
});
|
||||
};
|
||||
handleExportSelect = () => {
|
||||
const { selectedRowKeys, currentId } = this.state;
|
||||
const { selectedRowKeys, currentId, selectedKey } = this.state;
|
||||
const { payrollStore: { exportPayroll } } = this.props;
|
||||
if (selectedRowKeys.length === 0) {
|
||||
message.warning("未选择条目");
|
||||
|
|
@ -317,7 +319,8 @@ export default class PayrollGrant extends React.Component {
|
|||
}
|
||||
exportPayroll({
|
||||
ids: selectedRowKeys,
|
||||
salarySendId: currentId
|
||||
salarySendId: currentId,
|
||||
isGranted: selectedKey !== "0"
|
||||
});
|
||||
};
|
||||
// 分页
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from "react";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { Button, Col, message, Modal, Row, Switch } from "antd";
|
||||
import { Button, Col, message, Modal, Row, Switch, Dropdown, Menu } from "antd";
|
||||
import { WeaFormItem, WeaInputSearch, WeaSearchGroup, WeaTable, WeaTop } from "ecCom";
|
||||
import { renderNoright } from "../../util"; // 渲染form数据的方法:因为多个页面都会使用,所以抽的公共方法在util中
|
||||
import EditModal from "./editModal";
|
||||
|
|
@ -356,22 +356,22 @@ export default class TaxAgent extends React.Component {
|
|||
onClick={() => this.showEditModal(record.id)}>
|
||||
编辑
|
||||
</a>
|
||||
{/*<Dropdown*/}
|
||||
{/* overlay={*/}
|
||||
{/* <Menu>*/}
|
||||
{/* <Menu.Item key="0">*/}
|
||||
{/* <a*/}
|
||||
{/* href="javaScript:void(0);"*/}
|
||||
{/* onClick={() => this.deleteTaxAgent(record.id)}>*/}
|
||||
{/* 删除*/}
|
||||
{/* </a>*/}
|
||||
{/* </Menu.Item>*/}
|
||||
{/* </Menu>*/}
|
||||
{/* }>*/}
|
||||
{/* <a className="ant-dropdown-link" href="javaScript:void(0);">*/}
|
||||
{/* <i className="icon-coms-more" />*/}
|
||||
{/* </a>*/}
|
||||
{/*</Dropdown>*/}
|
||||
<Dropdown
|
||||
overlay={
|
||||
<Menu>
|
||||
<Menu.Item key="0">
|
||||
<a
|
||||
href="javaScript:void(0);"
|
||||
onClick={() => this.deleteTaxAgent(record.id)}>
|
||||
删除
|
||||
</a>
|
||||
</Menu.Item>
|
||||
</Menu>
|
||||
}>
|
||||
<a className="ant-dropdown-link" href="javaScript:void(0);">
|
||||
<i className="icon-coms-more" />
|
||||
</a>
|
||||
</Dropdown>
|
||||
</div>
|
||||
}
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue