|
|
|
|
@ -6,10 +6,8 @@ import { isEmpty } from '@/utils/commons'
|
|
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
|
import useFormStore from '@/stores/Form'
|
|
|
|
|
import useReservationStore from '@/stores/Reservation'
|
|
|
|
|
import useAuthStore from '@/stores/Auth'
|
|
|
|
|
import SearchForm from '@/components/SearchForm'
|
|
|
|
|
import { usingStorage } from '@/hooks/usingStorage'
|
|
|
|
|
import { PERM_AGENCY_ALL } from '@/config';
|
|
|
|
|
|
|
|
|
|
const { Title } = Typography
|
|
|
|
|
|
|
|
|
|
@ -98,7 +96,6 @@ function Newest() {
|
|
|
|
|
const [guideSelectOptions, setGuideSelectOptions] = useState([])
|
|
|
|
|
|
|
|
|
|
const { travelAgencyId: myAgencyId } = usingStorage()
|
|
|
|
|
const isPermitted = useAuthStore((state) => state.isPermitted)
|
|
|
|
|
const formValuesToSub = useFormStore((state) => state.formValuesToSub)
|
|
|
|
|
const [fetchAgencyGuideList, fetchReservationList, reservationList, reservationPage, cityList, selectReservation, getCityListByReservationId, setupCityGuide, updateReservationGuide] =
|
|
|
|
|
useReservationStore((state) =>
|
|
|
|
|
@ -158,9 +155,6 @@ function Newest() {
|
|
|
|
|
// 默认重新搜索第一页,所有状态的计划
|
|
|
|
|
const searchReservation = (submitValues, current=1) => {
|
|
|
|
|
setDataLoading(true)
|
|
|
|
|
console.info('submitValues: ', submitValues)
|
|
|
|
|
|
|
|
|
|
initAgencyGuideList(submitValues.agency)
|
|
|
|
|
fetchReservationList(submitValues, current)
|
|
|
|
|
.catch(ex => {
|
|
|
|
|
notification.error({
|
|
|
|
|
|