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
7abfe595
Commit
7abfe595
authored
May 23, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
酒店优化
parent
17d8f546
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
133 additions
and
119 deletions
+133
-119
roomReservations.vue
src/components/Hotel/roomReservations.vue
+12
-17
roomReservationsDetails.vue
src/components/Hotel/roomReservationsDetails.vue
+31
-13
TravelControlList.vue
...components/TravelManager/TravelList/TravelControlList.vue
+31
-31
TravelPrice.vue
...nents/newTravelmanager/TravelGroupControl/TravelPrice.vue
+59
-58
No files found.
src/components/Hotel/roomReservations.vue
View file @
7abfe595
...
...
@@ -2,16 +2,6 @@
<div>
<div
class=
"query-box"
style=
"border-bottom: none;"
>
<ul>
<!--
<li>
<span>
<em>
线路
</em>
<el-select
v-model=
"msg.LineId"
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getLinePlaceList()"
>
<el-option
label=
"不限"
:value=
'0'
></el-option>
<el-option
v-for=
"item in queryCommonData.LineList"
:label=
'item.LineName'
:value=
'item.LineID'
:key=
'item.LineID'
>
</el-option>
</el-select>
</span>
</li>
-->
<li>
<span>
<em>
{{
$t
(
'Operation.Op_Country'
)
}}
/
{{
$t
(
'system.query_dest'
)
}}
</em>
...
...
@@ -106,10 +96,10 @@
<th
width=
"120"
>
机位总数/(Y/E/F)
</th>
<th
width=
"120"
>
占床/不占床
</th>
<th
width=
"80"
>
实际用房数
</th>
<th>
操作
</th>
<th></th>
<th></th>
<th>
备注
</th>
<th>
操作
</th>
</tr>
<tr
v-if=
"list.length==0"
>
<td
colspan=
"10"
>
暂无数据
</td>
...
...
@@ -188,6 +178,11 @@
{{
item
.
CommonReport
.
HouseStatistics
.
RealityRoomNum
}}
</div>
</td>
<td>
<div
class=
"w80 link"
style=
"margin:auto;"
>
<p
@
click=
"goUrl('roomReservationsDetails',item,outItem,'订房详情')"
>
详情
</p>
</div>
</td>
<td
style=
"vertical-align: top;"
>
<div
class=
"w260"
>
<p
class=
"pDateStyle"
>
时间
</p>
...
...
@@ -207,7 +202,11 @@
<p
class=
"pDateStyle"
>
{{
childItem
.
CheckInDateStr
}}
</p>
<p
@
click=
"goUrlR('HotelManagement',childItem.HotelId,'酒店管理')"
class=
"pDateStyle phoverStype ownScrollbarStyle"
style=
"height: 50px!important; overflow:auto;"
>
<span
class=
"colorE95252"
>
{{
childItem
.
HotelOrderState
==
1
?
"[OK]"
:
"[暂定]"
}}
</span>
{{
childItem
.
NewHotelName
}}
<span
class=
"colorE95252"
>
<template
v-if=
"childItem.OPState==1"
>
[OP选房-OK]
</
template
>
<
template
v-else
>
{{
childItem
.
DMCState
==
1
?
"[地接-OK]"
:(
childItem
.
DMCState
==
0
?
"[未操作]"
:
"[暂定]"
)
}}
</
template
>
</span>
{{childItem.NewHotelName}}
</p>
<p
class=
"pDateStyle"
>
{{item.CommonReport.HouseStatistics.RealityRoomNum}}
</p>
<p
class=
"pDateStyle"
>
...
...
@@ -226,11 +225,7 @@
{{item.Remarks}}
</div>
</td>
<td>
<div
class=
"w80 link"
style=
"margin:auto;"
>
<p
@
click=
"goUrl('roomReservationsDetails',item,outItem,'订房详情')"
>
详情
</p>
</div>
</td>
</tr>
<tr>
<td
:colspan=
"item.colNum"
style=
"text-align: left!important;padding-left: 20px;"
>
...
...
src/components/Hotel/roomReservationsDetails.vue
View file @
7abfe595
...
...
@@ -115,7 +115,7 @@
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"5"
>
<div
class=
"w150"
>
<el-select
class=
'w120 sel'
v-model=
'subItem.NewHotelId'
filterable
:placeholder=
"$t('pub.pleaseSel')"
<el-select
class=
'w120 sel'
v-model=
'subItem.NewHotelId'
filterable
:placeholder=
"$t('pub.pleaseSel')"
:disabled=
"subItem.OPState==1"
@
visible-change=
'getHotelList(subItem)'
@
change=
'sendValue(subItem)'
>
<el-option
v-for=
'itemHotel in subItem.hotelList'
:label=
'itemHotel.Name'
:value=
'itemHotel.ID'
:key=
'itemHotel.ID'
>
...
...
@@ -181,6 +181,19 @@
<!-- 付款方式 -->
<td
v-if=
"childIndex==0"
:rowspan=
"5"
>
<table
class=
"hotelTable"
>
<tr>
<td
width=
"70"
style=
"text-align:right;"
>
订房状态:
</td>
<td>
<el-select
class=
'w135 sel'
v-model=
'subItem.DMCState'
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
label=
'请选择'
:value=
'0'
></el-option>
<el-option
label=
'确定'
:value=
'1'
></el-option>
<el-option
label=
'暂定'
:value=
'2'
></el-option>
</el-select>
</td>
</tr>
<tr>
<td
colspan=
"2"
style=
"height:5px;"
></td>
</tr>
<tr>
<td
width=
"70"
style=
"text-align:right;"
>
付款方式:
</td>
<td>
...
...
@@ -215,17 +228,22 @@
</td>
<!-- 操作 -->
<td
v-if=
"childIndex==0"
:rowspan=
"5"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
>
<el-button
icon=
"iconfont icon-baocun1"
@
click=
"SaveSingle(subItem)"
type=
"primary"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"新增"
placement=
"top-start"
>
<el-button
@
click=
'AddHotel(item,subIndex)'
icon=
"iconfont icon-tianjia"
type=
"primary"
></el-button>
</el-tooltip>
<el-tooltip
v-if=
"item.HotelOrderList.length>1"
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-shanchu"
@
click=
'DeleteHotel(item,subIndex)'
>
</el-button>
</el-tooltip>
<template
v-if=
"subItem.OPState!=1"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
>
<el-button
icon=
"iconfont icon-baocun1"
@
click=
"SaveSingle(subItem)"
type=
"primary"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"新增"
placement=
"top-start"
>
<el-button
@
click=
'AddHotel(item,subIndex)'
icon=
"iconfont icon-tianjia"
type=
"primary"
></el-button>
</el-tooltip>
<el-tooltip
v-if=
"item.HotelOrderList.length>1"
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-shanchu"
@
click=
'DeleteHotel(item,subIndex)'
>
</el-button>
</el-tooltip>
</
template
>
<
template
v-else
>
<span
class=
"Hotel_red"
>
OP选房确认
</span>
</
template
>
</td>
</tr>
</template>
...
...
@@ -297,7 +315,7 @@
if
(
subItem
.
OrderID
>
0
)
{
that
.
apipost
(
'dmcstatistics_post_DeleteHotelOrder'
,
{
ID
:
subItem
.
OrderID
,
TCID
:
subItem
.
TCID
TCID
:
subItem
.
TCID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
res
.
data
.
message
);
...
...
src/components/TravelManager/TravelList/TravelControlList.vue
View file @
7abfe595
...
...
@@ -485,8 +485,8 @@
:href=
"domainManager().ViittoFileUrl+item.WordPath"
>
{{
$t
(
'Operation.Op_downLoadword'
)
}}
</a>
</p>
<p
class=
"travelnowrap"
v-if=
"item.ClearOrderHour>0"
>
<span>
已设定清位
</span>
<span
class=
"TCL-greenType"
>
{{
item
.
ClearOrderHour
}}
小时
</span>
<span>
已设定清位
</span>
<span
class=
"TCL-greenType"
>
{{
item
.
ClearOrderHour
}}
小时
</span>
</p>
</div>
</div>
...
...
@@ -562,41 +562,41 @@
<table
width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"singeRowTable"
>
<tr>
<th
width=
"100"
>
日期
</th>
<th
style=
"border-right:1px solid #E5E5E5"
>
酒店情况
</th>
<th
style=
"border-right:1px solid #E5E5E5"
>
占房时间
</th>
<th
style=
"border-right:1px solid #E5E5E5;width:150px;"
>
酒店
</th>
<th
style=
"border-right:1px solid #E5E5E5;width:240px;"
>
酒店情况
</th>
<th
style=
"border-right:1px solid #E5E5E5;width:100px"
>
占房时间
</th>
</tr>
</table>
<div>
<table
width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"singeRowTable"
>
<tr
v-for=
"subItem in item.HotelOrderListReports"
>
<td
width=
"100"
>
<template
v-for=
"subItem in item.HotelOrderListReports"
>
<tr
v-for=
"(childItem,childIndex) in subItem.SubList"
>
<td
width=
"100"
v-if=
"childIndex==0"
:rowspan=
"subItem.SubList.length"
>
{{
subItem
.
UseDay
}}
</td>
<td
style=
"text-align:left;padding-left:20px;"
>
<template
v-if=
"subItem.SubList"
>
<div
v-if=
"subItem.SubList.length==1 && subItem.SubList[0].UseCount>0 "
>
{{
subItem
.
SubList
[
0
].
HotelName
}}
<a
style=
"color:green"
>
{{
subItem
.
SubList
[
0
].
Status
==
1
?
"【OK】"
:
"【暂定】"
}}
</a>
【
<a
style=
"color:green"
>
本团使用库存:
{{
subItem
.
SubList
[
0
].
UseCount
}}
{{
subItem
.
SubList
[
0
].
CostPrice
!=
0
?
"价格:"
+
subItem
.
SubList
[
0
].
CostPrice
:
""
}}
</a>
】
</div>
<template
v-else
v-for=
"childItem in subItem.SubList"
>
<div>
{{
childItem
.
HotelName
}}
{{
childItem
.
HotelName
!=
"温馨的家"
?
"【暂定】"
:
""
}}
</div>
<td
style=
"text-align:left;padding-left:3px;"
>
{{
childItem
.
HotelName
}}
</td>
<td
style=
"text-align:left;padding-left:3px;"
>
<a
style=
"color:green"
v-if=
"childItem.HotelName!='温馨的家'"
>
【
<template
v-if=
"childItem.OPState==1"
>
OP-OK
</
template
>
<
template
v-else-if=
"childItem.OPState==2&&childItem.DMCState==0"
>
OP-暂定
</
template
>
<
template
v-else
>
{{
childItem
.
DMCState
==
1
?
"地接-OK"
:(
childItem
.
DMCState
==
2
?
"地接-暂定"
:
"地接-未操作"
)
}}
</
template
>
</template>
】
</a>
<a
v-if=
"(childItem.OPState==1||(childItem.OPState==2 && childItem.DMCState==0))&& childItem.UseCount>0 "
style=
"color:green"
>
【使用: {{childItem.UseCount}} 间 {{childItem.CostPrice!=0?"价格:"+childItem.CostPrice:""}} 】
</a>
</td>
<td>
<
template
v-if=
"subItem.SubList"
>
<div
v-if=
"subItem.SubList.length==1 && subItem.SubList[0].UseCount>0 "
>
{{
subItem
.
SubList
[
0
].
CreateDateStr
}}
</div>
<template
v-else
v-for=
"childItem in subItem.SubList"
>
<div></div>
</
template
>
</template>
<
template
v-if=
"childItem.OPState==1||(childItem.OPState==2 && childItem.DMCState==0)"
>
{{
childItem
.
CreateDateStr
}}
</
template
>
</td>
</tr>
</t
abl
e>
</
div
>
</t
emplat
e>
</
table
>
<span
slot=
"reference"
class=
"price"
>
酒店信息
</span>
</el-popover>
</p>
...
...
@@ -1478,8 +1478,8 @@
name
:
'TeamBalancePayment'
,
query
:
{
id
:
id
,
OutBranchId
:
OutBranchId
,
IsHaveAuth
:
true
,
OutBranchId
:
OutBranchId
,
IsHaveAuth
:
true
,
blank
:
'y'
,
tab
:
'团队收支明细'
}
...
...
src/components/newTravelmanager/TravelGroupControl/TravelPrice.vue
View file @
7abfe595
...
...
@@ -583,7 +583,7 @@
<
template
slot=
"prepend"
>
同行清位时间
</
template
>
</el-input>
</el-form-item>
<el-form-item
>
<el-form-item>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.SaleClearOrderHour"
@
keyup
.
native=
"checkInteger(priceData,'SaleClearOrderHour')"
@
blur=
"checkInteger(priceData,'SaleClearOrderHour')"
>
...
...
@@ -805,62 +805,63 @@
<el-dialog
custom-class=
'Tp_hotelDialog'
title=
"酒店使用情况"
:visible
.
sync=
"outerVisible"
center
>
<table
class=
"TphotelTable"
border=
"0"
cellspacing=
'1'
v-if=
"priceData.TCID>0"
>
<tr>
<th>
日期
</th>
<th>
酒店
</th>
<th>
占房时间
</th>
<th>
更换酒店
</th>
<th>
操作
</th>
</tr>
<tr
v-if=
"priceData.PriceHotelList"
v-for=
"item in priceData.PriceHotelList"
>
<td
style=
"background-color:#E6E6E6;color:#333;"
width=
"120"
>
{{item.UseDay}}
</td>
<td>
<div
class=
"tp_divList"
v-for=
"(subItem,index) in item.SubList"
>
<div>
{{index+1}}.{{subItem.HotelName}}
<span
v-if=
"subItem.UseCount>0 && item.SubList.length==1"
>
<a
style=
"color:green"
>
{{subItem.Status==1?"【OK】":"【暂定】"}}
</a>
【
<span
style=
"color:green"
>
本团使用:{{subItem.UseCount}}
{{subItem.CostPrice!=0?"价格:"+subItem.CostPrice:""}}
</span>
】
</span>
【
<span
style=
"color:#E95252;"
>
剩余:{{subItem.RemainingInventory}}
</span>
】
<el-checkbox
v-if=
"item.SubList.length>1"
v-model=
"item.CheckList[index].CheckStatus"
@
change=
"changeHotelStatus(item,index),changeHotelList()"
></el-checkbox>
</div>
</div>
</td>
<td>
<div
class=
"tp_divList"
v-for=
"(subItem,index) in item.SubList"
>
<div>
<span
v-if=
"subItem.UseCount>0 && item.SubList.length==1"
>
<span
style=
"color:green;white-space:nowrap;"
>
{{subItem.CreateDateStr}}
</span>
</span>
</div>
</div>
</td>
<td>
<el-select
class=
"w180"
v-model=
"item.NewHotelId"
@
visible-change=
"getHotelList(item,$event)"
@
change=
"changeHotelList()"
filterable
>
<el-option
:key=
"0"
label=
"请选择"
:value=
"0"
></el-option>
<el-option
v-for=
"subItem in item.HotelList"
:key=
"subItem.ID"
:label=
"subItem.Name"
:value=
"subItem.ID"
>
<span
style=
"float: left"
>
{{subItem.Name}}
</span>
<span
style=
"float: right; color:red; font-size: 13px"
>
剩余:{{subItem.Inventory}} /
价格:{{subItem.CostPrice}}
</span>
</el-option>
</el-select>
</td>
<td>
<div
class=
"tp_divList"
v-for=
"(subItem,index) in item.SubList"
>
<div>
<span
v-if=
"subItem.UseCount>0 && item.SubList.length==1"
>
<span
style=
"color:red;white-space:nowrap;cursor:pointer;"
@
click=
"DeleteStock(item)"
>
删除
</span>
</span>
</div>
</div>
</td>
<th
width=
"100"
>
日期
</th>
<th
width=
"150"
>
酒店
</th>
<th
width=
"240"
>
酒店情况
</th>
<th
width=
"100"
>
占房时间
</th>
<th
width=
"100"
>
更换酒店
</th>
<th
width=
"60"
>
操作
</th>
</tr>
<
template
v-for=
"(subItem,subIndex) in priceData.PriceHotelList"
>
<tr
v-for=
"(childItem,childIndex) in subItem.SubList"
>
<td
style=
"background-color:#E6E6E6;color:#333;"
v-if=
"childIndex==0"
:rowspan=
"subItem.SubList.length"
>
{{
subItem
.
UseDay
}}
</td>
<td>
{{
childItem
.
HotelName
}}
</td>
<td>
<span
v-if=
"childItem.UseCount>0 && subItem.SubList.length==1"
>
<a
style=
"color:green"
v-if=
"childItem.HotelName!='温馨的家'"
>
【
<template
v-if=
"childItem.OPState==1"
>
OP-OK
</
template
>
<
template
v-else-if=
"childItem.OPState==2&&childItem.DMCState==0"
>
OP-暂定
</
template
>
<
template
v-else
>
{{
childItem
.
DMCState
==
1
?
"地接-OK"
:(
childItem
.
DMCState
==
2
?
"地接-暂定"
:
"地接-未操作"
)
}}
</
template
>
】
</a>
【
<span
style=
"color:green"
>
本团使用:{{childItem.UseCount}}
{{childItem.CostPrice!=0?"价格:"+childItem.CostPrice:""}}
</span>
】
</span>
<span
style=
"color:#E95252;"
v-if=
"childItem.HotelName!='温馨的家'"
>
【剩余:{{childItem.RemainingInventory}}】
</span>
</td>
<td>
<
template
v-if=
"childItem.OPState==1||(childItem.OPState==2 && childItem.DMCState==0)"
>
{{
childItem
.
CreateDateStr
}}
</
template
>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"subItem.SubList.length"
>
<el-select
class=
"w180"
v-model=
"subItem.NewHotelId"
@
visible-change=
"getHotelList(subItem,$event)"
@
change=
"changeHotelList()"
filterable
>
<el-option
:key=
"0"
label=
"请选择"
:value=
"0"
></el-option>
<el-option
v-for=
"hotelItem in subItem.HotelList"
:key=
"hotelItem.ID"
:label=
"hotelItem.Name"
:value=
"hotelItem.ID"
>
<span
style=
"float: left"
>
{{hotelItem.Name}}
</span>
<span
style=
"float: right; color:red; font-size: 13px"
>
剩余:{{hotelItem.Inventory}} /
价格:{{hotelItem.CostPrice}}
</span>
</el-option>
</el-select>
</td>
<td>
<span
v-if=
"childItem.UseCount>0 && subItem.SubList.length==1"
>
<span
style=
"color:red;white-space:nowrap;cursor:pointer;"
@
click=
"DeleteStock(subItem)"
>
删除
</span>
</span>
</td>
</tr>
</template>
</table>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"saveHoteluseDetail()"
...
...
@@ -1103,7 +1104,7 @@
//选中的酒店数组
ChooseHotelArray
:
[],
//销售清位时间
SaleClearOrderHour
:
0
,
SaleClearOrderHour
:
0
,
};
}
this
.
returnPriceList
.
push
(
objItem
);
...
...
@@ -1646,7 +1647,7 @@
that
.
apipost
(
"hoteluse_post_DeleteHotelUse"
,
delMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
"操作成功!"
);
item
.
SubList
[
0
].
UseCount
=
0
;
item
.
SubList
[
0
].
UseCount
=
0
;
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
...
...
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