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
bad79d12
Commit
bad79d12
authored
Mar 07, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
c2780e09
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
HotelsTeam.vue
src/components/Hotel/HotelsTeam.vue
+18
-3
No files found.
src/components/Hotel/HotelsTeam.vue
View file @
bad79d12
...
...
@@ -29,7 +29,7 @@
<th
width=
"80"
>
操作
</th>
</tr>
<tr
v-for=
"(item,index) in dataList"
>
<td><div
class=
"w80"
>
{{
index
}}
</div></td>
<td><div
class=
"w80"
>
{{
index
+
1
}}
</div></td>
<td><div
class=
"w120"
>
{{
item
.
CommonReport
.
HotelList
[
0
].
TCNUM
}}
</div></td>
<td><div
class=
"w120"
>
{{
item
.
StartCityNames
}}
</div></td>
<td><div
class=
"w120"
>
{{
item
.
LeaderName
}}
</div></td>
...
...
@@ -61,8 +61,8 @@
</td>
<td>
<div
class=
"w80"
>
<p
class=
"pHouseStyle"
v-if=
"item.CommonReport.HotelList[0].OrderDetailsList.length>0"
v-for=
"
o
in item.CommonReport.HotelList[0].OrderDetailsList"
>
<el-input
class=
'w50 tcenter'
@
keyup
.
native=
"checkInteger(o,'HouseTypeCount')"
v-model=
'o.HouseTypeCount'
></el-input>
<p
class=
"pHouseStyle"
v-if=
"item.CommonReport.HotelList[0].OrderDetailsList.length>0"
v-for=
"
(o,index)
in item.CommonReport.HotelList[0].OrderDetailsList"
>
<el-input
class=
'w50 tcenter'
@
keyup
.
native=
"checkInteger(o,'HouseTypeCount')"
v-model=
'o.HouseTypeCount
<
=
0
?
item
.
CommonReport
.
HouseStatistics
.
HouseTypeList
[
index
].
HouseTypeCount:o
.
HouseTypeCount
'
></el-input>
</p>
</div>
</td>
...
...
@@ -168,6 +168,17 @@
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
;
let
totalPrice
=
0
this
.
dataList
.
forEach
(
x
=>
{
x
.
CommonReport
.
HotelList
[
0
].
OrderDetailsList
.
forEach
(
y
=>
{
y
.
HouseTypeCount
=
y
.
HouseTypeCount
.
toString
();
y
.
HotelDiscount
=
y
.
HotelDiscount
.
toString
();
})
x
.
CommonReport
.
HotelList
[
0
].
OrderDetailsList
.
forEach
(
y
=>
{
totalPrice
+=
y
.
UnitPrice
*
(
y
.
HouseGuestNum
-
y
.
HotelDiscount
)
*
(
1
-
y
.
RebateRatio
/
100
)
})
x
.
TotalPrice
=
totalPrice
.
toFixed
(
2
)
});
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -186,6 +197,10 @@
//单条保存
SaveSingle
(
item
){
item
.
CommonReport
.
HotelList
[
0
].
HotelOrderState
=
1
;
item
.
CommonReport
.
HotelList
[
0
].
OrderDetailsList
.
forEach
(
y
=>
{
y
.
HouseTypeCount
=
parseInt
(
y
.
HouseTypeCount
);
y
.
HotelDiscount
=
parseInt
(
y
.
HotelDiscount
);
})
this
.
apipost
(
'dmcstatistics_post_SetNewHotelOrder'
,
item
.
CommonReport
.
HotelList
[
0
],
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
Success
(
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