Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
罗超
confucius
Commits
69505e25
Commit
69505e25
authored
Jul 13, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增合计
parent
c67a9728
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
91 additions
and
22 deletions
+91
-22
cycleOrderList.vue
src/pages/financial/cycleOrderList.vue
+40
-10
userCommissionDetails.vue
src/pages/financial/userCommissionDetails.vue
+51
-12
No files found.
src/pages/financial/cycleOrderList.vue
View file @
69505e25
...
...
@@ -62,7 +62,7 @@
<template
slot-scope=
"scope"
>
<div><span
style=
"cursor: pointer;text-decoration: underline;"
@
click=
"goUrlclass('/course/classManage',scope.row.ClassName)"
>
{{
scope
.
row
.
ClassName
}}
</span>
{{
scope
.
row
.
ClassTypeName
}}
<span
style=
"color: #409EFF;"
v-if=
'scope.row.IsContinueClass==1'
>
(续)
</span></div>
<div>
学生数量:
{{
scope
.
row
.
StudentCount
}}
人
</div>
<div
v-if=
"scope.row.StudentCount"
>
学生数量:
{{
scope
.
row
.
StudentCount
}}
人
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"OrderId"
label=
"订单号"
>
...
...
@@ -73,16 +73,16 @@
</el-table-column>
<el-table-column
width=
'130'
prop=
"TotalCommissionMoney"
label=
"订单发放信息"
>
<
template
slot-scope=
"scope"
>
<div
style=
"color: rgb(255, 156, 0);"
>
应发:
{{
scope
.
row
.
TotalCommissionMoney
}}
</div>
<div>
额外奖励:
{{
scope
.
row
.
OtherMoney
}}
</div>
<div>
额外扣除:
{{
scope
.
row
.
BackMoney
}}
</div>
<div>
累计已发:
{{
scope
.
row
.
GiveOutMoney
}}
</div>
<div
v-if=
"scope.row.TotalCommissionMoney"
style=
"color: rgb(255, 156, 0);"
>
应发:
{{
scope
.
row
.
TotalCommissionMoney
}}
</div>
<div
v-if=
"scope.row.OtherMoney"
>
额外奖励:
{{
scope
.
row
.
OtherMoney
}}
</div>
<div
v-if=
"scope.row.BackMoney"
>
额外扣除:
{{
scope
.
row
.
BackMoney
}}
</div>
<div
v-if=
"scope.row.GiveOutMoney"
>
累计已发:
{{
scope
.
row
.
GiveOutMoney
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"IsFirstCommission"
label=
"首次发放"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
IsFirstCommission
==
1
?
'是'
:
'否'
}}
</div>
<div
v-if=
"scope.row.IsFirstCommission"
>
{{
scope
.
row
.
IsFirstCommission
==
1
?
'是'
:
'否'
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"TotalHours"
label=
"总课时"
>
</el-table-column>
...
...
@@ -94,10 +94,10 @@
</el-table-column>
<el-table-column
width=
'160'
prop=
"CurrentPeriodMoney"
label=
"当期发放信息"
>
<
template
slot-scope=
"scope"
>
<div
style=
"color: rgb(255, 156, 0);"
>
应发:
{{
scope
.
row
.
CurrentPeriodMoney
}}
</div>
<div>
额外奖励:
{{
scope
.
row
.
CurrentExtraMoney
}}
</div>
<div>
抵扣:
{{
scope
.
row
.
DeductionMoney
}}
</div>
<div>
奖励抵扣:
{{
scope
.
row
.
DeductionExtraMoney
}}
</div>
<div
v-if=
"scope.row.CurrentPeriodMoney"
style=
"color: rgb(255, 156, 0);"
>
应发:
{{
scope
.
row
.
CurrentPeriodMoney
}}
</div>
<div
v-if=
"scope.row.CurrentExtraMoney"
>
额外奖励:
{{
scope
.
row
.
CurrentExtraMoney
}}
</div>
<div
v-if=
"scope.row.DeductionMoney"
>
抵扣:
{{
scope
.
row
.
DeductionMoney
}}
</div>
<div
v-if=
"scope.row.DeductionExtraMoney"
>
奖励抵扣:
{{
scope
.
row
.
DeductionExtraMoney
}}
</div>
</
template
>
</el-table-column>
...
...
@@ -189,6 +189,10 @@
this
.
SchoolNamelist
=
[];
this
.
DeptNamelist
=
[];
this
.
UserNamelist
=
[];
let
obj_t
=
{
SchoolName
:
'合计'
,
YFMoney
:
0
,
}
this
.
tableData
.
forEach
(
x
=>
{
let
obj
=
{
text
:
x
.
SchoolName
,
...
...
@@ -205,13 +209,39 @@
this
.
SchoolNamelist
.
push
(
obj
)
this
.
DeptNamelist
.
push
(
obj2
)
this
.
UserNamelist
.
push
(
obj3
)
if
(
x
.
YFMoney
)
{
obj_t
.
YFMoney
=
this
.
accAdd
(
x
.
YFMoney
,
obj_t
.
YFMoney
)
};
})
this
.
tableData
.
push
(
obj_t
)
this
.
SchoolNamelist
=
this
.
unique
(
this
.
SchoolNamelist
)
this
.
DeptNamelist
=
this
.
unique
(
this
.
DeptNamelist
)
this
.
UserNamelist
=
this
.
unique
(
this
.
UserNamelist
)
}
})
},
accAdd
(
arg1
,
arg2
)
{
//js 加法精确计算
var
r1
,
r2
,
m
;
try
{
r1
=
arg1
.
toString
().
split
(
"."
)[
1
].
length
;
}
catch
(
e
)
{
r1
=
0
;
}
try
{
r2
=
arg2
.
toString
().
split
(
"."
)[
1
].
length
;
}
catch
(
e
)
{
r2
=
0
;
}
m
=
Math
.
pow
(
10
,
Math
.
max
(
r1
,
r2
));
return
(
arg1
*
m
+
arg2
*
m
)
/
m
;
},
unique
(
arr
,
Name
)
{
//数组去重
const
res
=
new
Map
();
return
arr
.
filter
(
...
...
src/pages/financial/userCommissionDetails.vue
View file @
69505e25
...
...
@@ -75,15 +75,15 @@
<template
slot-scope=
"scope"
>
<div>
<span
style=
"cursor: pointer;text-decoration: underline;"
@
click=
"goUrlclass('/course/classManage',scope.row.ClassName)"
>
{{
scope
.
row
.
ClassName
}}
</span>
{{
scope
.
row
.
ClassTypeName
}}
<span
style=
"color: #409EFF;"
v-if=
'scope.row.IsContinueClass==1'
>
(续)
</span></div>
<div>
学生数量:
{{
scope
.
row
.
StudentCount
}}
人
</div>
<div
v-if=
"scope.row.StudentCount"
>
学生数量:
{{
scope
.
row
.
StudentCount
}}
人
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"OrderId"
label=
"订单号"
>
<
template
slot-scope=
"scope"
>
<div
style=
"cursor: pointer;text-decoration: underline;"
@
click=
"goUrlorderList('/sale/orderStatistics',scope.row.OrderId)"
>
<div
v-if=
"scope.row.OrderId"
style=
"cursor: pointer;text-decoration: underline;"
@
click=
"goUrlorderList('/sale/orderStatistics',scope.row.OrderId)"
>
{{
scope
.
row
.
OrderId
}}
</div>
<div
style=
"cursor: pointer;text-decoration: underline;"
@
click=
'goorderUrl(scope.row.OrderId)'
>
<div
v-if=
"scope.row.OrderId"
style=
"cursor: pointer;text-decoration: underline;"
@
click=
'goorderUrl(scope.row.OrderId)'
>
发放次数
</div>
...
...
@@ -91,16 +91,16 @@
</el-table-column>
<el-table-column
width=
'130'
prop=
"TotalCommissionMoney"
label=
"订单发放信息"
>
<
template
slot-scope=
"scope"
>
<div
style=
"color: rgb(255, 156, 0);"
>
应发:
{{
scope
.
row
.
TotalCommissionMoney
}}
</div>
<div>
额外奖励:
{{
scope
.
row
.
OtherMoney
}}
</div>
<div>
额外扣除:
{{
scope
.
row
.
BackMoney
}}
</div>
<div>
累计已发:
{{
scope
.
row
.
GiveOutMoney
}}
</div>
<div
v-if=
"scope.row.TotalCommissionMoney"
style=
"color: rgb(255, 156, 0);"
>
应发:
{{
scope
.
row
.
TotalCommissionMoney
}}
</div>
<div
v-if=
"scope.row.OtherMoney"
>
额外奖励:
{{
scope
.
row
.
OtherMoney
}}
</div>
<div
v-if=
"scope.row.BackMoney"
>
额外扣除:
{{
scope
.
row
.
BackMoney
}}
</div>
<div
v-if=
"scope.row.GiveOutMoney"
>
累计已发:
{{
scope
.
row
.
GiveOutMoney
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"IsFirstCommission"
label=
"首次发放"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
IsFirstCommission
==
1
?
'是'
:
'否'
}}
</div>
<div
v-if=
"scope.row.IsFirstCommission"
>
{{
scope
.
row
.
IsFirstCommission
==
1
?
'是'
:
'否'
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"TotalHours"
label=
"总课时"
>
</el-table-column>
...
...
@@ -118,10 +118,10 @@
</el-table-column>
<el-table-column
width=
'160'
prop=
"CurrentPeriodMoney"
label=
"当期发放信息"
>
<
template
slot-scope=
"scope"
>
<div
style=
"color: rgb(255, 156, 0);"
>
应发:
{{
scope
.
row
.
CurrentPeriodMoney
}}
</div>
<div>
额外奖励:
{{
scope
.
row
.
CurrentExtraMoney
}}
</div>
<div>
抵扣:
{{
scope
.
row
.
DeductionMoney
}}
</div>
<div>
奖励抵扣:
{{
scope
.
row
.
DeductionExtraMoney
}}
</div>
<div
v-if=
"scope.row.CurrentPeriodMoney"
style=
"color: rgb(255, 156, 0);"
>
应发:
{{
scope
.
row
.
CurrentPeriodMoney
}}
</div>
<div
v-if=
"scope.row.CurrentExtraMoney"
>
额外奖励:
{{
scope
.
row
.
CurrentExtraMoney
}}
</div>
<div
v-if=
"scope.row.DeductionMoney"
>
抵扣:
{{
scope
.
row
.
DeductionMoney
}}
</div>
<div
v-if=
"scope.row.DeductionExtraMoney"
>
奖励抵扣:
{{
scope
.
row
.
DeductionExtraMoney
}}
</div>
</
template
>
</el-table-column>
...
...
@@ -197,9 +197,48 @@
if
(
res
.
Code
==
1
)
{
this
.
loading
=
false
;
this
.
tableData
=
res
.
Data
if
(
this
.
tableData
.
length
>
0
)
{
this
.
getAskfor
()
}
}
})
},
getAskfor
()
{
//求值
let
obj
=
{
SchoolName
:
'合计'
,
YFMoney
:
0
,
}
this
.
tableData
.
forEach
((
x
)
=>
{
if
(
x
.
YFMoney
)
{
obj
.
YFMoney
=
this
.
accAdd
(
x
.
YFMoney
,
obj
.
YFMoney
)
};
})
this
.
tableData
.
push
(
obj
)
},
accAdd
(
arg1
,
arg2
)
{
//js 加法精确计算
var
r1
,
r2
,
m
;
try
{
r1
=
arg1
.
toString
().
split
(
"."
)[
1
].
length
;
}
catch
(
e
)
{
r1
=
0
;
}
try
{
r2
=
arg2
.
toString
().
split
(
"."
)[
1
].
length
;
}
catch
(
e
)
{
r2
=
0
;
}
m
=
Math
.
pow
(
10
,
Math
.
max
(
r1
,
r2
));
return
(
arg1
*
m
+
arg2
*
m
)
/
m
;
},
//选择班级
setClass
(
item
)
{
this
.
isShowClass
=
true
;
...
...
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