diff --git a/admin-web/src/pages/OrderRefunds/OrderRefundsList.js b/admin-web/src/pages/OrderRefunds/OrderRefundsList.js new file mode 100644 index 000000000..fa57223b2 --- /dev/null +++ b/admin-web/src/pages/OrderRefunds/OrderRefundsList.js @@ -0,0 +1,39 @@ +import React, { PureComponent } from 'react'; +import { connect } from 'dva'; +import { Card, Tabs } from 'antd'; +import PageHeaderWrapper from '../../components/PageHeaderWrapper'; +import TableSearch from './TableSearch'; +import styles from '../List/TableList.less'; + +/** + * 订单售后列表 + */ +@connect(({ loading }) => ({ + loading: loading.models.orderList, +})) +class OrderRefundsList extends PureComponent { + handleTabsChange = value => { + console.log(value); + }; + + render() { + return ( + + +
+ +
+ + + + + + + +
+
+ ); + } +} + +export default OrderRefundsList; diff --git a/admin-web/src/pages/OrderRefunds/OrderRefundsList.less b/admin-web/src/pages/OrderRefunds/OrderRefundsList.less new file mode 100644 index 000000000..605d286f0 --- /dev/null +++ b/admin-web/src/pages/OrderRefunds/OrderRefundsList.less @@ -0,0 +1,49 @@ +@import '../../../node_modules/antd/lib/style/themes/default.less'; +@import '~@/utils/utils.less'; + +.tableList { + .tableListOperator { + margin-bottom: 16px; + button { + margin-right: 8px; + } + } +} + +.tableListForm { + :global { + .ant-form-item { + display: flex; + margin-right: 0; + margin-bottom: 24px; + > .ant-form-item-label { + width: auto; + padding-right: 8px; + line-height: 32px; + } + .ant-form-item-control { + line-height: 32px; + } + } + .ant-form-item-control-wrapper { + flex: 1; + } + } + .submitButtons { + display: block; + margin-bottom: 24px; + white-space: nowrap; + } +} + +@media screen and (max-width: @screen-lg) { + .tableListForm :global(.ant-form-item) { + margin-right: 24px; + } +} + +@media screen and (max-width: @screen-md) { + .tableListForm :global(.ant-form-item) { + margin-right: 8px; + } +} diff --git a/admin-web/src/pages/OrderRefunds/TableSearch.js b/admin-web/src/pages/OrderRefunds/TableSearch.js new file mode 100644 index 000000000..e1d8be01a --- /dev/null +++ b/admin-web/src/pages/OrderRefunds/TableSearch.js @@ -0,0 +1,55 @@ +import React from 'react'; +import { Button, Col, Form, Input, Row, DatePicker } from 'antd'; + +const FormItem = Form.Item; + +/** + * table 查询 + * + * @type {React.ComponentClass>} + */ +const TableSearch = Form.create()(props => { + const { getFieldDecorator } = props.form; + console.log('props.form', props.form); + + function onSubmit() {} + + function handleFormReset() {} + + return ( +
+ + + + {getFieldDecorator('id')()} + + + + + {getFieldDecorator('orderNo')()} + + + + + + + + {getFieldDecorator('createTime')()} + + + + + + + + + +
+ ); +}); + +export default TableSearch;