|
|
@ -3,7 +3,7 @@ import { toJS } from 'mobx';
|
|
|
|
import { observer } from 'mobx-react';
|
|
|
|
import { observer } from 'mobx-react';
|
|
|
|
import { DATE_FORMAT, SMALL_DATETIME_FORMAT, stores_Context } from './../../config';
|
|
|
|
import { DATE_FORMAT, SMALL_DATETIME_FORMAT, stores_Context } from './../../config';
|
|
|
|
import { SearchOutlined } from '@ant-design/icons';
|
|
|
|
import { SearchOutlined } from '@ant-design/icons';
|
|
|
|
import { Form, Row, Col, Select, Button, Space, DatePicker, Input } from 'antd';
|
|
|
|
import { Form, Row, Col, Select, Button, Space, DatePicker, Input, InputNumber } from 'antd';
|
|
|
|
import moment from 'moment';
|
|
|
|
import moment from 'moment';
|
|
|
|
// import locale from 'antd/es/date-picker/locale/zh_CN';
|
|
|
|
// import locale from 'antd/es/date-picker/locale/zh_CN';
|
|
|
|
import BusinessSelect from './BusinessSelect';
|
|
|
|
import BusinessSelect from './BusinessSelect';
|
|
|
@ -181,6 +181,11 @@ export default observer((props) => {
|
|
|
|
transform: (value) => value?.value || value?.key || '',
|
|
|
|
transform: (value) => value?.value || value?.key || '',
|
|
|
|
default: '',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
'cruiseDirection': {
|
|
|
|
|
|
|
|
key: 'cruiseDirection',
|
|
|
|
|
|
|
|
transform: (value) => value?.key || '',
|
|
|
|
|
|
|
|
default: '',
|
|
|
|
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
let dest = {};
|
|
|
|
let dest = {};
|
|
|
|
const { departureDateType, applyDate, applyDate2, year, yearDiff, dates, months, date, ...omittedValue } = values;
|
|
|
|
const { departureDateType, applyDate, applyDate2, year, yearDiff, dates, months, date, ...omittedValue } = values;
|
|
|
@ -276,7 +281,7 @@ function getFields(props) {
|
|
|
|
let baseChildren = [];
|
|
|
|
let baseChildren = [];
|
|
|
|
baseChildren = [
|
|
|
|
baseChildren = [
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
"keyword", // 关键词搜索 {...fieldComProps.keyword}
|
|
|
|
'keyword', // 关键词搜索 {...fieldComProps.keyword}
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name="keyword" {...fieldProps.keyword}>
|
|
|
|
<Form.Item name="keyword" {...fieldProps.keyword}>
|
|
|
|
<Input allowClear {...fieldProps.keyword} />
|
|
|
|
<Input allowClear {...fieldProps.keyword} />
|
|
|
@ -377,11 +382,11 @@ function getFields(props) {
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
'orderStatus',
|
|
|
|
'orderStatus',
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name={`orderStatus`} initialValue={at(props, 'initialValue.orderStatus')[0] || (fieldProps?.orderStatus?.show_all ? { key: '-1', label: '所有' } : undefined)}>
|
|
|
|
<Form.Item name={`orderStatus`} initialValue={at(props, 'initialValue.orderStatus')[0] || (fieldProps?.orderStatus?.show_all ? { key: '-1', label: '成行状态' } : undefined)}>
|
|
|
|
<Select style={{ width: '100%' }} placeholder="所有状态" labelInValue>
|
|
|
|
<Select style={{ width: '100%' }} placeholder="成行状态" labelInValue allowClear>
|
|
|
|
{fieldProps?.orderStatus?.show_all && (
|
|
|
|
{fieldProps?.orderStatus?.show_all && (
|
|
|
|
<Select.Option key="所有" value="-1">
|
|
|
|
<Select.Option key="-1" value="-1" disabled>
|
|
|
|
所有
|
|
|
|
成行状态
|
|
|
|
</Select.Option>
|
|
|
|
</Select.Option>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
<Select.Option key="已成行" value="1">
|
|
|
|
<Select.Option key="已成行" value="1">
|
|
|
@ -407,10 +412,7 @@ function getFields(props) {
|
|
|
|
'departureDateType',
|
|
|
|
'departureDateType',
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name={`departureDateType`} initialValue={at(props, 'initialValue.departureDateType')[0] || { key: 'departureDate', label: '抵达日期' }}>
|
|
|
|
<Form.Item name={`departureDateType`} initialValue={at(props, 'initialValue.departureDateType')[0] || { key: 'departureDate', label: '抵达日期' }}>
|
|
|
|
<Select labelInValue={true}
|
|
|
|
<Select labelInValue={true} style={{ width: '100%' }} placeholder="选择日期类型">
|
|
|
|
style={{ width: '100%' }}
|
|
|
|
|
|
|
|
placeholder="选择日期类型"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{departureDateTypes.map((ele) => (
|
|
|
|
{departureDateTypes.map((ele) => (
|
|
|
|
<Select.Option key={ele.key} value={ele.key} disabled={fieldProps?.departureDateType?.disabledKeys.includes(ele.key)}>
|
|
|
|
<Select.Option key={ele.key} value={ele.key} disabled={fieldProps?.departureDateType?.disabledKeys.includes(ele.key)}>
|
|
|
|
{ele.label}
|
|
|
|
{ele.label}
|
|
|
@ -502,28 +504,80 @@ function getFields(props) {
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
'cruiseType',
|
|
|
|
'cruiseDirection',
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name={`cruiseType`} initialValue={at(props, 'initialValue.cruiseType')[0] || (fieldProps?.cruiseType?.show_all ? { key: 'all', label: '所有行程' } : undefined)}>
|
|
|
|
<Form.Item name={`cruiseDirection`} initialValue={at(props, 'initialValue.cruiseDirection')[0] || undefined}>
|
|
|
|
<Select style={{ width: '100%' }} placeholder="所有行程" labelInValue>
|
|
|
|
<Select style={{ width: '100%' }} placeholder="上下水" labelInValue allowClear>
|
|
|
|
{fieldProps?.cruiseType?.show_all && (
|
|
|
|
{fieldProps?.cruiseDirection?.show_all && (
|
|
|
|
<Option key="all" value="">
|
|
|
|
<Option key="all" value="" disabled>
|
|
|
|
所有
|
|
|
|
上下水
|
|
|
|
</Option>
|
|
|
|
</Option>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
<Option key="upstream" value="upstream">
|
|
|
|
<Option key="1" value="1">
|
|
|
|
上水
|
|
|
|
上水
|
|
|
|
</Option>
|
|
|
|
</Option>
|
|
|
|
<Option key="downstream" value="downstream">
|
|
|
|
<Option key="2" value="2">
|
|
|
|
下水
|
|
|
|
下水
|
|
|
|
</Option>
|
|
|
|
</Option>
|
|
|
|
<Option key="long" value="long">
|
|
|
|
{/* <Option key="long" value="long">
|
|
|
|
长线
|
|
|
|
长线
|
|
|
|
|
|
|
|
</Option> */}
|
|
|
|
|
|
|
|
</Select>
|
|
|
|
|
|
|
|
</Form.Item>,
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
item(
|
|
|
|
|
|
|
|
'cruiseBookType',
|
|
|
|
|
|
|
|
99,
|
|
|
|
|
|
|
|
<Form.Item name={`cruiseBookType`} initialValue={at(props, 'initialValue.cruiseBookType')[0] || (fieldProps?.cruiseBookType?.show_all ? { key: 'all', label: '预定类型' } : undefined)}>
|
|
|
|
|
|
|
|
<Select style={{ width: '100%' }} placeholder="预定类型" labelInValue allowClear>
|
|
|
|
|
|
|
|
{fieldProps?.cruiseBookType?.show_all && (
|
|
|
|
|
|
|
|
<Option key="all" value="" disabled>
|
|
|
|
|
|
|
|
预定类型
|
|
|
|
|
|
|
|
</Option>
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
<Option key="1" value="1">
|
|
|
|
|
|
|
|
单订三峡
|
|
|
|
|
|
|
|
</Option>
|
|
|
|
|
|
|
|
<Option key="0" value="0">
|
|
|
|
|
|
|
|
其他
|
|
|
|
</Option>
|
|
|
|
</Option>
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
</Form.Item>,
|
|
|
|
</Form.Item>,
|
|
|
|
3
|
|
|
|
3
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
item(
|
|
|
|
|
|
|
|
'roomsRange',
|
|
|
|
|
|
|
|
99,
|
|
|
|
|
|
|
|
<Form.Item noStyle>
|
|
|
|
|
|
|
|
<Input.Group compact>
|
|
|
|
|
|
|
|
<Form.Item name={'RoomNumStart'} noStyle>
|
|
|
|
|
|
|
|
<InputNumber style={{ width: 'calc(50% - 15px)', textAlign: 'center' }} placeholder="房间数" />
|
|
|
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
<Input style={{ width: 30, borderLeft: 0, borderRight: 0, pointerEvents: 'none', }} placeholder="~" disabled />
|
|
|
|
|
|
|
|
<Form.Item name={'RoomNumEnd'} noStyle>
|
|
|
|
|
|
|
|
<InputNumber style={{ width: 'calc(50% - 15px)', textAlign: 'center', borderLeft: 0 }} placeholder="房间数" />
|
|
|
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
</Input.Group>
|
|
|
|
|
|
|
|
</Form.Item>,
|
|
|
|
|
|
|
|
fieldProps?.roomsRange?.col || 4
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
item(
|
|
|
|
|
|
|
|
'personRange',
|
|
|
|
|
|
|
|
99,
|
|
|
|
|
|
|
|
<Form.Item noStyle>
|
|
|
|
|
|
|
|
<Input.Group compact>
|
|
|
|
|
|
|
|
<Form.Item name={'PersonNumStart'} noStyle>
|
|
|
|
|
|
|
|
<InputNumber style={{ width: 'calc(50% - 15px)', textAlign: 'center' }} placeholder="人数" />
|
|
|
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
<Input style={{ width: 30, borderLeft: 0, borderRight: 0, pointerEvents: 'none', }} placeholder="~" disabled />
|
|
|
|
|
|
|
|
<Form.Item name={'PersonNumEnd'} noStyle>
|
|
|
|
|
|
|
|
<InputNumber style={{ width: 'calc(50% - 15px)', textAlign: 'center', borderLeft: 0 }} placeholder="人数" />
|
|
|
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
</Input.Group>
|
|
|
|
|
|
|
|
</Form.Item>,
|
|
|
|
|
|
|
|
fieldProps?.personRange?.col || 4
|
|
|
|
|
|
|
|
),
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
'bookType',
|
|
|
|
'bookType',
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|