/** * 待发放页面 */ import React, { Component } from 'react'; import st from 'styled-components'; import { connect } from 'dva'; import { Input, DatePicker, Alert } from 'antd'; import { getComWalletAccount } from '../../../../services/api'; import { withRouter } from 'dva/router'; import moment from 'moment'; import columnFun from './columns'; import tablePage from '../../../../utils/hoc/tablePage'; const { RangePicker } = DatePicker; @connect(state => ({ companyInfo: state.global.companyInfo })) @tablePage() @withRouter export default class NoDistribution extends Component { constructor(props, context) { super(props, context); this.state = { params: null, searchData: null, accountInfo:null,//企业钱包账户信息 }; } componentDidMount() { getComWalletAccount({}).then(res => { this.setState({ accountInfo: res.data }); }); } componentWillMount() { } // 表格渲染 __renderOrderList = () => { const columns = columnFun.call(this, this.state.accountInfo); const { PageTable, isInit } = this.props; if (!isInit) return; return ( `总共 ${total} 条` }} dateChange={(value) => { this.setState({ searchData: value.dfMap }) }} updateIssued={()=>{ this.props.updateIssued() }} /> ); }; render() { const { SearchForm, Form } = this.props; const { getFieldDecorator, setFieldsValue } = this.props.form; const { searchData } = this.state return (
公安系统公示通过的补贴申请信息将显示在本页面;请根据待发放记录进行补贴在线发放;
补贴发放将使用企业钱包的可用金额,请先开通企业钱包并充值资金。
} type="warning" showIcon style={{ marginBottom: '15px' }} /> { values.subsidyType = '2' const { date } = values; if (date.length == 2) { values.startTime = moment(date[0]).format('YYYY-MM-DD'); values.endTime = moment(date[1]).format('YYYY-MM-DD'); } else { values.startTime = ''; values.endTime = ''; } Reflect.deleteProperty(values, 'date'); return values; }} >
{getFieldDecorator('batchName', { initialValue: '' })( )} {getFieldDecorator('subsidyObject', { initialValue: '' })( )} {getFieldDecorator('date', { initialValue: [] })( )}
{ searchData &&
搜索结果统计: 待发放总笔数:{searchData.count} | 待发放总金额(元):{searchData.money}
} {/* 表格 */} {this.__renderOrderList()} ); } } const Yellow = st.span` color: orange `;