|
|
@ -64,6 +64,7 @@ const paramKeyMapped = {
|
|
|
|
'DateDiff1': { key: 'CompareDateStart' },
|
|
|
|
'DateDiff1': { key: 'CompareDateStart' },
|
|
|
|
'DateDiff2': { key: 'CompareDateEnd' },
|
|
|
|
'DateDiff2': { key: 'CompareDateEnd' },
|
|
|
|
'keyword': { key: 'ProductName' },
|
|
|
|
'keyword': { key: 'ProductName' },
|
|
|
|
|
|
|
|
'agency': { key: 'VEI_SN' },
|
|
|
|
'cruiseDirection': { key: 'Direction' },
|
|
|
|
'cruiseDirection': { key: 'Direction' },
|
|
|
|
'cruiseBookType': { key: 'BookingType' },
|
|
|
|
'cruiseBookType': { key: 'BookingType' },
|
|
|
|
'hotelStar': { key: 'Star' },
|
|
|
|
'hotelStar': { key: 'Star' },
|
|
|
@ -85,7 +86,7 @@ class HotelCruise {
|
|
|
|
const _queryParam = objectMapper(param, paramKeyMapped);
|
|
|
|
const _queryParam = objectMapper(param, paramKeyMapped);
|
|
|
|
const queryParam = omit({ ...this.searchValuesToSub, ..._queryParam }, [
|
|
|
|
const queryParam = omit({ ...this.searchValuesToSub, ..._queryParam }, [
|
|
|
|
'DepartmentList', 'orderStatus', 'keyword', 'Date1', 'Date2', 'DateDiff1', 'DateDiff2',
|
|
|
|
'DepartmentList', 'orderStatus', 'keyword', 'Date1', 'Date2', 'DateDiff1', 'DateDiff2',
|
|
|
|
'cruiseDirection', 'cruiseBookType', 'country'
|
|
|
|
'cruiseDirection', 'cruiseBookType', 'country', 'agency',
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
queryParam.Compare = isEmpty(param.DateDiff1) ? '' : '1';
|
|
|
|
queryParam.Compare = isEmpty(param.DateDiff1) ? '' : '1';
|
|
|
|
const res = await fetchCruiseData(queryParam);
|
|
|
|
const res = await fetchCruiseData(queryParam);
|
|
|
|