Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
fefac419
Commit
fefac419
authored
Apr 10, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
酒店统计修改
parent
ccca36e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
92 additions
and
18 deletions
+92
-18
HotelQueryList.vue
src/components/Hotel/HotelQueryList.vue
+90
-16
HotelSalesBoard.vue
src/components/Hotel/HotelSalesBoard.vue
+2
-2
No files found.
src/components/Hotel/HotelQueryList.vue
View file @
fefac419
...
@@ -2,6 +2,29 @@
...
@@ -2,6 +2,29 @@
<div>
<div>
<div
class=
"query-box"
style=
"border-bottom: none;"
>
<div
class=
"query-box"
style=
"border-bottom: none;"
>
<ul>
<ul>
<li>
<span>
<em>
{{
$t
(
'system.quety_area'
)
}}
</em>
<el-select
v-model=
"msg.Province"
filterable
@
change=
"getProvinceList(msg.Province,2)"
:placeholder=
"$t('hotel.hotel_province')"
>
<el-option
:key=
"0"
:value=
"0"
label=
"请选择"
></el-option>
<el-option
v-for=
"item in provinceList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
</el-select>
<el-select
v-model=
"msg.City"
filterable
:placeholder=
"$t('hotel.hotel_city')"
>
<el-option
:key=
"0"
:value=
"0"
label=
"请选择"
></el-option>
<el-option
v-for=
"item in cityList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
</el-select>
</span>
</li>
<li>
<span><em>
{{
$t
(
'admin.admin_company'
)
}}
</em>
<el-select
filterable
v-model=
'msg.OutBranchId'
:placeholder=
"$t('pub.unlimitedSel')"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'-1'
></el-option>
<el-option
v-for=
'item in companyList'
:label=
'item.BName'
:value=
'item.Id'
:key=
"item.Id"
>
</el-option>
</el-select>
</span>
</li>
<li>
<li>
<span>
<span>
<em>
酒店
</em>
<em>
酒店
</em>
...
@@ -18,7 +41,8 @@
...
@@ -18,7 +41,8 @@
</span>
</span>
</li>
</li>
<li>
<li>
<input
type=
"button"
class=
"normalBtn"
value=
"温馨提示"
@
click=
"showNotice=true,resetPageIndex(),GetHotelTipList()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"温馨提示"
@
click=
"showNotice=true,resetPageIndex(),GetHotelTipList()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"查询"
@
click=
"getList()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"查询"
@
click=
"getList()"
/>
</li>
</li>
</ul>
</ul>
...
@@ -37,16 +61,20 @@
...
@@ -37,16 +61,20 @@
<tr>
<tr>
<th
width=
"300"
>
酒店名称
</th>
<th
width=
"300"
>
酒店名称
</th>
<th
width=
"80"
></th>
<th
width=
"80"
></th>
<th
v-for=
"item in dataList[0].subList"
>
<template
v-if=
"dataList.length>0"
>
{{
getDateList
(
item
.
DateStr
)
}}
<th
v-for=
"item in dataList[0].subList"
>
</th>
{{
getDateList
(
item
.
DateStr
)
}}
</th>
</
template
>
</tr>
</tr>
<tr>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<th
v-for=
"item in dataList[0].subList"
>
<
template
v-if=
"dataList.length>0"
>
{{
getWeek
(
item
.
DateStr
)
}}
<th
v-for=
"item in dataList[0].subList"
>
</th>
{{
getWeek
(
item
.
DateStr
)
}}
</th>
</
template
>
</tr>
</tr>
<tr
v-for=
"item in dataList"
>
<tr
v-for=
"item in dataList"
>
<td>
<td>
...
@@ -135,13 +163,7 @@
...
@@ -135,13 +163,7 @@
</el-pagination>
</el-pagination>
</div>
</div>
</div>
</div>
<el-dialog
custom-class=
"w800"
title=
"信息"
:visible
.
sync=
"showHQinfo"
center
>
<el-dialog
custom-class=
"w800"
title=
"信息"
:visible
.
sync=
"showHQinfo"
center
>
<el-form>
<el-form>
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"HouseTypeList Hq_addTable"
style=
"width:100%;"
>
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"HouseTypeList Hq_addTable"
style=
"width:100%;"
>
<tr>
<tr>
...
@@ -167,7 +189,7 @@
...
@@ -167,7 +189,7 @@
</el-pagination>
</el-pagination>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"showHQinfo = false"
>
{{$t('pub.cancelBtn')}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"showHQinfo = false"
>
关闭
</button>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
...
@@ -180,7 +202,19 @@
...
@@ -180,7 +202,19 @@
HotelId
:
0
,
HotelId
:
0
,
StartDate
:
new
Date
().
Format
(
"yyyy-MM-dd"
),
StartDate
:
new
Date
().
Format
(
"yyyy-MM-dd"
),
EndDate
:
this
.
setEdate
(),
EndDate
:
this
.
setEdate
(),
//只查询日本
Country
:
"651"
,
Province
:
0
,
City
:
0
,
OutBranchId
:
-
1
,
},
},
//分公司列表
companyList
:
[],
defaultSelectValue
:
0
,
//国家 省市 区
provinceList
:
[],
cityList
:
[],
district
:
[],
queryMsg
:
{
queryMsg
:
{
QStartDate
:
''
,
QStartDate
:
''
,
QEndDate
:
''
,
QEndDate
:
''
,
...
@@ -195,7 +229,7 @@
...
@@ -195,7 +229,7 @@
TipContent
:
''
TipContent
:
''
},
},
//默认显示弹窗信息
//默认显示弹窗信息
showHQinfo
:
true
,
showHQinfo
:
true
,
//酒店温馨提示列表
//酒店温馨提示列表
HotelTipList
:
[],
HotelTipList
:
[],
HotelList
:
[],
HotelList
:
[],
...
@@ -385,8 +419,47 @@
...
@@ -385,8 +419,47 @@
err
=>
{}
err
=>
{}
);
);
},
},
getProvinceList
(
ID
,
type
)
{
//根据省份获取城市
let
msg
=
{
Id
:
ID
};
if
(
type
==
1
)
{
this
.
msg
.
Province
=
0
;
this
.
msg
.
City
=
0
;
this
.
provinceList
=
[];
this
.
cityList
=
[];
}
else
if
(
type
==
2
)
{
this
.
msg
.
City
=
0
;
this
.
cityList
=
[];
}
this
.
apipost
(
"dict_post_Destination_GetChildList"
,
msg
,
res
=>
{
if
(
type
==
1
)
{
this
.
provinceList
=
res
.
data
.
data
;
}
else
if
(
type
==
2
)
{
this
.
cityList
=
res
.
data
.
data
;
}
},
err
=>
{}
);
},
getBranchList
()
{
this
.
apipost
(
'admin_get_BranchGetList'
,
{
RB_Group_Id
:
'2'
,
Status
:
0
,
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
companyList
=
res
.
data
.
data
;
}
},
err
=>
{})
},
},
},
mounted
()
{
mounted
()
{
this
.
getBranchList
();
this
.
getProvinceList
(
651
,
1
);
this
.
GetHotelList
();
this
.
GetHotelList
();
this
.
getList
();
this
.
getList
();
this
.
GetHotelTipList
();
this
.
GetHotelTipList
();
...
@@ -487,4 +560,5 @@
...
@@ -487,4 +560,5 @@
height
:
350px
;
height
:
350px
;
padding-top
:
35px
;
padding-top
:
35px
;
}
}
</
style
>
</
style
>
src/components/Hotel/HotelSalesBoard.vue
View file @
fefac419
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
<span><em>
{{
$t
(
'admin.admin_company'
)
}}
</em>
<span><em>
{{
$t
(
'admin.admin_company'
)
}}
</em>
<el-select
filterable
v-model=
'msg.OutBranchId'
<el-select
filterable
v-model=
'msg.OutBranchId'
:placeholder=
"$t('pub.unlimitedSel')"
>
:placeholder=
"$t('pub.unlimitedSel')"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
value=
'-1'
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
:
value=
'-1'
></el-option>
<el-option
v-for=
'item in companyList'
:label=
'item.BName'
:value=
'item.Id'
:key=
"item.Id"
>
<el-option
v-for=
'item in companyList'
:label=
'item.BName'
:value=
'item.Id'
:key=
"item.Id"
>
</el-option>
</el-option>
</el-select>
</el-select>
...
@@ -313,7 +313,7 @@
...
@@ -313,7 +313,7 @@
Province
:
0
,
Province
:
0
,
City
:
0
,
City
:
0
,
loading
:
false
,
loading
:
false
,
OutBranchId
:
0
,
OutBranchId
:
-
1
,
},
},
//分公司列表
//分公司列表
companyList
:
[],
companyList
:
[],
...
...
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