Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Athena
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
Merge Requests
0
Merge Requests
0
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
华国豪
Athena
Commits
c2a0fed2
Commit
c2a0fed2
authored
Feb 25, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加日期筛选
parent
8771b72e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
5 deletions
+62
-5
SupplierView.vue
src/components/Hotel/SupplierView.vue
+62
-5
No files found.
src/components/Hotel/SupplierView.vue
View file @
c2a0fed2
...
@@ -495,6 +495,21 @@
...
@@ -495,6 +495,21 @@
.hotel-inner
li
:last-child
{
.hotel-inner
li
:last-child
{
border-bottom
:
0
;
border-bottom
:
0
;
}
}
.Sp_PsureBtn
{
width
:
80px
;
height
:
30px
;
background-color
:
#EE4454
;
color
:
#fff
;
font-size
:
16px
;
font-weight
:
400
;
outline
:
none
;
border
:
none
;
cursor
:
pointer
;
border-radius
:
4px
;
position
:
absolute
;
top
:
1px
;
margin-left
:
20px
;
}
</
style
>
</
style
>
<
template
>
<
template
>
...
@@ -561,11 +576,32 @@
...
@@ -561,11 +576,32 @@
</div>
</div>
</div>
</div>
<div
class=
"HD_btnContent"
style=
"margin-top:0;"
>
<div
class=
"HD_btnContent"
style=
"margin-top:0;"
>
<div
style=
"margin:15px 0;padding-left:20px;position:relative;"
>
<span
style=
"font-size:14px;"
>
入住日期:
</span>
<el-date-picker
class=
"HD_date_input"
style=
"width:190px;"
clear-icon=
""
size=
"small"
value-format=
"yyyy-MM-dd"
:picker-options=
"beforeCheck"
v-model=
"msg.CheckInTime"
type=
"date"
placeholder=
""
>
</el-date-picker>
<span
style=
"font-size:14px;margin-left:20px;"
>
退房日期:
</span>
<el-date-picker
class=
"HD_date_input"
style=
"width:190px;"
clear-icon=
""
size=
"small"
value-format=
"yyyy-MM-dd"
v-model=
"msg.CheckOutTime"
:picker-options=
"afterCheck"
type=
"date"
placeholder=
""
>
</el-date-picker>
<input
type=
"button"
value=
"查询"
@
click=
"getList()"
class=
"Sp_PsureBtn"
/>
</div>
<div
class=
"HD_fuhe"
>
<div
class=
"HD_fuhe"
>
<img
src=
"../../assets/img/hotel/fuhe.png"
alt=
""
>
<img
src=
"../../assets/img/hotel/fuhe.png"
alt=
""
>
符合条件的房型
符合条件的房型
</div>
</div>
<table
class=
"HD_fangxing"
v-for=
"(item,index) in dataList"
:key=
"index"
>
<table
class=
"HD_fangxing"
v-for=
"(item,index) in dataList"
:key=
"index"
v-loading=
"loading"
>
<tr>
<tr>
<td
class=
"HD_letfTD"
>
<td
class=
"HD_letfTD"
>
<div
class=
"HD_LeftRoomInfo"
>
<div
class=
"HD_LeftRoomInfo"
>
...
@@ -590,7 +626,7 @@
...
@@ -590,7 +626,7 @@
<div
style=
"margin-left:20px;"
>
楼层:{{item.Floor}}
</div>
<div
style=
"margin-left:20px;"
>
楼层:{{item.Floor}}
</div>
</li>
</li>
<li
style=
"width:180px;"
class=
"HD_OneLi"
>
<li
style=
"width:180px;"
class=
"HD_OneLi"
>
<div>
面积:{{item.Area}}
㎡
</div>
<div>
面积:{{item.Area}}
</div>
<div
style=
"margin-left:20px;"
>
窗型:{{item.WindoWCut}}
</div>
<div
style=
"margin-left:20px;"
>
窗型:{{item.WindoWCut}}
</div>
</li>
</li>
<li
class=
"HD_FreeWifi"
style=
"width:256px;"
>
<li
class=
"HD_FreeWifi"
style=
"width:256px;"
>
...
@@ -692,6 +728,7 @@
...
@@ -692,6 +728,7 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
moment
from
"moment"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -705,10 +742,19 @@ export default {
...
@@ -705,10 +742,19 @@ export default {
msg
:{
msg
:{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
5
,
pageSize
:
5
,
RoomName
:
''
,
// RoomName:'',
// HotelId:'',
// RoomType:0,
// RoomStatus:0
HotelId
:
''
,
HotelId
:
''
,
RoomType
:
0
,
RoomType
:
0
,
RoomStatus
:
0
CheckInTime
:
moment
().
format
(
"YYYY-MM-DD"
),
CheckOutTime
:
moment
().
add
(
1
,
'days'
).
format
(
'YYYY-MM-DD'
),
RoomNum
:
1
,
IsExtraBed
:
0
,
IsSmoke
:
0
,
Meals
:
0
,
BroadBand
:
0
},
},
roomType
:[],
roomType
:[],
mealList
:[],
mealList
:[],
...
@@ -719,15 +765,24 @@ export default {
...
@@ -719,15 +765,24 @@ export default {
HotelId
:
''
,
HotelId
:
''
,
beforeCheck
:
{
beforeCheck
:
{
disabledDate
:
time
=>
{
disabledDate
:
time
=>
{
if
(
this
.
msg
.
CheckOutTime
==
null
)
{
return
false
;
}
else
{
let
endTime
=
new
Date
(
this
.
msg
.
CheckOutTime
);
return
endTime
.
getTime
()
<
time
.
getTime
();
}
}
}
},
},
afterCheck
:
{
afterCheck
:
{
disabledDate
:
time
=>
{
disabledDate
:
time
=>
{
let
startTime
=
new
Date
(
this
.
msg
.
CheckInTime
);
return
startTime
.
getTime
()
>=
time
.
getTime
();
}
}
},
},
tempData
:{},
tempData
:{},
//餐食数组
//餐食数组
mealType
:[],
mealType
:[],
loading
:
false
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -754,7 +809,9 @@ export default {
...
@@ -754,7 +809,9 @@ export default {
},
},
//获取数据
//获取数据
getList
(){
getList
(){
this
.
apipost
(
"scm_get_GetSCMHotelRoomPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
true
;
this
.
apipost
(
"scm_get_GetB2BSCMHotelRoomPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
isShow
=
true
;
this
.
isShow
=
true
;
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
dataList
=
res
.
data
.
data
.
pageData
;
...
...
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