|
|
@ -5,8 +5,10 @@ import dayjs from 'dayjs';
|
|
|
|
import SearchForm from '@/components/SearchForm';
|
|
|
|
import SearchForm from '@/components/SearchForm';
|
|
|
|
import useAuthStore from '@/stores/Auth';
|
|
|
|
import useAuthStore from '@/stores/Auth';
|
|
|
|
import useReportStore from '@/stores/Report';
|
|
|
|
import useReportStore from '@/stores/Report';
|
|
|
|
|
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
|
|
|
|
|
|
|
|
function Index() {
|
|
|
|
function Index() {
|
|
|
|
|
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
|
|
|
|
|
const [travelAgencyId, ] = useAuthStore((state) => [state.loginUser.travelAgencyId]);
|
|
|
|
const [travelAgencyId, ] = useAuthStore((state) => [state.loginUser.travelAgencyId]);
|
|
|
|
const [loading, vendorScoresData, getHWVendorScores] = useReportStore((state) => [state.loading, state.vendorScoresData, state.getHWVendorScores]);
|
|
|
|
const [loading, vendorScoresData, getHWVendorScores] = useReportStore((state) => [state.loading, state.vendorScoresData, state.getHWVendorScores]);
|
|
|
@ -288,7 +290,7 @@ function Index() {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fieldComProps: { dates: { picker: 'month', presets: false } },
|
|
|
|
fieldComProps: { dates: { picker: 'month', presets: false } },
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
confirmText={'Get Report'}
|
|
|
|
confirmText={t('vendor:report.GetReport')}
|
|
|
|
onSubmit={(err, formVal, filedsVal) => {
|
|
|
|
onSubmit={(err, formVal, filedsVal) => {
|
|
|
|
getHWVendorScores(travelAgencyId, formVal.startdate, formVal.enddate);
|
|
|
|
getHWVendorScores(travelAgencyId, formVal.startdate, formVal.enddate);
|
|
|
|
getHWProductScores(travelAgencyId, formVal.startdate, formVal.enddate);
|
|
|
|
getHWProductScores(travelAgencyId, formVal.startdate, formVal.enddate);
|
|
|
|