diff --git a/pc4mobx/hrmSalary/pages/declareDetail/index.js b/pc4mobx/hrmSalary/pages/declareDetail/index.js index d628d610..280bfc5b 100644 --- a/pc4mobx/hrmSalary/pages/declareDetail/index.js +++ b/pc4mobx/hrmSalary/pages/declareDetail/index.js @@ -50,7 +50,7 @@ class Index extends Component { constructor(props) { super(props); this.state = { - tabs: [], selectedKey: "", columns: [], dataSource: [], editTabVisible: false, + tabs: [], selectedKey: "", columns: [], dataSource: [], editTabVisible: false, keyword: "", loading: { query: false, refresh: false, declare: false, feedback: false, correct: false, cancel: false, cancelFeedback: false, refreshingPay: false, @@ -154,10 +154,10 @@ class Index extends Component { childFrameObj && childFrameObj.contentWindow.postMessage(JSON.stringify({ ...payload, i18n, declareStatus }), "*"); }; getDetailList = () => { - const { loading, pageInfo, selectedKey } = this.state; + const { loading, pageInfo, selectedKey, keyword } = this.state; const [incomeCategory, taxDeclarationId] = selectedKey.split("%%"); const payload = { - ...pageInfo, incomeCategory, taxDeclarationId, + ...pageInfo, incomeCategory, taxDeclarationId, keyword, taxDeclareRecordId: getQueryString("id") }; this.setState({ loading: { ...loading, query: true } }); @@ -420,6 +420,9 @@ class Index extends Component { datas={tabs} keyParam="viewcondition" selectedKey={selectedKey} showAddBtn buttons={btns} type="editable-inline" onEdit={this.handleTabEdit} leftStyle={{ width: "calc(100% - 450px)" }} onChange={(v) => this.setState({ selectedKey: v }, () => this.getDetailList())} + searchType={["base"]} searchsBasePlaceHolder={getLabel(26919, "请输入姓名")} + onSearchChange={keyword => this.setState({ keyword })} + onSearch={this.getDetailList} /> {/*个税申报表-新增编辑框*/} ); const buttons = [ - this.setState({ - taxCycle: val, pageInfo: { ...pageInfo, current: 1 } - }, () => this.queryEmployeeList())}/>, +
+ {getLabel(542240, "税款所属期")}: + this.setState({ + taxCycle: val, pageInfo: { ...pageInfo, current: 1 } + }, () => this.queryEmployeeList())}/> +
, ,