|
@@ -11,6 +11,7 @@ import {
|
|
|
Select,
|
|
|
} from 'antd';
|
|
|
import moment from 'moment';
|
|
|
+import PageHeaderLayout from '../../layouts/PageHeaderLayout';
|
|
|
import { productType, pageSize } from '../../utils/config';
|
|
|
import styles from './index.less';
|
|
|
|
|
@@ -133,115 +134,117 @@ export default class SoldProductList extends Component {
|
|
|
const newPagination = !!pagination && { ...pagination, showSizeChanger: true, showQuickJumper: true, showTotal: total => `共 ${total} 条` };
|
|
|
|
|
|
return (
|
|
|
- <Card>
|
|
|
- <Form layout="vertical" className={styles.tableSearchForm} onSubmit={this.handleFilterSubmit}>
|
|
|
- <Row gutter={24}>
|
|
|
- <Col span={8}>
|
|
|
- <Form.Item label="渠道名称">
|
|
|
- {getFieldDecorator('merchantId', {
|
|
|
- })(
|
|
|
- <Select placeholder="请选择" style={{ width: '100%' }}>
|
|
|
- {merchant.list.map(item =>
|
|
|
- <Select.Option key={item.id} value={item.id}>{item.name}</Select.Option>)}
|
|
|
- </Select>
|
|
|
- )}
|
|
|
- </Form.Item>
|
|
|
- </Col>
|
|
|
- <Col span={8}>
|
|
|
- <Form.Item label="校区名称">
|
|
|
- {getFieldDecorator('campusName', {
|
|
|
- })(<Input placeholder="请输入" />)}
|
|
|
- </Form.Item>
|
|
|
- </Col>
|
|
|
- <Col span={8}>
|
|
|
- <Form.Item label="校区编号">
|
|
|
- {getFieldDecorator('campusCode', {
|
|
|
- })(<Input placeholder="请输入" />)}
|
|
|
- </Form.Item>
|
|
|
- </Col>
|
|
|
- </Row>
|
|
|
- <Row gutter={24}>
|
|
|
- <Col span={8}>
|
|
|
- <Form.Item label="产品编号">
|
|
|
- {getFieldDecorator('productCode', {
|
|
|
- })(<Input placeholder="请输入" />)}
|
|
|
- </Form.Item>
|
|
|
- </Col>
|
|
|
- <Col span={8}>
|
|
|
- <Form.Item label="终端编号">
|
|
|
- {getFieldDecorator('userCode', {
|
|
|
- })(<Input placeholder="请输入" />)}
|
|
|
- </Form.Item>
|
|
|
- </Col>
|
|
|
- </Row>
|
|
|
- <Row>
|
|
|
- <Col span={24} style={{ textAlign: 'left' }}>
|
|
|
- <Button type="primary" htmlType="submit">搜索</Button>
|
|
|
- <Button onClick={this.handleFilterReset} style={{ marginLeft: 8 }}>重置</Button>
|
|
|
- </Col>
|
|
|
- </Row>
|
|
|
- {/* <Row gutter={24}>
|
|
|
- <Col span={12}>
|
|
|
- <Form.Item label="起始时间">
|
|
|
- {getFieldDecorator('time', {
|
|
|
- })(<RangePicker />)}
|
|
|
- </Form.Item>
|
|
|
- </Col>
|
|
|
- <Col span={12}>
|
|
|
- <Form.Item label="终端编号">
|
|
|
- {getFieldDecorator('userCode', {
|
|
|
- })(<Input placeholder="请输入" />)}
|
|
|
- </Form.Item>
|
|
|
- </Col>
|
|
|
- </Row>
|
|
|
- <Row gutter={24}>
|
|
|
- <Col span={12}>
|
|
|
- <Form.Item label="校区编号">
|
|
|
- {getFieldDecorator('campusCode', {
|
|
|
- })(<Input placeholder="请输入" />)}
|
|
|
- </Form.Item>
|
|
|
- </Col>
|
|
|
- <Col span={12}>
|
|
|
- <Form.Item label="校区名称">
|
|
|
- {getFieldDecorator('campusName', {
|
|
|
- })(<Input placeholder="请输入" />)}
|
|
|
- </Form.Item>
|
|
|
- </Col>
|
|
|
- </Row>
|
|
|
- <Row>
|
|
|
- <Col span={24} style={{ textAlign: 'left' }}>
|
|
|
- <Form.Item label="订单状态">
|
|
|
- {getFieldDecorator('orderStatus', {
|
|
|
- initialValue: 'all',
|
|
|
- })(
|
|
|
- <Radio.Group style={{ width: '100%' }}>
|
|
|
- <Radio key="all" value="all">不限</Radio>
|
|
|
- {Object.keys(orderStatuses).map(item =>
|
|
|
- <Radio key={item} value={item}>{orderStatuses[item]}</Radio>)
|
|
|
- }
|
|
|
- </Radio.Group>
|
|
|
- )}
|
|
|
- </Form.Item>
|
|
|
- </Col>
|
|
|
- </Row>
|
|
|
- <Row>
|
|
|
- <Col span={24} style={{ textAlign: 'right' }}>
|
|
|
- <Button type="primary" htmlType="submit">搜索</Button>
|
|
|
- <Button onClick={this.handleFilterReset} style={{ marginLeft: 8 }}>重置</Button>
|
|
|
- </Col>
|
|
|
- </Row> */}
|
|
|
- </Form>
|
|
|
- <Table
|
|
|
- bordered
|
|
|
- loading={listLoading}
|
|
|
- onChange={this.handleTableChange}
|
|
|
- rowKey={record => record.id}
|
|
|
- columns={columns}
|
|
|
- dataSource={list}
|
|
|
- pagination={newPagination}
|
|
|
- scroll={{ x: 1800 }}
|
|
|
- />
|
|
|
- </Card>
|
|
|
+ <PageHeaderLayout>
|
|
|
+ <Card>
|
|
|
+ <Form layout="vertical" className={styles.tableSearchForm} onSubmit={this.handleFilterSubmit}>
|
|
|
+ <Row gutter={24}>
|
|
|
+ <Col span={8}>
|
|
|
+ <Form.Item label="渠道名称">
|
|
|
+ {getFieldDecorator('merchantId', {
|
|
|
+ })(
|
|
|
+ <Select placeholder="请选择" style={{ width: '100%' }}>
|
|
|
+ {merchant.list.map(item =>
|
|
|
+ <Select.Option key={item.id} value={item.id}>{item.name}</Select.Option>)}
|
|
|
+ </Select>
|
|
|
+ )}
|
|
|
+ </Form.Item>
|
|
|
+ </Col>
|
|
|
+ <Col span={8}>
|
|
|
+ <Form.Item label="校区名称">
|
|
|
+ {getFieldDecorator('campusName', {
|
|
|
+ })(<Input placeholder="请输入" />)}
|
|
|
+ </Form.Item>
|
|
|
+ </Col>
|
|
|
+ <Col span={8}>
|
|
|
+ <Form.Item label="校区编号">
|
|
|
+ {getFieldDecorator('campusCode', {
|
|
|
+ })(<Input placeholder="请输入" />)}
|
|
|
+ </Form.Item>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ <Row gutter={24}>
|
|
|
+ <Col span={8}>
|
|
|
+ <Form.Item label="产品编号">
|
|
|
+ {getFieldDecorator('productCode', {
|
|
|
+ })(<Input placeholder="请输入" />)}
|
|
|
+ </Form.Item>
|
|
|
+ </Col>
|
|
|
+ <Col span={8}>
|
|
|
+ <Form.Item label="终端编号">
|
|
|
+ {getFieldDecorator('userCode', {
|
|
|
+ })(<Input placeholder="请输入" />)}
|
|
|
+ </Form.Item>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ <Row>
|
|
|
+ <Col span={24} style={{ textAlign: 'left' }}>
|
|
|
+ <Button type="primary" htmlType="submit">搜索</Button>
|
|
|
+ <Button onClick={this.handleFilterReset} style={{ marginLeft: 8 }}>重置</Button>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ {/* <Row gutter={24}>
|
|
|
+ <Col span={12}>
|
|
|
+ <Form.Item label="起始时间">
|
|
|
+ {getFieldDecorator('time', {
|
|
|
+ })(<RangePicker />)}
|
|
|
+ </Form.Item>
|
|
|
+ </Col>
|
|
|
+ <Col span={12}>
|
|
|
+ <Form.Item label="终端编号">
|
|
|
+ {getFieldDecorator('userCode', {
|
|
|
+ })(<Input placeholder="请输入" />)}
|
|
|
+ </Form.Item>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ <Row gutter={24}>
|
|
|
+ <Col span={12}>
|
|
|
+ <Form.Item label="校区编号">
|
|
|
+ {getFieldDecorator('campusCode', {
|
|
|
+ })(<Input placeholder="请输入" />)}
|
|
|
+ </Form.Item>
|
|
|
+ </Col>
|
|
|
+ <Col span={12}>
|
|
|
+ <Form.Item label="校区名称">
|
|
|
+ {getFieldDecorator('campusName', {
|
|
|
+ })(<Input placeholder="请输入" />)}
|
|
|
+ </Form.Item>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ <Row>
|
|
|
+ <Col span={24} style={{ textAlign: 'left' }}>
|
|
|
+ <Form.Item label="订单状态">
|
|
|
+ {getFieldDecorator('orderStatus', {
|
|
|
+ initialValue: 'all',
|
|
|
+ })(
|
|
|
+ <Radio.Group style={{ width: '100%' }}>
|
|
|
+ <Radio key="all" value="all">不限</Radio>
|
|
|
+ {Object.keys(orderStatuses).map(item =>
|
|
|
+ <Radio key={item} value={item}>{orderStatuses[item]}</Radio>)
|
|
|
+ }
|
|
|
+ </Radio.Group>
|
|
|
+ )}
|
|
|
+ </Form.Item>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ <Row>
|
|
|
+ <Col span={24} style={{ textAlign: 'right' }}>
|
|
|
+ <Button type="primary" htmlType="submit">搜索</Button>
|
|
|
+ <Button onClick={this.handleFilterReset} style={{ marginLeft: 8 }}>重置</Button>
|
|
|
+ </Col>
|
|
|
+ </Row> */}
|
|
|
+ </Form>
|
|
|
+ <Table
|
|
|
+ bordered
|
|
|
+ loading={listLoading}
|
|
|
+ onChange={this.handleTableChange}
|
|
|
+ rowKey={record => record.id}
|
|
|
+ columns={columns}
|
|
|
+ dataSource={list}
|
|
|
+ pagination={newPagination}
|
|
|
+ scroll={{ x: 1800 }}
|
|
|
+ />
|
|
|
+ </Card>
|
|
|
+ </PageHeaderLayout>
|
|
|
);
|
|
|
}
|
|
|
}
|