/*
 * Author: 黎永顺
 * name: 工资单发放重构-工资单查询
 * Description:
 * Date: 2023/10/12
 */
import React, { Component } from "react";
import { WeaHelpfulTip, WeaLocaleProvider } from "ecCom";
import { MonthRangePicker } from "../../../reportView/components/statisticalMicroSettingsSlide";

const getLabel = WeaLocaleProvider.getLabel;

class GrantQuery extends Component {
  render() {
    const { queryParams } = this.props;
    const { dateRange } = queryParams;
    return (
      <div className="payroll-btn-flex">
        <WeaHelpfulTip
          width={200} placement="topLeft" style={{ marginRight: 10 }}
          title={getLabel(543576, "提示：无工资单模板无法发放工资单，请先设置一个默认使用的工资单模板")}
        />
        <MonthRangePicker dateRange={dateRange} viewAttr={2}
                          onChange={v => this.props.onChange({ dateRange: v })}/>
      </div>
    );
  }
}

export default GrantQuery;
