个税扣缴义务人添加搜索框
This commit is contained in:
parent
c468ff35ff
commit
f8169a9080
|
|
@ -1,7 +1,7 @@
|
|||
import React from "react";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { Button, Col, message, Modal, Row, Switch } from "antd";
|
||||
import { WeaFormItem, WeaRightMenu, WeaSearchGroup, WeaTable, WeaTop } from "ecCom";
|
||||
import { WeaFormItem, WeaRightMenu, WeaSearchGroup, WeaTable, WeaTop, WeaInputSearch } from "ecCom";
|
||||
import { renderNoright } from "../../util"; // 渲染form数据的方法:因为多个页面都会使用,所以抽的公共方法在util中
|
||||
import EditModal from "./editModal";
|
||||
import TipLabel from "../../components/TipLabel";
|
||||
|
|
@ -14,6 +14,7 @@ export default class TaxAgent extends React.Component {
|
|||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
name: '',
|
||||
editModalProps: {
|
||||
title: "新增个税扣缴义务人",
|
||||
visible: false,
|
||||
|
|
@ -292,7 +293,8 @@ export default class TaxAgent extends React.Component {
|
|||
conditions,
|
||||
decentralizationConditions,
|
||||
permission,
|
||||
syncLoading
|
||||
syncLoading,
|
||||
name
|
||||
} = this.state;
|
||||
const {
|
||||
loading,
|
||||
|
|
@ -300,7 +302,8 @@ export default class TaxAgent extends React.Component {
|
|||
dataSource,
|
||||
columns,
|
||||
doInit,
|
||||
hasRight
|
||||
hasRight,
|
||||
getTaxAgentList
|
||||
} = taxAgentStore;
|
||||
|
||||
if (!hasRight && !loading) {
|
||||
|
|
@ -309,7 +312,14 @@ export default class TaxAgent extends React.Component {
|
|||
}
|
||||
|
||||
const btns = [
|
||||
<Button type="primary" onClick={this.taxAgentRangeSync} loading={syncLoading}>同步人员范围</Button>
|
||||
<Button type="primary" onClick={this.taxAgentRangeSync} loading={syncLoading}>同步人员范围</Button>,
|
||||
<WeaInputSearch
|
||||
value={name}
|
||||
style={{ width: 250 }}
|
||||
placeholder="请输入个税扣缴义务人名称"
|
||||
onChange={name => this.setState({ name })}
|
||||
onSearch={() => getTaxAgentList({name})}
|
||||
/>
|
||||
];
|
||||
const renderTipsLabel = () => {
|
||||
const tipList = [
|
||||
|
|
|
|||
Loading…
Reference in New Issue