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
78f66021
Commit
78f66021
authored
May 20, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
酒店详情页面修改
parent
9c8b21cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
241 additions
and
298 deletions
+241
-298
roomReservationsDetails.vue
src/components/Hotel/roomReservationsDetails.vue
+241
-298
No files found.
src/components/Hotel/roomReservationsDetails.vue
View file @
78f66021
<
style
>
.roomReservationsDetailsTalbe
.el-button
{
padding
:
5px
;
display
:
block
;
margin
:
5px
auto
;
font-size
:
12px
;
}
</
style
>
<
template
>
<
template
>
<div>
<div>
<div
class=
"query-box"
style=
"border-bottom: none;"
>
<div
class=
"query-box"
style=
"border-bottom: none;"
>
...
@@ -7,239 +17,221 @@
...
@@ -7,239 +17,221 @@
</li>
</li>
</ul>
</ul>
</div>
</div>
<div
style=
"width: 100%; overflow-x: auto;padding-bottom: 10px; "
:style=
"
{height: boxHeight + 'px'}" class="ownScrollbarStyle" ref="ownScrollbarStyle">
<div
style=
"width: 100%; overflow-x: auto;padding-bottom: 10px; "
:style=
"
{height: boxHeight + 'px'}"
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"roomReservationsDetailsTalbe"
>
class="ownScrollbarStyle" ref="ownScrollbarStyle">
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"roomReservationsDetailsTalbe"
v-loading=
"loading"
>
<tr>
<tr>
<th
class=
"fz14"
colspan=
"8"
>
团队信息
</th>
<th
class=
"fz14"
colspan=
"8"
>
团队信息
</th>
<th
class=
"fz14"
colspan=
"1
5
"
>
地接操作信息
</th>
<th
class=
"fz14"
colspan=
"1
3
"
>
地接操作信息
</th>
</tr>
</tr>
<tr>
<tr>
<th
width=
"1
0
0"
>
入住时间
</th>
<th
width=
"1
2
0"
>
入住时间
</th>
<th
width=
"
20
0"
>
酒店名称
</th>
<th
width=
"
18
0"
>
酒店名称
</th>
<th
width=
"120"
>
机位总数
/
(Y/E/F)
</th>
<th
width=
"120"
>
机位总数
<br
/>
(Y/E/F)
</th>
<th
width=
"
120"
>
占床/
不占床
</th>
<th
width=
"
80"
>
占床/
<br
/>
不占床
</th>
<th
width=
"80"
>
实际用房数
</th>
<th
width=
"80"
>
实际
<br
/>
用房数
</th>
<th
width=
"1
5
0"
>
房间类型
</th>
<th
width=
"1
0
0"
>
房间类型
</th>
<th
width=
"
8
0"
>
房间数
</th>
<th
width=
"
7
0"
>
房间数
</th>
<th
width=
"
80"
>
房间
人数
</th>
<th
width=
"
70"
>
房间
<br
/>
人数
</th>
<th
width=
"
20
0"
>
修改酒店
</th>
<th
width=
"
11
0"
>
修改酒店
</th>
<th
width=
"
150"
>
房间
预定数
</th>
<th
width=
"
80"
>
房间
<br
/>
预定数
</th>
<th
width=
"
15
0"
>
预定人数
</th>
<th
width=
"
8
0"
>
预定人数
</th>
<th
width=
"
120"
>
尚差
房间数
</th>
<th
width=
"
80"
>
尚差
<br
/>
房间数
</th>
<th
width=
"80"
>
单价/每人
</th>
<th
width=
"80"
>
单价/每人
</th>
<th
width=
"80"
>
免减人数
</th>
<th
width=
"80"
>
免减人数
</th>
<th
width=
"80"
>
金额小计
</th>
<th
width=
"80"
>
金额小计
</th>
<th
width=
"80"
>
返佣
</th>
<th
width=
"80"
>
返佣
</th>
<th
width=
"80"
>
金额总计
</th>
<th
width=
"100"
>
金额总计
</th>
<th
width=
"80"
>
付款方式
</th>
<th
width=
"250"
>
付款方式
&
订团号
&
备注
</th>
<th
width=
"80"
>
联系电话
</th>
<th
width=
"80"
>
地址
</th>
<th
width=
"80"
>
订团号
</th>
<th
width=
"80"
>
备注
</th>
<th
width=
"80"
>
操作
</th>
<th
width=
"80"
>
操作
</th>
</tr>
</tr>
<template
v-for=
"(item,index) in list"
>
<template
v-for=
"(item,index) in list"
>
<tr
v-for=
"(subItem,subIndex) in item.HotelOrderList"
v-loading=
"loading"
>
<template
v-for=
"(subItem,subIndex) in item.HotelOrderList"
>
<!-- 入住时间 -->
<tr
v-for=
"(childItem,childIndex) in subItem.OrderDetailsList"
>
<td
:rowspan=
"item.HotelOrderList.length"
v-if=
"subIndex==0"
>
<td
v-if=
"childIndex==0&&subIndex==0"
:rowspan=
"5*item.HotelOrderList.length"
>
<div
class=
"w100"
>
{{
item
.
UseTimeStr
}}
</div>
{{
item
.
UseTimeStr
}}
</td>
</td>
<!-- 酒店名称 -->
<!-- 酒店名称 -->
<td>
<td
v-if=
"childIndex==0"
:rowspan=
"5"
>
<div
class=
"w200 padding10"
>
<table
class=
"hotelTable"
>
<p
class=
"link"
style=
"word-break: normal;"
:class=
"
{'Hotel_red':subItem.HotelChangeState==3}"
<tr>
@click="goUrlR('HotelManagement',subItem.HotelId,'酒店管理')">
{{
subItem
.
HotelName
}}
</p>
<td
colspan=
"2"
>
</div>
<p
class=
"link"
style=
"word-break: normal;text-align:left;"
</td>
:class=
"
{'Hotel_red':subItem.HotelChangeState==3}"
<!-- 机位总数/(Y/E/F) -->
@click="goUrlR('HotelManagement',subItem.HotelId,'酒店管理')">
{{
subItem
.
HotelName
}}
</p>
<td>
</td>
<div
class=
"w120"
>
</tr>
<tr>
<td
colspan=
"2"
style=
"height:5px;"
></td>
</tr>
<tr>
<td
width=
"40"
>
电话:
</td>
<td
style=
"text-align:left"
>
{{
subItem
.
Tel
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
style=
"height:5px;"
></td>
</tr>
<tr>
<td
width=
"40"
>
地址:
</td>
<td
style=
"text-align:left"
>
{{
subItem
.
Address
}}
</td>
</tr>
</table>
</td>
<!-- 机位总数/(Y/E/F) -->
<td
v-if=
"childIndex==0"
:rowspan=
"5"
>
<p
class=
"link"
@
click=
"goUrlT('RegistrationList',item.TCID,'报名清单')"
>
<p
class=
"link"
@
click=
"goUrlT('RegistrationList',item.TCID,'报名清单')"
>
{{
flightTotal
}}
/
{{
subItem
.
HouseStatistics
.
RealityYSeatNum
}}
/
{{
subItem
.
HouseStatistics
.
RealityESeatNum
}}
/
{{
subItem
.
HouseStatistics
.
RealityFSeatNum
}}
{{
flightTotal
}}
/
{{
subItem
.
HouseStatistics
.
RealityYSeatNum
}}
/
{{
subItem
.
HouseStatistics
.
RealityESeatNum
}}
/
{{
subItem
.
HouseStatistics
.
RealityFSeatNum
}}
</p>
</p>
</div>
</td>
</td>
<!-- 占床/不占床 -->
<!-- 占床/不占床 -->
<td
v-if=
"childIndex==0"
:rowspan=
"5"
>
<td>
<div
class=
"w120"
>
<p
class=
"link"
@
click=
"goUrlT('passengerHouse',item.TCIDS,'房间分配')"
>
<p
class=
"link"
@
click=
"goUrlT('passengerHouse',item.TCIDS,'房间分配')"
>
{{
subItem
.
HouseStatistics
.
NeedBed
}}
/
{{
subItem
.
HouseStatistics
.
NoNeedBed
}}
</p>
{{
subItem
.
HouseStatistics
.
NeedBed
}}
/
{{
subItem
.
HouseStatistics
.
NoNeedBed
}}
</p>
</div>
</td>
</td>
<!-- 实际用房数 -->
<!-- 实际用房数 -->
<td
v-if=
"childIndex==0"
:rowspan=
"5"
>
<td>
{{
subItem
.
HouseStatistics
.
RealityRoomNum
}}
<div
class=
"w80"
>
{{
subItem
.
HouseStatistics
.
RealityRoomNum
}}
</div>
</td>
</td>
<!-- 房间类型 -->
<!-- 房间类型 -->
<td>
<td>
{{
subItem
.
HouseStatistics
.
HouseTypeList
[
childIndex
].
HouseTypeName
}}
<div
class=
"w150"
>
</td>
<p
class=
"pHouseStyle"
v-for=
"o in subItem.HouseStatistics.HouseTypeList"
>
<!-- 房间数 -->
{{
o
.
HouseTypeName
}}
<td>
</p>
{{
subItem
.
HouseStatistics
.
HouseTypeList
[
childIndex
].
HouseTypeCount
}}
</div>
</td>
</td>
<!-- 房间人数 -->
<!-- 房间数 -->
<td>
<td>
{{
subItem
.
HouseStatistics
.
HouseTypeList
[
childIndex
].
HouseGuestNum
}}
<div
class=
"w80"
>
</td>
<p
class=
"pHouseStyle"
v-for=
"o in subItem.HouseStatistics.HouseTypeList"
>
<td
v-if=
"childIndex==0"
:rowspan=
"5"
>
{{
o
.
HouseTypeCount
}}
<div
class=
"w150"
>
</p>
<el-select
class=
'w120 sel'
v-model=
'subItem.NewHotelId'
filterable
:placeholder=
"$t('pub.pleaseSel')"
</div>
@
visible-change=
'getHotelList(subItem)'
@
change=
'sendValue(subItem)'
>
</td>
<el-option
v-for=
'itemHotel in subItem.hotelList'
:label=
'itemHotel.Name'
:value=
'itemHotel.ID'
<!-- 房间人数 -->
:key=
'itemHotel.ID'
>
<td>
<span
style=
"float: left"
>
{{
itemHotel
.
Name
}}
</span>
<div
class=
"w80"
>
<span
style=
"float: right; color:red; font-size: 13px"
>
{{
itemHotel
.
Inventory
}}
</span>
<p
class=
"pHouseStyle"
v-for=
"o in subItem.HouseStatistics.HouseTypeList"
>
</el-option>
{{
o
.
HouseGuestNum
}}
</el-select>
</p>
<p
style=
"padding-top: 5px;"
>
</div>
<a
v-if=
"subItem.ContractUrl"
target=
"_blank"
:href=
"subItem.ContractUrl"
>
手配书
</a>
</td>
</p>
<!-- 修改酒店 -->
<el-upload
:http-request=
"uploadFileBtnS"
:multiple=
"false"
:show-file-list=
"false"
action=
''
>
<td>
<el-button
size=
"small"
type=
"danger"
@
click=
'getItem(index, subIndex)'
>
<div
class=
"w150"
>
{{
!
subItem
.
ContractUrl
?
'上传手配书'
:
'重新上传手配书'
}}
</el-button>
<el-select
class=
'w120 sel'
v-model=
'subItem.NewHotelId'
filterable
:placeholder=
"$t('pub.pleaseSel')"
</el-upload>
@
visible-change=
'getHotelList(subItem)'
@
change=
'sendValue(subItem)'
>
</div>
<el-option
v-for=
'itemHotel in subItem.hotelList'
:label=
'itemHotel.Name'
:value=
'itemHotel.ID'
</td>
:key=
'itemHotel.ID'
>
<!-- 房间预定数 -->
<span
style=
"float: left"
>
{{
itemHotel
.
Name
}}
</span>
<td>
<span
style=
"float: right; color:red; font-size: 13px"
>
{{
itemHotel
.
Inventory
}}
</span>
<el-input
class=
'w40 tcenter'
maxlength=
"2"
@
keyup
.
native=
"checkPrice(childItem,'HouseTypeCount')"
</el-option>
v-model=
'childItem.HouseTypeCount'
></el-input>
</el-select>
<p
style=
"padding-top: 5px;"
>
</td>
<a
v-if=
"subItem.ContractUrl"
target=
"_blank"
:href=
"subItem.ContractUrl"
>
手配书
</a>
<!-- 预定人数 -->
</p>
<td>
<el-upload
:http-request=
"uploadFileBtnS"
:multiple=
"false"
:show-file-list=
"false"
action=
''
>
<el-input
class=
'w40 tcenter'
maxlength=
"2"
@
keyup
.
native=
"checkInteger(childItem,'BookNum')"
<el-button
size=
"small"
type=
"danger"
@
click=
'getItem(index, subIndex)'
>
{{
!
subItem
.
ContractUrl
?
'上传手配书'
:
'重新上传手配书'
}}
</el-button>
@
input=
"calculationPrice(subItem)"
v-model=
'childItem.BookNum'
></el-input>
</el-upload>
</td>
</div>
<!-- 尚差房间数 -->
</td>
<td>
<!-- 房间预定数 -->
<td>
<div
class=
"w80"
>
<p
class=
"pHouseStyle"
v-for=
"o in subItem.OrderDetailsList"
>
<el-input
class=
'w50 tcenter'
@
keyup
.
native=
"checkPrice(o,'HouseTypeCount')"
v-model=
'o.HouseTypeCount'
></el-input>
</p>
</div>
</td>
<!-- 预定人数 -->
<td>
<div
class=
"w80"
>
<p
class=
"pHouseStyle"
v-for=
"o in subItem.OrderDetailsList"
>
<el-input
class=
'w50 tcenter'
@
keyup
.
native=
"checkInteger(o,'BookNum')"
@
input=
"calculationPrice(subItem)"
v-model=
'o.BookNum'
></el-input>
</p>
</div>
</td>
<!-- 尚差房间数 -->
<td>
<div
class=
"w80"
>
<p
class=
"pHouseStyle"
<p
class=
"pHouseStyle"
:class=
"
{colorRed:o.HouseTypeCount-subItem.HouseStatistics.HouseTypeList[index].HouseTypeCount
<0
}"
:class=
"
{colorRed:childItem.HouseTypeCount-subItem.HouseStatistics.HouseTypeList[childIndex].HouseTypeCount
<0
}"
>
v-for=
"(o,index) in subItem.OrderDetailsList"
>
{{
childItem
.
HouseTypeCount
-
subItem
.
HouseStatistics
.
HouseTypeList
[
childIndex
].
HouseTypeCount
}}
{{
o
.
HouseTypeCount
-
subItem
.
HouseStatistics
.
HouseTypeList
[
index
].
HouseTypeCount
}}
</p>
</p>
</div>
</td>
</td>
<!-- 单价/每人 -->
<!-- 单价/每人 -->
<td>
<td>
<el-input
@
keyup
.
native=
"checkInteger(childItem,'UnitPrice')"
class=
'w60 tcenter'
<div
class=
"w120"
>
@
input=
"calculationPrice(subItem)"
v-model=
'childItem.UnitPrice'
>
<p
class=
"pHouseStyle"
v-for=
"(o,index) in subItem.OrderDetailsList"
@
input=
"calculationPrice(subItem)"
>
</el-input>
<el-input
@
keyup
.
native=
"checkInteger(o,'UnitPrice')"
class=
'w80 tcenter'
v-model=
'o.UnitPrice'
>
</td>
</el-input>
<!-- 免减人数 -->
<td>
<el-input
class=
'w40'
maxlength=
"2"
@
keyup
.
native=
"checkInteger(childItem,'HotelDiscount')"
v-model=
'childItem.HotelDiscount'
@
input=
"calculationPrice(subItem)"
>
</el-input>
</td>
<!-- 金额小计 -->
<td
style=
"white-space:nowrap;"
>
{{
childItem
.
UnitPrice
*
(
childItem
.
BookNum
-
childItem
.
HotelDiscount
)
}}
</td>
<!--返佣-->
<td>
<p
class=
"pHouseStyle link"
@
input=
"calculationPrice(subItem)"
>
<span
class=
"spanlink"
v-if=
'childItem.IsRebateRatio==0'
@
click=
"goUrl('HotelInfo',childItem,'酒店管理')"
>
设置
</span>
<span
v-if=
'childItem.IsRebateRatio!=0'
>
{{
childItem
.
RebateRatio
}}
</span>
</p>
</p>
</div>
</td>
</td>
<!-- 金额总计 -->
<!-- 免减人数 -->
<td
v-if=
"childIndex==0"
:rowspan=
"5"
style=
"white-space:nowrap;"
>
<td>
<div
class=
"w80"
>
<p
class=
"pHouseStyle"
v-for=
"(o,index) in subItem.OrderDetailsList"
@
input=
"calculationPrice(subItem)"
>
<el-input
class=
'w50'
@
keyup
.
native=
"checkInteger(o,'HotelDiscount')"
v-model=
'o.HotelDiscount'
>
</el-input>
</p>
</div>
</td>
<!-- 金额小计 -->
<td>
<div
class=
"w80"
>
<p
class=
"pHouseStyle"
v-for=
"(o,index) in subItem.OrderDetailsList"
>
{{
o
.
UnitPrice
*
(
o
.
BookNum
-
o
.
HotelDiscount
)
}}
</p>
</div>
</td>
<!--返佣-->
<td>
<div
class=
"w80"
>
<p
class=
"pHouseStyle link"
v-for=
"(o,index) in subItem.OrderDetailsList"
@
input=
"calculationPrice(subItem)"
>
<span
class=
"spanlink"
v-if=
'o.IsRebateRatio==0'
@
click=
"goUrl('HotelInfo',o,'酒店管理')"
>
设置
</span>
<span
v-if=
'o.IsRebateRatio!=0'
>
{{
o
.
RebateRatio
}}
</span>
</p>
</div>
</td>
<!-- 金额总计 -->
<td>
<div
class=
"w120"
>
{{
subItem
.
TotalPrice
}}
{{
subItem
.
TotalPrice
}}
</
div
>
</
td
>
</td
>
<!-- 付款方式 --
>
<!-- 付款方式 --
>
<td
v-if=
"childIndex==0"
:rowspan=
"5"
>
<td
>
<table
class=
"hotelTable"
>
<div
class=
"w120"
>
<tr
>
<el-select
class=
'w100 sel'
v-model=
'subItem.PayStyle'
:placeholder=
"$t('pub.pleaseSel')"
>
<td
width=
"70"
style=
"text-align:right;"
>
付款方式:
</td
>
<el-option
label=
'请选择'
:value=
'0'
></el-option
>
<td
>
<el-option
label=
'现付'
:value=
'1'
></el-option
>
<el-select
class=
'w135 sel'
v-model=
'subItem.PayStyle'
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
label=
'签单'
:value=
'2
'
></el-option>
<el-option
label=
'请选择'
:value=
'0
'
></el-option>
<el-option
label=
'实物抵扣'
:value=
'5
'
></el-option>
<el-option
label=
'现付'
:value=
'1
'
></el-option>
<el-option
label=
'预付'
:value=
'4
'
></el-option>
<el-option
label=
'签单'
:value=
'2
'
></el-option>
</el-select
>
<el-option
label=
'实物抵扣'
:value=
'5'
></el-option
>
</div
>
<el-option
label=
'预付'
:value=
'4'
></el-option
>
</td
>
</el-select
>
<!-- 联系电话 --
>
</td
>
<td
>
</tr
>
<div
class=
"w120"
>
{{
subItem
.
Tel
}}
</div
>
<tr
>
</td>
<td
colspan=
"2"
style=
"height:5px;"
>
</td>
<!-- 地址 --
>
</tr
>
<td
>
<tr
>
<div
class=
"w200 padding10"
>
{{
subItem
.
Address
}}
</div
>
<td
width=
"70"
style=
"text-align:right;"
>
订团号:
</td
>
</
td>
<
td>
<!-- 备注 --
>
<el-input
type=
'textarea'
class=
'w135'
v-model=
'subItem.Remarks'
></el-input
>
<
td>
</
td>
<div
class=
"w150"
>
</tr
>
<el-input
class=
'w120'
v-model=
'subItem.ReserveNo'
></el-input
>
<tr
>
</div
>
<td
colspan=
"2"
style=
"height:5px;"
></td
>
</td
>
</tr
>
<!-- 订团号 --
>
<tr
>
<
td>
<td
width=
"70"
style=
"text-align:right;"
>
备注:
</
td>
<div
class=
"w150"
>
<td
>
<el-input
type=
'textarea'
class=
'w120'
v-model=
'subItem.Remarks
'
></el-input>
<el-input
class=
'w135'
v-model=
'subItem.ReserveNo
'
></el-input>
</div
>
</td
>
</td
>
</tr
>
<!-- 操作 --
>
</table
>
<
td>
</
td>
<
div
class=
"w200"
>
<
!-- 操作 --
>
<el-button-group
>
<td
v-if=
"childIndex==0"
:rowspan=
"5"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
>
<el-button
icon=
"iconfont icon-shoufukuan
"
@
click=
"SaveSingle(subItem)"
type=
"primary"
></el-button>
<el-button
icon=
"iconfont icon-baocun1
"
@
click=
"SaveSingle(subItem)"
type=
"primary"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"添加
"
placement=
"top-start"
>
<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-button
@
click=
'AddHotel(item,subIndex)'
icon=
"iconfont icon-tianjia"
type=
"primary"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
v-if=
"item.HotelOrderList.length>1"
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-tooltip
v-if=
"item.HotelOrderList.length>1"
class=
"item"
effect=
"dark"
content=
"删除"
<el-button
type=
"primary"
icon=
"iconfont icon-shanchu"
@
click=
'DeleteHotel(item,subIndex)'
>
placement=
"top-start"
>
</el-button
>
<el-button
type=
"primary"
icon=
"iconfont icon-shanchu"
@
click=
'DeleteHotel(item,subIndex)'
>
</el-
tooltip
>
</el-
button
>
</el-
button-grou
p>
</el-
toolti
p>
</
div
>
</
td
>
</t
d
>
</t
r
>
</t
r
>
</
t
emplate
>
</template>
</template>
</table>
</table>
</div>
</div>
<div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -270,18 +262,19 @@
...
@@ -270,18 +262,19 @@
}
}
},
},
methods
:
{
methods
:
{
getItem
(
index
,
subIndex
)
{
getItem
(
index
,
subIndex
)
{
this
.
checkedIndex
=
index
this
.
checkedIndex
=
index
this
.
checkedsubIndex
=
subIndex
this
.
checkedsubIndex
=
subIndex
},
},
uploadFileBtnS
(
file
)
{
//手配书上传
uploadFileBtnS
(
file
)
{
//手配书上传
let
that
=
this
let
that
=
this
let
newArr
=
[]
let
newArr
=
[]
newArr
.
push
(
file
.
file
)
newArr
.
push
(
file
.
file
)
let
path
=
'/Upload/Temporary/'
let
path
=
'/Upload/Temporary/'
this
.
$message
.
info
(
'上传中...'
)
this
.
$message
.
info
(
'上传中...'
)
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
list
[
this
.
checkedIndex
].
HotelOrderList
[
this
.
checkedsubIndex
].
ContractUrl
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
this
.
list
[
this
.
checkedIndex
].
HotelOrderList
[
this
.
checkedsubIndex
].
ContractUrl
=
this
.
domainManager
()
.
ViittoFileUrl
+
x
.
data
.
FilePath
this
.
$message
.
success
(
x
.
data
.
Message
)
this
.
$message
.
success
(
x
.
data
.
Message
)
let
newlist
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
list
))
let
newlist
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
list
))
this
.
list
=
newlist
this
.
list
=
newlist
...
@@ -291,9 +284,9 @@
...
@@ -291,9 +284,9 @@
//添加酒店
//添加酒店
AddHotel
(
item
,
subIndex
)
{
AddHotel
(
item
,
subIndex
)
{
var
subItem
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
HotelOrderList
[
subIndex
]));
var
subItem
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
HotelOrderList
[
subIndex
]));
subItem
.
HotelId
=
0
;
subItem
.
HotelId
=
0
;
subItem
.
HotelName
=
""
;
subItem
.
HotelName
=
""
;
subItem
.
OrderID
=
0
;
subItem
.
OrderID
=
0
;
item
.
HotelOrderList
.
push
(
subItem
);
item
.
HotelOrderList
.
push
(
subItem
);
},
},
//删除酒店
//删除酒店
...
@@ -421,10 +414,10 @@
...
@@ -421,10 +414,10 @@
getHotelList
(
obj
)
{
getHotelList
(
obj
)
{
this
.
apipost
(
'hotel_post_GetHasStockHotelList'
,
{
this
.
apipost
(
'hotel_post_GetHasStockHotelList'
,
{
//1-只查询有库存的酒店
//1-只查询有库存的酒店
IsMoreThanZero
:
0
,
IsMoreThanZero
:
0
,
Country
:
"651"
,
Country
:
"651"
,
IsAllHotel
:
1
,
IsAllHotel
:
1
,
sDate
:
obj
.
CheckInDateStr
sDate
:
obj
.
CheckInDateStr
},
res
=>
{
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
obj
.
hotelList
=
res
.
data
.
data
;
obj
.
hotelList
=
res
.
data
.
data
;
...
@@ -463,22 +456,17 @@
...
@@ -463,22 +456,17 @@
item
.
HotelOrderList
.
forEach
(
subItem
=>
{
item
.
HotelOrderList
.
forEach
(
subItem
=>
{
subItem
.
OrderDetailsList
.
forEach
(
y
=>
{
subItem
.
OrderDetailsList
.
forEach
(
y
=>
{
y
.
HouseTypeCount
=
parseFloat
(
y
.
HouseTypeCount
);
y
.
HouseTypeCount
=
parseFloat
(
y
.
HouseTypeCount
);
if
(
y
.
UnitPrice
)
if
(
y
.
UnitPrice
)
{
{
y
.
UnitPrice
=
parseInt
(
y
.
UnitPrice
);
y
.
UnitPrice
=
parseInt
(
y
.
UnitPrice
);
}
else
{
y
.
UnitPrice
=
0
;
}
}
else
if
(
y
.
HotelDiscount
)
{
{
y
.
UnitPrice
=
0
;
}
if
(
y
.
HotelDiscount
)
{
y
.
HotelDiscount
=
parseInt
(
y
.
HotelDiscount
);
y
.
HotelDiscount
=
parseInt
(
y
.
HotelDiscount
);
}
else
}
else
{
{
y
.
HotelDiscount
=
0
;
y
.
HotelDiscount
=
0
;
}
}
if
(
y
.
BookNum
==
""
)
{
if
(
y
.
BookNum
==
""
)
{
y
.
BookNum
=
0
;
y
.
BookNum
=
0
;
}
}
...
@@ -504,12 +492,10 @@
...
@@ -504,12 +492,10 @@
subItem
.
OrderDetailsList
.
forEach
(
y
=>
{
subItem
.
OrderDetailsList
.
forEach
(
y
=>
{
y
.
HouseTypeCount
=
parseFloat
(
y
.
HouseTypeCount
);
y
.
HouseTypeCount
=
parseFloat
(
y
.
HouseTypeCount
);
y
.
UnitPrice
=
parseInt
(
y
.
UnitPrice
);
y
.
UnitPrice
=
parseInt
(
y
.
UnitPrice
);
if
(
y
.
HotelDiscount
)
if
(
y
.
HotelDiscount
)
{
{
y
.
HotelDiscount
=
parseInt
(
y
.
HotelDiscount
);
y
.
HotelDiscount
=
parseInt
(
y
.
HotelDiscount
);
}
else
}
else
{
{
y
.
HotelDiscount
=
0
;
y
.
HotelDiscount
=
0
;
}
}
if
(
y
.
BookNum
==
""
)
{
if
(
y
.
BookNum
==
""
)
{
y
.
BookNum
=
0
;
y
.
BookNum
=
0
;
...
@@ -517,7 +503,10 @@
...
@@ -517,7 +503,10 @@
})
})
});
});
})
})
let
mag
=
{
TotalList
:
this
.
list
,
SingleItem
:
item
};
let
mag
=
{
TotalList
:
this
.
list
,
SingleItem
:
item
};
this
.
apipost
(
'dmcstatistics_get_SetHotelOrder'
,
this
.
list
,
res
=>
{
this
.
apipost
(
'dmcstatistics_get_SetHotelOrder'
,
this
.
list
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
Success
(
res
.
data
.
message
);
...
@@ -554,69 +543,19 @@
...
@@ -554,69 +543,19 @@
this
.
flightTotal
=
this
.
$route
.
query
.
flightTotal
;
this
.
flightTotal
=
this
.
$route
.
query
.
flightTotal
;
this
.
GuestNum
=
this
.
$route
.
query
.
GuestNum
;
this
.
GuestNum
=
this
.
$route
.
query
.
GuestNum
;
let
width
=
window
.
innerWidth
-
50
;
let
width
=
window
.
innerWidth
-
50
;
let
height
=
window
.
innerHeight
-
65
-
55
;
let
height
=
window
.
innerHeight
-
65
-
55
;
this
.
boxHeight
=
height
;
this
.
boxHeight
=
height
;
this
.
offsetwidth
=
width
this
.
offsetwidth
=
width
this
.
getList
();
this
.
getList
();
},
watch
:
{
// list:{
// handler: function(val, oldVal) {
// this.$nextTick(function(){
// let ele = this.$parent.$refs.frameBox
// this.parentEle = ele;
// console.log(ele.scrollHeight > ele.height)
// console.log(ele.teamReimbursement)
// });
// },
// deep: true
// }
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
.RoomfileList
{
width
:
100%
;
height
:
20px
;
text-align
:
center
;
position
:
relative
;
cursor
:
pointer
;
}
.RoomfileList
p
{
display
:
inline-block
;
}
.RoomfileList
i
:hover
{
color
:
#E95252
;
}
.roomReservationsDetailsTalbe
.el-button--small
{
padding
:
0
20px
0
10px
;
margin-top
:
10px
;
height
:
28px
;
line-height
:
10px
;
}
.roomReservationsDetailsTalbe
.el-button--small
i
{
float
:
left
;
margin-top
:
9px
;
}
.roomReservationsDetailsTalbe
.roomBtn
{
color
:
#fff
;
padding
:
0
10px
!important
;
height
:
30px
!important
;
background
:
#E95252
;
border
:
1px
solid
#E95252
;
cursor
:
pointer
;
border-radius
:
15px
;
margin
:
0
10px
;
}
.roomReservationsDetailsTalbe
{
.roomReservationsDetailsTalbe
{
background
:
#ddd
;
border-collapse
:
collapse
;
background
:
#fff
;
text-align
:
center
;
}
}
.roomReservationsDetailsTalbe
tr
th
{
.roomReservationsDetailsTalbe
tr
th
{
...
@@ -624,19 +563,15 @@
...
@@ -624,19 +563,15 @@
height
:
40px
;
height
:
40px
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#333
;
color
:
#333
;
}
border
:
1px
solid
#d1d1d1
;
.roomReservationsDetailsTalbe
tr
{
background
:
#fff
;
text-align
:
center
;
height
:
40px
;
}
}
.roomReservationsDetailsTalbe
tr
td
{
.roomReservationsDetailsTalbe
tr
td
{
font-size
:
12px
;
font-size
:
12px
;
border
:
1px
solid
#d1d1d1
;
}
}
.roomReservationsDetailsTalbe
tr
td
.pHouseStyle
{
.roomReservationsDetailsTalbe
.pHouseStyle
{
border-bottom
:
1px
solid
#ccc
;
border-bottom
:
1px
solid
#ccc
;
height
:
28px
;
height
:
28px
;
line-height
:
28px
;
line-height
:
28px
;
...
@@ -672,4 +607,12 @@
...
@@ -672,4 +607,12 @@
color
:
red
;
color
:
red
;
}
}
.roomReservationsDetailsTalbe
.hotelTable
{
border
:
none
;
}
.roomReservationsDetailsTalbe
.hotelTable
tr
td
{
border
:
none
;
}
</
style
>
</
style
>
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