import React, { Component } from "react";
import {
Button,
Form,
Input
} from "antd";
import {
host,
getExportBizInvoiceInfo
} from '../../../services/api';
@Form.create()
export default class Messages extends Component {
componentDidMount() {
this.props.onSearch(this.props.form.getFieldsValue());
}
_search = (e) => {
e.preventDefault();
this.props.form.validateFields((err, values) => {
if (!err) {
// 搜索的时候重置为第一页
values.pageNumber = 1;
this.props.onSearch(values);
}
});
}
_reset = () => {
this.props.form.resetFields();
this.setState({
month: []
});
const data = this.props.form.getFieldsValue();
data.month = [];
this.props.onSearch(data);
}
render() {
const { getFieldDecorator } = this.props.form;
return (
{getFieldDecorator('keyword', {
initialValue: ''
})(
)}
{/*
{getFieldDecorator('drawerName', {
initialValue: ''
})(
)}
{getFieldDecorator('receiverName', {
initialValue: ''
})(
)}
*/}
);
}
}