/*
 * Author: 黎永顺
 * name:社保福利方案页面重构-高级搜索
 * Description:
 * Date: 2024/2/2
 */
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import { Button } from "antd";
import { WeaInputSearch, WeaLocaleProvider } from "ecCom";
import "./index.less";

const getLabel = WeaLocaleProvider.getLabel;

@inject("programmeStore")
@observer
class Index extends Component {
  render() {
    const { programmeStore: { planSearchForm } } = this.props;
    return (
      <div className="achrive-advance-search">
        <WeaInputSearch value={planSearchForm.getFormParams().schemeName}
                        onChange={v => planSearchForm.updateFields({ schemeName: v })}
                        onSearch={this.props.onAdvanceSearch}
        />
        <Button type="ghost" className="wea-advanced-search text-elli"
                onClick={this.props.onOpenAdvanceSearch}>{getLabel(545754, "高级搜索")}</Button>
      </div>
    );
  }
}

export default Index;
