|
|
|
|
@ -106,7 +106,7 @@ function Newest() {
|
|
|
|
|
const [dataLoading, setDataLoading] = useState(false)
|
|
|
|
|
const [guideSelectOptions, setGuideSelectOptions] = useState([])
|
|
|
|
|
|
|
|
|
|
const formValues = useFormStore((state) => state.formValues)
|
|
|
|
|
const formValuesToSub = useFormStore((state) => state.formValuesToSub)
|
|
|
|
|
|
|
|
|
|
const [fetchAllGuideList, fetchReservationList, reservationList, reservationPage, cityList, selectReservation, getCityListByReservationId] =
|
|
|
|
|
useReservationStore((state) =>
|
|
|
|
|
@ -163,7 +163,7 @@ function Newest() {
|
|
|
|
|
// 默认重新搜索第一页,所有状态的计划
|
|
|
|
|
const onSearchClick = (current=1, status=null) => {
|
|
|
|
|
setDataLoading(true)
|
|
|
|
|
fetchReservationList(formValues, current)
|
|
|
|
|
fetchReservationList(formValuesToSub, current)
|
|
|
|
|
.catch(ex => {
|
|
|
|
|
notification.error({
|
|
|
|
|
message: `Notification`,
|
|
|
|
|
@ -216,7 +216,7 @@ function Newest() {
|
|
|
|
|
// {
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
defaultValue={{
|
|
|
|
|
fieldsConfig={{
|
|
|
|
|
shows: ['referenceNo', 'dates'],
|
|
|
|
|
fieldProps: {
|
|
|
|
|
dates: { label: t('group:ArrivalDate') },
|
|
|
|
|
@ -224,7 +224,7 @@ function Newest() {
|
|
|
|
|
}}
|
|
|
|
|
onSubmit={(err, formVal, filedsVal) => {
|
|
|
|
|
setDataLoading(true)
|
|
|
|
|
fetchReservationList(travelAgencyId, formVal)
|
|
|
|
|
fetchReservationList(formVal)
|
|
|
|
|
.catch(ex => {
|
|
|
|
|
notification.error({
|
|
|
|
|
message: 'Notification',
|
|
|
|
|
|