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
5b662960
Commit
5b662960
authored
Mar 22, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
2e3b4bb8
931a4ec0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
864 additions
and
655 deletions
+864
-655
EasyReport.vue
src/components/FinancialModule/ReportForm/EasyReport.vue
+1
-1
TeamRevenueReport.vue
...mponents/FinancialModule/ReportForm/TeamRevenueReport.vue
+18
-17
roomReservations.vue
src/components/Hotel/roomReservations.vue
+423
-310
roomReservationsDetails.vue
src/components/Hotel/roomReservationsDetails.vue
+422
-327
No files found.
src/components/FinancialModule/ReportForm/EasyReport.vue
View file @
5b662960
...
...
@@ -52,7 +52,7 @@
</el-form>
<div
class=
"page_EasyReport_export"
>
<button
class=
"normalBtn "
@
click=
"exportExcel"
>
导出EXCEL
</button>
<
button
class=
"normalBtn "
@
click=
"togbu"
>
一键同步
</button
>
<
!--
<button
class=
"normalBtn "
@
click=
"togbu"
>
一键同步
</button>
--
>
</div>
<button
class=
"normalBtn page_EasyReport_search"
@
click=
"getData"
>
确定
</button>
</div>
...
...
src/components/FinancialModule/ReportForm/TeamRevenueReport.vue
View file @
5b662960
...
...
@@ -515,7 +515,7 @@ tr._item_list td:last-child {
<button
class=
"hollowFixedBtn"
@
click=
"openKaiQiZzBox('一键关闭')"
>
一键关闭
</button>
-->
<button
class=
"normalBtn"
@
click=
"resetPageIndex(),getPageList()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"method5()"
>
导出
</button>
<
button
class=
"normalBtn"
@
click=
"togbu"
>
一键同步
</button
>
<
!--
<button
class=
"normalBtn"
@
click=
"togbu"
>
一键同步
</button>
--
>
<!--
<button
class=
"hollowFixedBtn"
@
click=
"exportExcelCurrentPage"
>
导出2
</button>
-->
</li>
</ul>
...
...
@@ -1070,7 +1070,7 @@ export default {
},
{
field
:
"MaoLiRate"
,
formatter
:
this
.
moneyFormat
,
//
formatter: this.moneyFormat,
title
:
"毛利率"
,
width
:
90
,
titleAlign
:
"left"
,
...
...
@@ -1681,7 +1681,7 @@ export default {
return
this
.
priceFormat
(
rowData
.
YongJinShouRu
);
if
(
field
===
"YingFu"
)
return
this
.
priceFormat
(
rowData
.
YingFu
);
if
(
field
===
"MaoLi"
)
return
this
.
priceFormat
(
rowData
.
MaoLi
);
if
(
field
===
"MaoLiRate"
)
return
rowData
.
MaoLiRate
+
"%"
;
// if (field === "MaoLiRate") return rowData.MaoLiRate
;
if
(
field
===
"ShiJiLiRun"
)
return
this
.
priceFormat
(
rowData
.
ShiJiLiRun
);
if
(
field
===
"TransportCost"
)
return
this
.
priceFormat
(
rowData
.
TransportCost
);
...
...
@@ -1861,24 +1861,25 @@ export default {
}
else
{
let
newData
=
[];
data
.
forEach
((
x
,
index
)
=>
{
x
.
MaoLiRate
=
x
.
MaoLiRate
+
"%"
;
if
(
index
!==
data
.
length
-
1
)
{
x
.
Is_Transport
=
x
.
Is_Transport
===
0
?
"否"
:
"是"
;
newData
.
push
(
x
);
}
else
{
x
.
MaoLiRate
=
this
.
total
===
0
?
0
:
parseFloat
(
x
.
MaoLiRate
/
this
.
total
);
x
.
AverageIncome
=
this
.
total
===
0
?
0
:
parseFloat
(
x
.
AverageIncome
/
this
.
total
);
x
.
AverageCost
=
this
.
total
===
0
?
0
:
parseFloat
(
x
.
AverageCost
/
this
.
total
);
x
.
AverageProfit
=
this
.
total
===
0
?
0
:
parseFloat
(
x
.
AverageProfit
/
this
.
total
);
//
x.MaoLiRate =
//
this.total === 0 ? 0 : parseFloat(x.MaoLiRate / this.total);
//
x.AverageIncome =
//
this.total === 0
//
? 0
//
: parseFloat(x.AverageIncome / this.total);
//
x.AverageCost =
//
this.total === 0
//
? 0
//
: parseFloat(x.AverageCost / this.total);
//
x.AverageProfit =
//
this.total === 0
//
? 0
//
: parseFloat(x.AverageProfit / this.total);
x
.
LineName
=
"合计"
;
x
.
TCID
=
""
;
x
.
TCNUM
=
""
;
...
...
src/components/Hotel/roomReservations.vue
View file @
5b662960
This diff is collapsed.
Click to expand it.
src/components/Hotel/roomReservationsDetails.vue
View file @
5b662960
This diff is collapsed.
Click to expand it.
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