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
3b4e4542
Commit
3b4e4542
authored
Apr 26, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a00b3a7d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
263 deletions
+58
-263
orderCompleteStatistics.vue
src/pages/financial/orderCompleteStatistics.vue
+58
-263
No files found.
src/pages/financial/orderCompleteStatistics.vue
View file @
3b4e4542
...
@@ -37,6 +37,15 @@
...
@@ -37,6 +37,15 @@
.column-cell-class-name-test-lan-s
.v-table-body-cell
{
.column-cell-class-name-test-lan-s
.v-table-body-cell
{
background-color
:
#9cf
;
background-color
:
#9cf
;
}
}
.color-red
{
color
:
red
;
}
.color-green
{
color
:
green
;
}
.color-black
{
color
:
black
!important
;
}
</
style
>
</
style
>
<
template
>
<
template
>
...
@@ -130,10 +139,8 @@
...
@@ -130,10 +139,8 @@
<div
style=
"margin-bottom:25px;"
v-loading=
'loading'
>
<div
style=
"margin-bottom:25px;"
v-loading=
'loading'
>
<v-table
is-horizontal-resize
column-width-drag
:show-vertical-border=
"true"
rowKeyFieldName=
"rowkey"
style=
"width:100%"
:columns=
"columns"
<v-table
is-horizontal-resize
column-width-drag
:show-vertical-border=
"true"
rowKeyFieldName=
"rowkey"
style=
"width:100%"
:columns=
"columns"
:table-data=
"DataList"
:filter-method=
"filterMethod"
:column-cell-class-name=
"columnCellClass"
:table-data=
"DataList"
:filter-method=
"filterMethod"
:column-cell-class-name=
"columnCellClass"
@
on-custom-comp=
"customCompFunc"
@
sort-change=
"sortChange"
:row-click=
"rowClick"
:row-dblclick=
"rowDbClick"
>
@
on-custom-comp=
"customCompFunc"
@
sort-change=
"sortChange"
:row-click=
"rowClick"
:row-dblclick=
"rowDbClick"
>
</v-table>
</v-table>
<!--
<v-table
:border-x=
"true"
is-horizontal-resize
column-width-drag
:border-y=
"true"
:columns=
"columns"
:scroll-width=
"1600"
:table-data=
"DataList"
rowKeyFieldName=
"rowkey"
/>
-->
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -891,25 +898,25 @@
...
@@ -891,25 +898,25 @@
{
{
field
:
"CreateTime"
,
field
:
"CreateTime"
,
title
:
"签订时间"
,
title
:
"签订时间"
,
width
:
8
0
,
width
:
10
0
,
key
:
"a2"
,
key
:
"a2"
,
},
},
{
{
field
:
"ContractNo"
,
field
:
"ContractNo"
,
title
:
"合同编号"
,
title
:
"合同编号"
,
width
:
8
0
,
width
:
12
0
,
key
:
"a3"
,
key
:
"a3"
,
},
},
{
{
field
:
"CourseName"
,
field
:
"CourseName"
,
title
:
"产品名称"
,
title
:
"产品名称"
,
width
:
80
,
width
:
1
80
,
key
:
"a4"
,
key
:
"a4"
,
},
},
{
{
field
:
"ClassName"
,
field
:
"ClassName"
,
title
:
"班级"
,
title
:
"班级"
,
width
:
8
0
,
width
:
15
0
,
key
:
"a5"
,
key
:
"a5"
,
},
},
{
{
...
@@ -919,11 +926,12 @@
...
@@ -919,11 +926,12 @@
key
:
"a6"
,
key
:
"a6"
,
},
},
{
{
field
:
"
TotalCourseFe
e"
,
field
:
"
StudentNam
e"
,
title
:
"
报名费
"
,
title
:
"
业务员
"
,
width
:
80
,
width
:
80
,
key
:
"a
7
"
,
key
:
"a
6
"
,
},
},
{
{
field
:
"TotalClassHours"
,
field
:
"TotalClassHours"
,
title
:
"课时"
,
title
:
"课时"
,
...
@@ -935,6 +943,12 @@
...
@@ -935,6 +943,12 @@
title
:
"单价"
,
title
:
"单价"
,
width
:
80
,
width
:
80
,
key
:
"a9"
,
key
:
"a9"
,
},
{
field
:
"TotalCourseFee"
,
title
:
"课程名费"
,
width
:
80
,
key
:
"a7"
,
},
},
{
{
field
:
"Money"
,
field
:
"Money"
,
...
@@ -953,11 +967,17 @@
...
@@ -953,11 +967,17 @@
title
:
"课件费"
,
title
:
"课件费"
,
width
:
80
,
width
:
80
,
key
:
"a12"
,
key
:
"a12"
,
},
{
field
:
"TotalClassFee"
,
title
:
"优惠金额"
,
width
:
80
,
key
:
"a12"
,
},
},
{
{
field
:
"TotalMoney"
,
field
:
"TotalMoney"
,
title
:
"合同总金额"
,
title
:
"合同总金额"
,
width
:
8
0
,
width
:
10
0
,
key
:
"a13"
,
key
:
"a13"
,
},
},
// ]
// ]
...
@@ -968,7 +988,7 @@
...
@@ -968,7 +988,7 @@
// key:"b",
// key:"b",
// children:[
// children:[
{
{
field
:
""
,
field
:
"
TradeDate
"
,
title
:
"收款日期"
,
title
:
"收款日期"
,
width
:
80
,
width
:
80
,
key
:
"b1"
,
key
:
"b1"
,
...
@@ -1057,7 +1077,7 @@
...
@@ -1057,7 +1077,7 @@
{
{
field
:
"UseCourseFee"
,
field
:
"UseCourseFee"
,
title
:
"已上课金额"
,
title
:
"已上课金额"
,
width
:
8
0
,
width
:
10
0
,
key
:
"e6"
,
key
:
"e6"
,
},
},
// ]
// ]
...
@@ -1085,6 +1105,19 @@
...
@@ -1085,6 +1105,19 @@
width
:
80
,
width
:
80
,
key
:
"f3"
,
key
:
"f3"
,
},
},
{
field
:
""
,
title
:
"一览操作"
,
width
:
100
,
key
:
"f4"
,
renderBodyCell
:
({
row
,
column
,
rowIndex
},
h
)
=>
{
let
newDiv
=
h
(
"div"
)
newDiv
.
innerHTML
=
"协调费用"
return
newDiv
//
<
q
-
btn
color
=
"primary"
label
=
"Primary"
/>
}
},
// ]
// ]
// }
// }
// ]
// ]
...
@@ -1151,94 +1184,9 @@
...
@@ -1151,94 +1184,9 @@
},
},
rowClick
(
rowIndex
,
rowData
,
column
)
{
rowClick
(
rowIndex
,
rowData
,
column
)
{
var
that
=
this
;
let
startDate
=
that
.
year
+
"-"
+
column
.
start
;
let
endDate
=
""
;
let
BranchId
=
that
.
msg
.
BranchId
;
let
month
=
column
.
month
;
if
(
column
.
field
==
"ErYue"
)
{
if
(
column
.
field
==
"ErYue"
)
{
endDate
=
that
.
getFirstAndLastMonthDay
(
that
.
year
,
"02"
);
}
else
{
endDate
=
that
.
year
+
"-"
+
column
.
end
}
if
(
rowIndex
<
8
)
{
// 联运收入
// if(rowData.ZhaiYao=="联运收入"){
// that.goUrl("CombinedRevenueReport",startDate,endDate,BranchId,"联运收入")
// }
// // 跳转到应收团款查询
// else if(rowData.ZhaiYao=="营业总收入"){
// that.goUrl("RecPayQueryTeam",startDate,endDate,BranchId,"应收团款查询")
// }
// else if(rowData.ZhaiYao=="营业总成本"){
// that.goUrl("RecPayQueryTeamV2",startDate,endDate,BranchId,"应付团款查询")
// }
that
.
$router
.
push
({
path
:
"/financial/TeamRevenueReport"
,
query
:
{
StartTime
:
startDate
,
EndTime
:
endDate
,
BranchId
:
BranchId
,
blank
:
"y"
}
});
}
else
{
if
(
rowData
.
ZhaiYao
==
"员工提成"
)
{
if
(
Number
(
this
.
year
)
==
2019
)
{
if
(
column
.
title
==
"十月"
||
column
.
title
==
"十一月"
||
column
.
title
==
"十二月"
)
{
let
CostIds
=
""
;
CostIds
=
rowData
.
CostIds
.
replace
(
'112,'
,
''
);
CostIds
=
CostIds
.
replace
(
'16,'
,
''
);
that
.
GoUrlFan
(
'JumpReport'
,
month
,
rowData
.
Year
,
rowData
.
BranchId
,
CostIds
)
}
else
{
that
.
GoUrlFan
(
'JumpReport'
,
month
,
rowData
.
Year
,
rowData
.
BranchId
,
rowData
.
CostIds
)
}
}
else
if
(
Number
(
this
.
year
)
>
2019
)
{
let
CostIds
=
""
;
CostIds
=
rowData
.
CostIds
.
replace
(
'112,'
,
''
);
CostIds
=
CostIds
.
replace
(
'16,'
,
''
);
that
.
GoUrlFan
(
'JumpReport'
,
month
,
rowData
.
Year
,
rowData
.
BranchId
,
CostIds
)
}
else
{
that
.
GoUrlFan
(
'JumpReport'
,
month
,
rowData
.
Year
,
rowData
.
BranchId
,
rowData
.
CostIds
)
}
}
else
if
(
rowData
.
ZhaiYao
==
"歐洲與南亞損失分攤"
)
{
that
.
goUrl
(
"AirTicketLoss"
,
startDate
,
endDate
,
BranchId
,
"机票分摊"
)
}
else
if
(
rowData
.
ZhaiYao
==
"营业外收入"
||
rowData
.
ZhaiYao
==
"其他营业支出"
||
rowData
.
ZhaiYao
==
"应收应付款"
)
{
if
(
that
.
msg
.
BranchId
==
1218
)
{
this
.
$router
.
push
({
path
:
"/JumpReport"
,
query
:
{
year
:
rowData
.
Year
,
month
:
month
,
BranchId
:
rowData
.
BranchId
,
CostIds
:
rowData
.
CostIds
,
"IsJapanNonbusinessIncome"
:
1
,
blank
:
"y"
}
});
}
//网络印象
if
(
that
.
msg
.
BranchId
==
1224
)
{
this
.
$router
.
push
({
path
:
"/fxOrderProfitLossList"
,
query
:
{
year
:
rowData
.
Year
,
month
:
month
,
BranchId
:
rowData
.
BranchId
,
CostIds
:
rowData
.
CostIds
,
"IsJapanNonbusinessIncome"
:
1
,
blank
:
"y"
}
});
}
else
{
that
.
GoUrlFan
(
'JumpReport'
,
month
,
rowData
.
Year
,
rowData
.
BranchId
,
rowData
.
CostIds
)
}
}
else
{
that
.
GoUrlFan
(
'JumpReport'
,
month
,
rowData
.
Year
,
rowData
.
BranchId
,
rowData
.
CostIds
)
}
}
}
},
},
getFirstAndLastMonthDay
(
year
,
month
)
{
getFirstAndLastMonthDay
(
year
,
month
)
{
...
@@ -1279,172 +1227,19 @@
...
@@ -1279,172 +1227,19 @@
},
},
customCompFunc
:
function
(
param
)
{},
customCompFunc
:
function
(
param
)
{},
columnCellClass
:
function
(
rowIndex
,
columnName
,
rowData
)
{
columnCellClass
:
function
(
rowIndex
,
columnName
,
rowData
)
{
if
(
rowData
.
YiYue
<
0
&&
columnName
==
"YiYue"
)
{
if
(
columnName
===
"SurplusMoney"
){
return
"column-cell-class-name-test-red"
if
(
rowData
.
SurplusMoney
<
0
){
}
return
'color-red'
if
(
rowData
.
ErYue
<
0
&&
columnName
==
"ErYue"
)
{
}
else
if
(
rowData
.
SurplusMoney
>
0
&&
rowData
.
SurplusMoney
<
500
){
return
"column-cell-class-name-test-red"
return
'color-green'
}
}
else
{
if
(
rowData
.
SanYue
<
0
&&
columnName
==
"SanYue"
)
{
return
'color-black'
return
"column-cell-class-name-test-red"
}
if
(
rowData
.
DiYiJiDu
<
0
&&
columnName
==
"DiYiJiDu"
)
{
return
"column-cell-class-name-test-red"
}
if
(
rowData
.
SiYue
<
0
&&
columnName
==
"SiYue"
)
{
return
"column-cell-class-name-test-red"
}
if
(
rowData
.
WuYue
<
0
&&
columnName
==
"WuYue"
)
{
return
"column-cell-class-name-test-red"
}
if
(
rowData
.
LiuYue
<
0
&&
columnName
==
"LiuYue"
)
{
return
"column-cell-class-name-test-red"
}
if
(
rowData
.
DiErJiDu
<
0
&&
columnName
==
"DiErJiDu"
)
{
return
"column-cell-class-name-test-red"
}
if
(
rowData
.
ShangBanNianBao
<
0
&&
columnName
==
"ShangBanNianBao"
)
{
return
"column-cell-class-name-test-red"
}
if
(
rowData
.
QiYue
<
0
&&
columnName
==
"QiYue"
)
{
return
"column-cell-class-name-test-red"
}
if
(
rowData
.
BaYue
<
0
&&
columnName
==
"BaYue"
)
{
return
"column-cell-class-name-test-red"
}
if
(
rowData
.
JiuYue
<
0
&&
columnName
==
"JiuYue"
)
{
return
"column-cell-class-name-test-red"
}
if
(
rowData
.
ShiYue
<
0
&&
columnName
==
"ShiYue"
)
{
return
"column-cell-class-name-test-red"
}
if
(
rowData
.
ShiYiYue
<
0
&&
columnName
==
"ShiYiYue"
)
{
return
"column-cell-class-name-test-red"
}
if
(
rowData
.
ShiErYue
<
0
&&
columnName
==
"ShiErYue"
)
{
return
"column-cell-class-name-test-red"
}
}
if
(
rowData
.
DiSiJiDu
<
0
&&
columnName
==
"DiSiJiDu"
)
{
return
"column-cell-class-name-test-red"
}
if
(
rowData
.
XiaBanNianBao
<
0
&&
columnName
==
"XiaBanNianBao"
)
{
return
"column-cell-class-name-test-red"
}
if
(
rowData
.
ZongJi
<
0
&&
columnName
==
"ZongJi"
)
{
return
"column-cell-class-name-test-red"
}
}
if
(
rowData
.
ZhaiYao
==
'以下项均不计入计算'
)
{
if
(
rowData
.
YiYue
==
0
)
{
rowData
.
YiYue
=
''
;
}
if
(
rowData
.
ErYue
==
0
)
{
rowData
.
ErYue
=
''
;
}
if
(
rowData
.
SanYue
==
0
)
{
rowData
.
SanYue
=
''
;
}
if
(
rowData
.
DiYiJiDu
==
0
)
{
rowData
.
DiYiJiDu
=
''
;
}
if
(
rowData
.
SiYue
==
0
)
{
rowData
.
SiYue
=
''
;
}
if
(
rowData
.
WuYue
==
0
)
{
rowData
.
WuYue
=
''
;
}
if
(
rowData
.
LiuYue
==
0
)
{
rowData
.
LiuYue
=
''
;
}
if
(
rowData
.
DiErJiDu
==
0
)
{
rowData
.
DiErJiDu
=
''
;
}
if
(
rowData
.
ShangBanNianBao
==
0
)
{
rowData
.
ShangBanNianBao
=
''
;
}
if
(
rowData
.
QiYue
==
0
)
{
rowData
.
QiYue
=
''
;
}
if
(
rowData
.
BaYue
==
0
)
{
rowData
.
BaYue
=
''
;
}
if
(
rowData
.
JiuYue
==
0
)
{
rowData
.
JiuYue
=
''
;
}
if
(
rowData
.
DiSanJiDu
==
0
)
{
rowData
.
DiSanJiDu
=
''
;
}
if
(
rowData
.
ShiYue
==
0
)
{
rowData
.
ShiYue
=
''
;
}
if
(
rowData
.
ShiYiYue
==
0
)
{
rowData
.
ShiYiYue
=
''
;
}
if
(
rowData
.
ShiErYue
==
0
)
{
rowData
.
ShiErYue
=
''
;
}
if
(
rowData
.
DiSiJiDu
==
0
)
{
rowData
.
DiSiJiDu
=
''
;
}
if
(
rowData
.
XiaBanNianBao
==
0
)
{
rowData
.
XiaBanNianBao
=
''
;
}
if
(
rowData
.
ZongJi
==
0
)
{
rowData
.
ZongJi
=
''
;
}
}
// 设置列class
if
(
columnName
===
"ZongJi"
)
{
return
"column-cell-class-name-test-pink"
;
}
if
(
columnName
===
"DiYiJiDu"
||
columnName
===
"DiErJiDu"
||
columnName
===
"ShangBanNianBao"
||
columnName
===
"DiSanJiDu"
||
columnName
===
"DiSiJiDu"
||
columnName
===
"XiaBanNianBao"
)
{
return
"column-cell-class-name-test"
;
}
if
(
rowIndex
===
1
&&
(
columnName
===
"DiYiJiDu"
||
columnName
===
"DiErJiDu"
||
columnName
===
"ShangBanNianBao"
||
columnName
===
"DiSanJiDu"
||
columnName
===
"DiSiJiDu"
||
columnName
===
"XiaBanNianBao"
))
{
return
"column-cell-class-name-test"
;
}
if
(
rowData
.
ZhaiYao
===
'营业总毛利'
||
rowData
.
ZhaiYao
===
'歐洲與南亞損失分攤'
||
rowData
.
ZhaiYao
===
'营业税金及附加'
||
rowData
.
ZhaiYao
===
'管销费用'
||
rowData
.
ZhaiYao
===
'财务费用'
||
rowData
.
ZhaiYao
===
'营业外收入'
||
rowData
.
ZhaiYao
===
'其他营业支出'
)
{
return
"column-cell-class-name-test-greed"
;
}
if
(
rowData
.
ZhaiYao
===
'社保'
)
{
return
"column-cell-class-name-test-gray"
;
}
if
(
rowData
.
ZhaiYao
===
'营业利润 (亏损)'
)
{
return
"column-cell-class-name-test-pink-t"
;
}
if
(
rowData
.
ZhaiYao
===
'净利润 (亏损)'
)
{
return
"column-cell-class-name-test-t"
;
}
if
(
rowData
.
ZhaiYao
===
'所得税费用'
)
{
return
"column-cell-class-name-test-greed-s"
;
}
if
(
rowData
.
ZhaiYao
==
'以下项均不计入计算'
)
{
return
"column-cell-class-name-test-lan-s"
}
},
},
exportExcel
:
function
()
{
exportExcel
:
function
()
{
let
msg
=
{
EduDownLoad
(
"/finance/OutToExcelOrderStudentClassHoursList"
,
this
.
msg
,
"订单完成统计.xls"
)
EmployeeId
:
this
.
userId
,
Year
:
this
.
year
,
sharelist
:
[],
BranchId
:
this
.
msg
.
BranchId
,
}
this
.
monthList
.
forEach
(
x
=>
{
let
obj
=
{
ID
:
0
,
Money
:
x
.
value
,
Month
:
x
.
id
,
Year
:
this
.
year
}
msg
.
sharelist
.
push
(
obj
)
})
EduDownLoad
(
"/finance/OutToExcelEasyReportList"
,
msg
,
"简易报表.xls"
)
},
},
// getData: function (type) {
// getData: function (type) {
// this.msg.sharelist = []
// this.msg.sharelist = []
...
...
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