|
|
|
|
@ -7,7 +7,6 @@ import { useTranslation } from 'react-i18next'
|
|
|
|
|
import useFormStore from '@/stores/Form'
|
|
|
|
|
import useReservationStore from '@/stores/Reservation'
|
|
|
|
|
import SearchForm from '@/components/SearchForm'
|
|
|
|
|
import { usingStorage } from '@/hooks/usingStorage'
|
|
|
|
|
|
|
|
|
|
const { Title } = Typography
|
|
|
|
|
|
|
|
|
|
@ -95,12 +94,11 @@ function Newest() {
|
|
|
|
|
const [dataLoading, setDataLoading] = useState(false)
|
|
|
|
|
const [guideSelectOptions, setGuideSelectOptions] = useState([])
|
|
|
|
|
|
|
|
|
|
const { travelAgencyId: myAgencyId } = usingStorage()
|
|
|
|
|
const formValuesToSub = useFormStore((state) => state.formValuesToSub)
|
|
|
|
|
const [fetchAgencyGuideList, fetchReservationList, reservationList, reservationPage, cityList, selectReservation, getCityListByReservationId, setupCityGuide, updateReservationGuide] =
|
|
|
|
|
useReservationStore((state) =>
|
|
|
|
|
[state.fetchAgencyGuideList, state.fetchReservationList, state.reservationList, state.reservationPage, state.cityList, state.selectReservation, state.getCityListByReservationId, state.setupCityGuide, state.updateReservationGuide])
|
|
|
|
|
const travelAgencyId = formValuesToSub.agency || myAgencyId;
|
|
|
|
|
const travelAgencyId = formValuesToSub.agency;
|
|
|
|
|
|
|
|
|
|
const { notification } = App.useApp()
|
|
|
|
|
|
|
|
|
|
|