Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigwood
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
bigwood
Commits
7ef67f53
Commit
7ef67f53
authored
Aug 25, 2023
by
wuchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5c6790b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
+14
-15
didahotel.ts
src/api/didahotel.ts
+5
-0
DetailsList.vue
src/components/scattered/dida/DetailsList.vue
+9
-15
No files found.
src/api/didahotel.ts
View file @
7ef67f53
...
...
@@ -26,6 +26,11 @@ class DidaService {
return
request
(
'dmc_post_GetDidaBedTypeBaseInfo'
,
param
,
false
)
}
//道旅酒店详情
static
async
GetHotelRoomsList
(
param
:
any
):
Promise
<
HttpResponse
>
{
return
request
(
'dmc_post_GetDiDaPriceSearchList'
,
param
)
}
// 道旅酒店列表
static
async
GetDidaHotelList
(
param
:
any
):
Promise
<
HttpResponse
>
{
param
.
reviewRatingUpperLimits
=
param
.
reviewRatingUpperLimits
&&
param
.
reviewRatingUpperLimits
!=
''
?
param
.
reviewRatingUpperLimits
:
0
...
...
src/components/scattered/dida/DetailsList.vue
View file @
7ef67f53
...
...
@@ -123,7 +123,7 @@
import
{
useI18n
}
from
'vue-i18n'
import
svgIcon
from
'../../global/svg-icon.vue'
import
{
computed
,
inject
,
provide
,
reactive
,
ref
,
toRefs
,
defineComponent
,
onMounted
,
watch
}
from
'vue'
import
HotelService
from
'../../../api/scattered'
import
DidaService
from
"../../../api/didahotel"
;
import
message
from
'../../../utils/message'
import
{
ApiResult
}
from
'../../../@types/enumHelper'
import
{
date
}
from
'quasar'
...
...
@@ -189,15 +189,9 @@
data
.
childNum
=
getParamsMsg
.
childNum
?
getParamsMsg
.
childNum
:
''
data
.
room
=
data
.
theRooms
[
search
.
searchroomGroup
.
length
-
1
]
// data.dateRange.to = date.formatDate(date.addToDate(new Date(), { days: 9 }), 'YYYY/MM/DD')
// data.dateRange.from = date.formatDate(date.addToDate(new Date(), { days: 8 }), 'YYYY/MM/DD')
// data.dateRangeFormat = `${data.dateRange.from} - ${data.dateRange.to}`
// search.arrivalDate = data.dateRange.from
// search.departureDate = data.dateRange.to
data
.
dateRange
.
to
=
search
.
arrivalDate
data
.
dateRange
.
from
=
search
.
departureDate
data
.
dateRangeFormat
=
`
${
search
.
arrivalDate
}
-
${
search
.
departureDate
}
`
data
.
dateRange
.
to
=
search
.
CheckInDate
data
.
dateRange
.
from
=
search
.
CheckOutDate
data
.
dateRangeFormat
=
`
${
search
.
CheckInDate
}
-
${
search
.
CheckOutDate
}
`
data
.
RoomTypeList
=
useHotel
.
getHotelRoomType
()
data
.
scatteredRoomTypeList
=
useHotel
.
getHotelScatRoom
()
...
...
@@ -297,7 +291,7 @@
initHotel
()
{
data
.
loading
=
true
let
param
=
Object
.
assign
(
search
)
Hotel
Service
.
GetHotelRoomsList
(
param
)
Dida
Service
.
GetHotelRoomsList
(
param
)
.
then
(
r
=>
{
data
.
SimilarList
=
[]
as
Array
<
any
>
if
(
r
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
...
...
@@ -370,10 +364,10 @@
search
.
childNum
=
data
.
childNum
;
},
dateRangeHandler
(
e
:
any
)
{
search
.
arrival
Date
=
`
${
e
.
from
.
year
}
/
${
e
.
from
.
month
}
/
${
e
.
from
.
day
}
`
if
(
search
.
arrival
Date
!=
`
${
e
.
to
.
year
}
/
${
e
.
to
.
month
}
/
${
e
.
to
.
day
}
`
){
search
.
departure
Date
=
`
${
e
.
to
.
year
}
/
${
e
.
to
.
month
}
/
${
e
.
to
.
day
}
`
data
.
dateRangeFormat
=
`
${
search
.
arrivalDate
}
-
${
search
.
departure
Date
}
`
search
.
CheckIn
Date
=
`
${
e
.
from
.
year
}
/
${
e
.
from
.
month
}
/
${
e
.
from
.
day
}
`
if
(
search
.
CheckIn
Date
!=
`
${
e
.
to
.
year
}
/
${
e
.
to
.
month
}
/
${
e
.
to
.
day
}
`
){
search
.
CheckOut
Date
=
`
${
e
.
to
.
year
}
/
${
e
.
to
.
month
}
/
${
e
.
to
.
day
}
`
data
.
dateRangeFormat
=
`
${
search
.
CheckInDate
}
-
${
search
.
CheckOut
Date
}
`
if
(
qDateProxy
.
value
)
qDateProxy
.
value
.
hide
()
}
else
{
// message.errorMsg(`${t('v101.scatteredDetails.timeTis')}`)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment