import React, { Component } from 'react'; import moment from 'moment'; import { connect } from 'dva'; import { routerRedux } from 'dva/router'; import { Card, Button, Popover, message } from 'antd'; import { StandardTableList } from '../../../components/RBList/index'; import { addRowKey, renderOrderStatus, renderOrderSplitStatus, provinceCodeToName } from '../../../utils/utils'; const Message = message; @connect(({ loading, trade }) => ({ trade, loading: loading.models.trade, })) export default class OrderListPage extends Component { constructor(props) { super(props); const { state } = props.location; this.state = { UIParams: (state || {}).UIParams, // 组件的状态参数 Queryers: (state || {}).Queryers, // 查询的条件参数 }; } componentDidMount() { this.props.dispatch({ type: 'trade/fetchOrderList', payload: { ...this.state.Queryers }, }); } handleCreateOperation = () => { } handleFilterOperation = (params, states) => { this.props.dispatch({ type: 'trade/fetchOrderList', payload: params, }); this.setState({ UIParams: states, Queryers: params, }); } handleBatchOperation = () => { Message.info('暂不支持批量操作!'); } render() { const { loading, trade } = this.props; const { list, totalSize, pageSize, pageNo } = trade; const renderOperation = () => { return (
终端编号: {userCode}
所属校区: {`${provinceCodeToName(provinceCode)}${cityName}${zoneName}`}
所属渠道: {merchantName}
初始价格: {originPrice}
优惠价格: {adjustPrice}
实际售价: {finalPrice}
收货人: {name}
手机号码: {mobile}
收货地址: {address}
} > {name}