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
2f8b8254
Commit
2f8b8254
authored
Apr 28, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导游计划表修改
parent
72b91f55
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
324 additions
and
431 deletions
+324
-431
groundOperation.vue
src/components/dmc/manager/groundOperation.vue
+324
-431
No files found.
src/components/dmc/manager/groundOperation.vue
View file @
2f8b8254
<
style
>
.GOd_Table
{
.GOd_Table
{
width
:
100%
;
font-size
:
12px
;
color
:
#333
;
margin
:
20px
0
auto
;
margin
:
20px
0
auto
;
border-collapse
:
collapse
;
background-color
:
#fff
;
border
:
1px
solid
#d1d1d1
;
}
.GOd_Table
td
{
}
.GOd_Table
td
{
border
:
1px
solid
#d1d1d1
;
text-align
:
center
;
height
:
40px
;
padding
:
5px
;
}
.GOd_Table
th
{
padding
:
5px
;
}
.GOd_Table
th
{
background-color
:
#e6e6e6
;
border
:
1px
solid
#d1d1d1
;
height
:
40px
;
}
.GD_comDiv
{
}
.GD_comDiv
{
width
:
100%
;
height
:
25px
;
line-height
:
25px
;
text-align
:
center
;
border-bottom
:
1px
solid
#d1d1d1
;
}
.GOd_Table
td
.GD_comDiv
:last-child
{
}
.GOd_Table
td
.GD_comDiv
:last-child
{
border
:
none
;
}
.GD_comPad
{
padding
:
0
!important
;}
}
.GD_comPad
{
padding
:
0
!important
;
}
</
style
>
<
template
>
...
...
@@ -111,8 +119,6 @@
<th>
车牌号
</th>
<th>
司机姓名
</th>
<th>
司机电话
</th>
<th>
金额
</th>
<!--
<th>
付款方式
</th>
-->
<th>
备注
</th>
</tr>
<tr
v-for=
"item in DMCStaticsCommon.BusList"
>
...
...
@@ -122,8 +128,6 @@
<td>
{{
item
.
BusNum
}}
</td>
<td>
{{
item
.
DriverName
}}
</td>
<td>
{{
item
.
DriverTel
}}
</td>
<td>
{{
item
.
CostPrice
*
(
Number
(
item
.
TransferNum
)
+
1
)
}}
</td>
<!--
<td>
现付
</td>
-->
<td>
{{
item
.
Remarks
}}
</td>
</tr>
</table>
...
...
@@ -137,15 +141,6 @@
<th
width=
"100"
>
入住时间
</th>
<th
width=
"80"
>
占床/不占床
</th>
<th
width=
"80"
>
实际用房数
</th>
<th
width=
"90"
>
房间类型
</th>
<th
width=
"60"
>
房间数
</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=
"200"
>
地址
</th>
<th
width=
"100"
>
备注
</th>
...
...
@@ -157,49 +152,6 @@
<td>
{{
subItem
.
CheckInDateStr
}}
</td>
<td>
{{
DMCStaticsCommon
.
HouseStatistics
.
NeedBed
}}
/
{{
DMCStaticsCommon
.
HouseStatistics
.
NoNeedBed
}}
</td>
<td>
{{
DMCStaticsCommon
.
HouseStatistics
.
RealityRoomNum
}}
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.HouseStatistics.HouseTypeList"
>
{{
childItem
.
HouseTypeName
}}
</div>
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.HouseStatistics.HouseTypeList"
>
{{
childItem
.
HouseTypeCount
}}
</div>
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.OrderDetailsList"
>
{{
childItem
.
HouseTypeCount
}}
</div>
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"(childItem,index) in subItem.OrderDetailsList"
>
{{
childItem
.
HouseTypeCount
-
subItem
.
HouseStatistics
.
HouseTypeList
[
index
].
HouseTypeCount
}}
</div>
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.OrderDetailsList"
>
{{
childItem
.
UnitPrice
}}
</div>
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.OrderDetailsList"
>
{{
childItem
.
HotelDiscount
}}
</div>
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.OrderDetailsList"
>
{{
childItem
.
UnitPrice
*
(
childItem
.
HouseGuestNum
-
childItem
.
HotelDiscount
)
}}
</div>
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.OrderDetailsList"
>
{{
childItem
.
RebateRatio
}}
%
</div>
</td>
<td>
{{
subItem
.
PayStyleStr
}}
</td>
<td>
{{
subItem
.
Tel
}}
</td>
<td
style=
"text-align:left;"
>
{{
subItem
.
Address
}}
</td>
<td>
{{
subItem
.
Remarks
}}
</td>
...
...
@@ -212,20 +164,14 @@
</tr>
<tr>
<th
width=
"80"
>
订餐号
</th>
<th
>
用餐时间
</th>
<th
>
餐厅名称
</th>
<th
width=
"80"
>
用餐时间
</th>
<th
width=
"80"
>
餐厅名称
</th>
<th
width=
"50"
>
类别
</th>
<th
>
餐饮类型
</th>
<th
width=
"80"
>
餐饮类型
</th>
<th
width=
"80"
>
总人数
</th>
<th>
用餐人数
</th>
<th>
免费人数
</th>
<th
width=
"80"
>
单价
</th>
<th
width=
"80"
>
返佣
</th>
<th>
总金额
</th>
<th>
付款方式
</th>
<th>
联系电话
</th>
<th
width=
"80"
>
联系电话
</th>
<th
width=
"200"
>
地址
</th>
<th
width=
"1
00"
>
备注
</th>
<th
width=
"3
00"
>
备注
</th>
</tr>
<tbody
v-for=
"item in DMCStaticsCommon.DiningList"
>
<tr
v-for=
"subItem in item.DiningSummaryList"
>
...
...
@@ -235,32 +181,6 @@
<td>
{{
subItem
.
UseDinnerTypeStr
}}
</td>
<td>
{{
subItem
.
MealName
}}
</td>
<td>
{{
DMCStaticsCommon
.
HouseStatistics
.
RealityNum
>
0
?(
DMCStaticsCommon
.
HouseStatistics
.
RealityNum
-
1
):
0
}}
+1
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.DiningPriceList"
>
{{
peopleStrToWord
(
childItem
.
PeopleType
)
}}
:
{{
childItem
.
PeopleNum
}}
</div>
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.DiningPriceList"
>
{{
childItem
.
Discount
}}
</div>
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.DiningPriceList"
>
{{
childItem
.
PeoplePrice
}}
</div>
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.DiningPriceList"
>
{{
childItem
.
DiscountPrice
}}
%
</div>
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"subItem in item.DiningSummaryList"
>
{{
diningTotalPrice
(
subItem
.
DiningPriceList
)
}}
</div>
</td>
<td>
{{
subItem
.
PayStyleStr
}}
</td>
<td>
{{
subItem
.
Tel
}}
</td>
<td
style=
"text-align:left;"
>
{{
subItem
.
Address
}}
</td>
<td>
{{
subItem
.
Remarks
}}
</td>
...
...
@@ -272,46 +192,18 @@
<th
colspan=
"12"
>
门票使用
</th>
</tr>
<tr>
<th>
景点名称
</th>
<th>
游览时间
</th>
<th>
景点名称
</th>
<th>
总人数
</th>
<th>
门票类别
</th>
<th>
免费人数
</th>
<th
width=
"80"
>
单价
</th>
<th
width=
"80"
>
返佣
</th>
<th>
总金额
</th>
<th>
付款方式
</th>
<th>
联系电话
</th>
<th
width=
"250"
>
地址
</th>
<th
width=
"100"
>
备注
</th>
</tr>
<tbody
v-for=
"item in DMCStaticsCommon.ScenicList"
>
<tr
v-for=
"subItem in item.ScenicStatisticsList"
>
<td>
{{
subItem
.
ScenicName
}}
</td>
<td>
{{
subItem
.
UseTimeStr
}}
</td>
<td>
{{
subItem
.
ScenicName
}}
</td>
<td>
{{
DMCStaticsCommon
.
HouseStatistics
.
RealityNum
>
0
?(
DMCStaticsCommon
.
HouseStatistics
.
RealityNum
-
1
):
0
}}
+1
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.TicketPriceList"
>
{{
peopleStrToWord
(
childItem
.
PeopleType
)
}}
:
{{
childItem
.
PeopleNum
}}
</div>
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.TicketPriceList"
>
{{
childItem
.
Discount
}}
</div>
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.TicketPriceList"
>
{{
childItem
.
PeoplePrice
}}
</div>
</td>
<td
class=
"GD_comPad"
>
<div
class=
"GD_comDiv"
v-for=
"childItem in subItem.TicketPriceList"
>
{{
childItem
.
DiscountPrice
}}
%
</div>
</td>
<td>
{{
scenicTotalPrice
(
subItem
.
TicketPriceList
)
}}
</td>
<td>
{{
subItem
.
PayStyleStr
}}
</td>
<td>
{{
subItem
.
Tel
}}
</td>
<td
style=
"text-align:left;"
>
{{
subItem
.
Address
}}
</td>
<td>
{{
subItem
.
Remarks
}}
</td>
...
...
@@ -364,23 +256,23 @@
</div>
</
template
>
<
script
>
export
default
{
export
default
{
data
()
{
return
{
TCIDs
:
""
,
//基本信息
BaseInfo
:
[],
BaseInfo
:
[],
//负责人
PrincipalList
:
[],
PrincipalList
:
[],
//行程内容
JourneyTitle
:
[],
JourneyTitle
:
[],
//旅客
guestList
:
[],
guestList
:
[],
//房餐车景点
DMCStaticsCommon
:
{},
DMCStaticsCommon
:
{},
//购物店
shopList
:
[],
isShow
:
false
,
shopList
:
[],
isShow
:
false
,
};
},
methods
:
{
...
...
@@ -388,7 +280,7 @@ export default {
getConfirmName
()
{
let
msg
=
{
TCIDs
:
this
.
TCIDs
,
NewCombinationNum
:
''
,
NewCombinationNum
:
''
,
};
//更新酒店图片
this
.
apipost
(
...
...
@@ -404,7 +296,7 @@ export default {
this
.
DMCStaticsCommon
=
res
.
data
.
data
.
DMCStaticsCommon
;
this
.
shopList
=
res
.
data
.
data
.
shopList
;
this
.
isShow
=
true
;
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
...
...
@@ -412,27 +304,27 @@ export default {
);
},
//获取人员类型
peopleStrToWord
(
str
)
{
if
(
str
==
'1'
)
peopleStrToWord
(
str
)
{
if
(
str
==
'1'
)
return
'成人'
if
(
str
==
'2'
)
if
(
str
==
'2'
)
return
'儿童'
if
(
str
==
'3'
)
if
(
str
==
'3'
)
return
'婴儿'
},
//总金额
diningTotalPrice
(
obj
)
{
let
totalPrice
=
0
obj
.
forEach
(
x
=>
{
totalPrice
+=
x
.
PeoplePrice
*
(
x
.
PeopleNum
-
x
.
Discount
)
*
(
1
-
x
.
DiscountPrice
/
100
)
diningTotalPrice
(
obj
)
{
let
totalPrice
=
0
obj
.
forEach
(
x
=>
{
totalPrice
+=
x
.
PeoplePrice
*
(
x
.
PeopleNum
-
x
.
Discount
)
*
(
1
-
x
.
DiscountPrice
/
100
)
})
return
totalPrice
},
//景点
scenicTotalPrice
(
obj
)
{
let
totalPrice
=
0
obj
.
forEach
(
x
=>
{
totalPrice
+=
x
.
PeoplePrice
*
(
x
.
UsePeopleNum
-
x
.
Discount
)
*
(
1
-
x
.
DiscountPrice
/
100
)
scenicTotalPrice
(
obj
)
{
let
totalPrice
=
0
obj
.
forEach
(
x
=>
{
totalPrice
+=
x
.
PeoplePrice
*
(
x
.
UsePeopleNum
-
x
.
Discount
)
*
(
1
-
x
.
DiscountPrice
/
100
)
})
return
totalPrice
},
...
...
@@ -442,5 +334,6 @@ export default {
this
.
TCIDs
=
this
.
$route
.
query
.
id
;
this
.
getConfirmName
();
}
};
};
</
script
>
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