todo: 三峡, 酒店
parent
4531ce1469
commit
d1ee551a4e
@ -0,0 +1,40 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { Select } from 'antd';
|
||||||
|
import { observer } from 'mobx-react';
|
||||||
|
import { HotelStars as options } from '../../libs/ht';
|
||||||
|
|
||||||
|
const HotelStars = (props) => {
|
||||||
|
const { mode, value, onChange, show_all, ...extProps } = props;
|
||||||
|
const _show_all = ['tags', 'multiple'].includes(mode) ? false : show_all;
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<Select
|
||||||
|
mode={mode || null}
|
||||||
|
allowClear
|
||||||
|
style={{ width: '100%' }}
|
||||||
|
placeholder="星级"
|
||||||
|
value={value || undefined}
|
||||||
|
onChange={(value) => {
|
||||||
|
if (typeof onChange === 'function') {
|
||||||
|
onChange(value);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
labelInValue={false}
|
||||||
|
{...extProps}
|
||||||
|
options={options}
|
||||||
|
>
|
||||||
|
{_show_all ? (
|
||||||
|
<Select.Option key="-1" value="ALL">
|
||||||
|
ALL
|
||||||
|
</Select.Option>
|
||||||
|
) : (
|
||||||
|
''
|
||||||
|
)}
|
||||||
|
</Select>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* 酒店星级
|
||||||
|
*/
|
||||||
|
export default observer(HotelStars);
|
@ -0,0 +1,59 @@
|
|||||||
|
import React, { Children, useContext, useState } from 'react';
|
||||||
|
import { observer } from 'mobx-react';
|
||||||
|
import { stores_Context } from '../config';
|
||||||
|
import moment from 'moment';
|
||||||
|
import { Row, Col, Table, Select, Space, Typography, Progress, Spin, Divider, Button, Switch } from 'antd';
|
||||||
|
import SearchForm from './../components/search/SearchForm';
|
||||||
|
|
||||||
|
export default observer((props) => {
|
||||||
|
const { sale_store, date_picker_store: searchFormStore } = useContext(stores_Context);
|
||||||
|
const { customerServicesStore, date_picker_store } = useContext(stores_Context);
|
||||||
|
|
||||||
|
const { formValues, siderBroken } = searchFormStore;
|
||||||
|
|
||||||
|
const tableProps = {
|
||||||
|
size: 'small',
|
||||||
|
columns: [
|
||||||
|
{ title: '产品', dataIndex: 'op', key: 'op' },
|
||||||
|
{ title: '房间数', dataIndex: 'action', key: 'action' },
|
||||||
|
{ title: '人数', dataIndex: 'action', key: 'action' },
|
||||||
|
{ title: '总利润', dataIndex: 'action', key: 'action' },
|
||||||
|
{ title: '单订船', dataIndex: 'action', key: 'action' },
|
||||||
|
{ title: '订单含行程', dataIndex: 'action', key: 'action' },
|
||||||
|
{ title: '国籍', dataIndex: 'action', key: 'action' },
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Row gutter={16} className={siderBroken ? '' : 'sticky-top'}>
|
||||||
|
<Col md={24} lg={24} xxl={24}>
|
||||||
|
<SearchForm
|
||||||
|
defaultValue={{
|
||||||
|
initialValue: {
|
||||||
|
...date_picker_store.formValues,
|
||||||
|
...customerServicesStore.searchValues,
|
||||||
|
},
|
||||||
|
// 'countryArea',
|
||||||
|
shows: ['DepartmentList', 'orderStatus', 'years', 'keyword', 'agency', 'cruiseType'],
|
||||||
|
sort: { keyword: 101, cruiseType: 102, agency: 103 },
|
||||||
|
fieldProps: {
|
||||||
|
keyword: { placeholder: '产品名', col: 4 },
|
||||||
|
DepartmentList: { show_all: true, mode: 'multiple' },
|
||||||
|
orderStatus: { show_all: true },
|
||||||
|
// years: { hide_vs: false },
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
onSubmit={(_err, obj, form) => {
|
||||||
|
customerServicesStore.setSearchValues(obj, form);
|
||||||
|
// customerServicesStore.fetchDestinationGroupCount();
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
<section>
|
||||||
|
<Table {...tableProps} bordered />
|
||||||
|
</section>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
});
|
@ -0,0 +1,55 @@
|
|||||||
|
import React, { useContext } from 'react';
|
||||||
|
import { observer } from 'mobx-react';
|
||||||
|
import { stores_Context } from '../config';
|
||||||
|
import { Row, Col, Table } from 'antd';
|
||||||
|
import SearchForm from './../components/search/SearchForm';
|
||||||
|
|
||||||
|
export default observer((props) => {
|
||||||
|
const { sale_store, date_picker_store: searchFormStore } = useContext(stores_Context);
|
||||||
|
const { customerServicesStore, date_picker_store } = useContext(stores_Context);
|
||||||
|
|
||||||
|
const { formValues, siderBroken } = searchFormStore;
|
||||||
|
|
||||||
|
const tableProps = {
|
||||||
|
size: 'small',
|
||||||
|
columns: [
|
||||||
|
{ title: '目的地', dataIndex: 'op', key: 'op' },
|
||||||
|
{ title: '总间夜', dataIndex: 'action', key: 'action' },
|
||||||
|
{ title: '主推', dataIndex: 'action', key: 'action' },
|
||||||
|
{ title: '使用比例', dataIndex: 'action', key: 'action' },
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Row gutter={16} className={siderBroken ? '' : 'sticky-top'}>
|
||||||
|
<Col md={24} lg={24} xxl={24}>
|
||||||
|
<SearchForm
|
||||||
|
defaultValue={{
|
||||||
|
initialValue: {
|
||||||
|
...date_picker_store.formValues,
|
||||||
|
...customerServicesStore.searchValues,
|
||||||
|
},
|
||||||
|
// 'countryArea', 'DateType', 'dates',
|
||||||
|
shows: ['DepartmentList', 'countryArea', 'orderStatus', 'bookType', 'recommandRate','hotelStar','DateType', 'dates',],
|
||||||
|
sort: { DateType: 101, dates: 102 },
|
||||||
|
fieldProps: {
|
||||||
|
DepartmentList: { show_all: true, mode: 'multiple' },
|
||||||
|
orderStatus: { show_all: true },
|
||||||
|
// years: { hide_vs: false },
|
||||||
|
DateType: { disabledKeys: ['applyDate'] },
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
onSubmit={(_err, obj, form) => {
|
||||||
|
customerServicesStore.setSearchValues(obj, form);
|
||||||
|
// customerServicesStore.fetchDestinationGroupCount();
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
<section>
|
||||||
|
<Table {...tableProps} bordered />
|
||||||
|
</section>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
});
|
Loading…
Reference in New Issue